~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric-updates

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.GtkCore/lib/stetic/libsteticui/UserInterface.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
using System;
3
 
 
4
 
namespace Stetic
5
 
{
6
 
        internal class UserInterface
7
 
        {
8
 
                UserInterface()
9
 
                {
10
 
                }
11
 
                
12
 
                public static WidgetDesignerBackend CreateWidgetDesigner (Gtk.Container widget)
13
 
                {
14
 
                        Stetic.Wrapper.Container wc = Stetic.Wrapper.Container.Lookup (widget);
15
 
                        return CreateWidgetDesigner (widget, wc.DesignWidth, wc.DesignHeight);
16
 
                }
17
 
                
18
 
                public static WidgetDesignerBackend CreateWidgetDesigner (Gtk.Container widget, int designWidth, int designHeight)
19
 
                {
20
 
                        return EmbedWindow.Wrap (widget, designWidth, designHeight);
21
 
                }
22
 
                
23
 
                public static ActionGroupDesignerBackend CreateActionGroupDesigner (ProjectBackend project, ActionGroupToolbar groupToolbar)
24
 
                {
25
 
                        Editor.ActionGroupEditor agroupEditor = new Editor.ActionGroupEditor ();
26
 
                        agroupEditor.Project = project;
27
 
                        WidgetDesignerBackend groupDesign = EmbedWindow.Wrap (agroupEditor, -1, -1);
28
 
                        
29
 
                        groupToolbar.Bind (agroupEditor);
30
 
                        
31
 
                        return new ActionGroupDesignerBackend (groupDesign, agroupEditor, groupToolbar);
32
 
                }
33
 
        }
34
 
}