~ubuntu-branches/ubuntu/wily/gnome-do/wily

« back to all changes in this revision

Viewing changes to Do.Platform.Linux/gtk-gui/Do.Platform.Linux.PluginAvailableDialog.cs

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2011-02-15 21:50:02 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110215215002-1j8ylb69o15asb06
Tags: 0.8.4-0ubuntu1
* The Race Against FF upload.  Merge from unreleased Debian git.
  Remaining Ubuntu changes:
  + debian/patches/05_disable_resize_grips.patch.diff:
    Disable resize handles for the Do windows.
  + debian/control:
    Bump gtk# build dep for HasResizeGrip API.
* New Debian changes:
* The long fortold release
  + Fixes a threadsafety issue resulting in 100% CPU usage (Closes: 565591,
    LP: #450852).
  + Proxies all keyring calls to the GTK main thread, as required by the new
    gnome-keyring (Closes: 603876, LP: #553643)
* debian/patches/00_bundledlibs.dpatch:
* debian/rules:
  + Upstream has dropped bundled gmcs binary; now 100% DFSG-free, so we don't
    have to repack the tarball or patch the buildsystem.
* debian/patches/03_disable_docky.dpatch:
  + Drop.  Docky is now gone in the upstream tarball.
* debian/rules:
* debian/control:
* debian/patches/*:
  + Switch to quilt to harmonise with other pkg-cli-* packages.
* debian/control:
  + Drop recommends on gnome-do-docklets.  Docky is now a separate package,
    so the docklets are useless for Do.
  + Bump Breaks on gnome-do-plugins to 0.8.3.  Do no longer provides the Wink
    library, which has been imported into the 0.8.3 do-plugins sources.
  + Bump standards-version; no changes needed.
  + Migrate to git and update VCS fields appropriately

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// ------------------------------------------------------------------------------
 
2
//  <autogenerated>
 
3
//      This code was generated by a tool.
 
4
//      
 
5
// 
 
6
//      Changes to this file may cause incorrect behavior and will be lost if 
 
7
//      the code is regenerated.
 
8
//  </autogenerated>
 
9
// ------------------------------------------------------------------------------
 
10
 
 
11
namespace Do.Platform.Linux {
 
12
    
 
13
    
 
14
    public partial class PluginAvailableDialog {
 
15
        
 
16
        private Gtk.VBox vbox2;
 
17
        
 
18
        private Gtk.HBox hbox1;
 
19
        
 
20
        private Gtk.Image title_img;
 
21
        
 
22
        private Gtk.Alignment title_align;
 
23
        
 
24
        private Gtk.Label title_lbl;
 
25
        
 
26
        private Gtk.Alignment body_align;
 
27
        
 
28
        private Gtk.Label body_lbl;
 
29
        
 
30
        private Gtk.Alignment link_align;
 
31
        
 
32
        private Gtk.VBox link_vbox;
 
33
        
 
34
        private Gtk.Alignment ask_align;
 
35
        
 
36
        private Gtk.CheckButton ask_chk;
 
37
        
 
38
        private Gtk.Button buttonCancel;
 
39
        
 
40
        private Gtk.Button install_btn;
 
41
        
 
42
        protected virtual void Build() {
 
43
            Stetic.Gui.Initialize(this);
 
44
            // Widget Do.Platform.Linux.PluginAvailableDialog
 
45
            this.Name = "Do.Platform.Linux.PluginAvailableDialog";
 
46
            this.Icon = Stetic.IconLoader.LoadIcon(this, "distributor-logo", Gtk.IconSize.Menu, 16);
 
47
            this.WindowPosition = ((Gtk.WindowPosition)(4));
 
48
            this.BorderWidth = ((uint)(5));
 
49
            // Internal child Do.Platform.Linux.PluginAvailableDialog.VBox
 
50
            Gtk.VBox w1 = this.VBox;
 
51
            w1.Name = "dialog1_VBox";
 
52
            w1.BorderWidth = ((uint)(2));
 
53
            // Container child dialog1_VBox.Gtk.Box+BoxChild
 
54
            this.vbox2 = new Gtk.VBox();
 
55
            this.vbox2.Name = "vbox2";
 
56
            this.vbox2.Spacing = 6;
 
57
            // Container child vbox2.Gtk.Box+BoxChild
 
58
            this.hbox1 = new Gtk.HBox();
 
59
            this.hbox1.Name = "hbox1";
 
60
            this.hbox1.Spacing = 6;
 
61
            // Container child hbox1.Gtk.Box+BoxChild
 
62
            this.title_img = new Gtk.Image();
 
63
            this.title_img.Name = "title_img";
 
64
            this.title_img.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gnome-do", Gtk.IconSize.Dialog, 48);
 
65
            this.hbox1.Add(this.title_img);
 
66
            Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.title_img]));
 
67
            w2.Position = 0;
 
68
            w2.Expand = false;
 
69
            w2.Fill = false;
 
70
            // Container child hbox1.Gtk.Box+BoxChild
 
71
            this.title_align = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
 
72
            this.title_align.Name = "title_align";
 
73
            this.title_align.LeftPadding = ((uint)(7));
 
74
            // Container child title_align.Gtk.Container+ContainerChild
 
75
            this.title_lbl = new Gtk.Label();
 
76
            this.title_lbl.Name = "title_lbl";
 
77
            this.title_lbl.LabelProp = Mono.Unix.Catalog.GetString("<b><span size=\"x-large\">There's a Do plugin for that!</span></b>");
 
78
            this.title_lbl.UseMarkup = true;
 
79
            this.title_align.Add(this.title_lbl);
 
80
            this.hbox1.Add(this.title_align);
 
81
            Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.title_align]));
 
82
            w4.Position = 1;
 
83
            w4.Expand = false;
 
84
            w4.Fill = false;
 
85
            this.vbox2.Add(this.hbox1);
 
86
            Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
 
87
            w5.Position = 0;
 
88
            w5.Expand = false;
 
89
            w5.Fill = false;
 
90
            // Container child vbox2.Gtk.Box+BoxChild
 
91
            this.body_align = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
 
92
            this.body_align.Name = "body_align";
 
93
            this.body_align.LeftPadding = ((uint)(62));
 
94
            // Container child body_align.Gtk.Container+ContainerChild
 
95
            this.body_lbl = new Gtk.Label();
 
96
            this.body_lbl.Name = "body_lbl";
 
97
            this.body_lbl.Xalign = 0F;
 
98
            this.body_lbl.LabelProp = Mono.Unix.Catalog.GetString("A Do plugin for {0} is available for installation. Would you like us to enable it for you?");
 
99
            this.body_lbl.Wrap = true;
 
100
            this.body_align.Add(this.body_lbl);
 
101
            this.vbox2.Add(this.body_align);
 
102
            Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.body_align]));
 
103
            w7.Position = 1;
 
104
            w7.Expand = false;
 
105
            w7.Fill = false;
 
106
            // Container child vbox2.Gtk.Box+BoxChild
 
107
            this.link_align = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
 
108
            this.link_align.Name = "link_align";
 
109
            this.link_align.LeftPadding = ((uint)(55));
 
110
            // Container child link_align.Gtk.Container+ContainerChild
 
111
            this.link_vbox = new Gtk.VBox();
 
112
            this.link_vbox.Name = "link_vbox";
 
113
            this.link_align.Add(this.link_vbox);
 
114
            this.vbox2.Add(this.link_align);
 
115
            Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.link_align]));
 
116
            w9.Position = 2;
 
117
            // Container child vbox2.Gtk.Box+BoxChild
 
118
            this.ask_align = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
 
119
            this.ask_align.Name = "ask_align";
 
120
            this.ask_align.LeftPadding = ((uint)(57));
 
121
            // Container child ask_align.Gtk.Container+ContainerChild
 
122
            this.ask_chk = new Gtk.CheckButton();
 
123
            this.ask_chk.CanFocus = true;
 
124
            this.ask_chk.Name = "ask_chk";
 
125
            this.ask_chk.Label = Mono.Unix.Catalog.GetString("Don't ask me about Do plugins again.");
 
126
            this.ask_chk.DrawIndicator = true;
 
127
            this.ask_chk.UseUnderline = true;
 
128
            this.ask_align.Add(this.ask_chk);
 
129
            this.vbox2.Add(this.ask_align);
 
130
            Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.ask_align]));
 
131
            w11.Position = 3;
 
132
            w11.Expand = false;
 
133
            w11.Fill = false;
 
134
            w1.Add(this.vbox2);
 
135
            Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
 
136
            w12.Position = 0;
 
137
            // Internal child Do.Platform.Linux.PluginAvailableDialog.ActionArea
 
138
            Gtk.HButtonBox w13 = this.ActionArea;
 
139
            w13.Name = "dialog1_ActionArea";
 
140
            w13.Spacing = 6;
 
141
            w13.BorderWidth = ((uint)(5));
 
142
            w13.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
 
143
            // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
 
144
            this.buttonCancel = new Gtk.Button();
 
145
            this.buttonCancel.CanDefault = true;
 
146
            this.buttonCancel.CanFocus = true;
 
147
            this.buttonCancel.Name = "buttonCancel";
 
148
            this.buttonCancel.UseStock = true;
 
149
            this.buttonCancel.UseUnderline = true;
 
150
            this.buttonCancel.Label = "gtk-cancel";
 
151
            this.AddActionWidget(this.buttonCancel, -6);
 
152
            Gtk.ButtonBox.ButtonBoxChild w14 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.buttonCancel]));
 
153
            w14.Expand = false;
 
154
            w14.Fill = false;
 
155
            // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
 
156
            this.install_btn = new Gtk.Button();
 
157
            this.install_btn.CanDefault = true;
 
158
            this.install_btn.CanFocus = true;
 
159
            this.install_btn.Name = "install_btn";
 
160
            this.install_btn.UseUnderline = true;
 
161
            // Container child install_btn.Gtk.Container+ContainerChild
 
162
            Gtk.Alignment w15 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
 
163
            // Container child GtkAlignment.Gtk.Container+ContainerChild
 
164
            Gtk.HBox w16 = new Gtk.HBox();
 
165
            w16.Spacing = 2;
 
166
            // Container child GtkHBox.Gtk.Container+ContainerChild
 
167
            Gtk.Image w17 = new Gtk.Image();
 
168
            w17.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-ok", Gtk.IconSize.Button, 16);
 
169
            w16.Add(w17);
 
170
            // Container child GtkHBox.Gtk.Container+ContainerChild
 
171
            Gtk.Label w19 = new Gtk.Label();
 
172
            w19.LabelProp = Mono.Unix.Catalog.GetString("_Install");
 
173
            w19.UseUnderline = true;
 
174
            w16.Add(w19);
 
175
            w15.Add(w16);
 
176
            this.install_btn.Add(w15);
 
177
            this.AddActionWidget(this.install_btn, -5);
 
178
            Gtk.ButtonBox.ButtonBoxChild w23 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.install_btn]));
 
179
            w23.Position = 1;
 
180
            w23.Expand = false;
 
181
            w23.Fill = false;
 
182
            if ((this.Child != null)) {
 
183
                this.Child.ShowAll();
 
184
            }
 
185
            this.DefaultWidth = 486;
 
186
            this.DefaultHeight = 218;
 
187
            this.Show();
 
188
            this.ask_chk.Toggled += new System.EventHandler(this.OnAskChkToggled);
 
189
            this.buttonCancel.Clicked += new System.EventHandler(this.OnButtonCancelClicked);
 
190
            this.install_btn.Clicked += new System.EventHandler(this.OnInstallBtnClicked);
 
191
        }
 
192
    }
 
193
}