Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=1208ea8233508a627a4653697aef3cb168df495e
commit 1208ea8233508a627a4653697aef3cb168df495e Author: bouleetbil <bouleet...@frogdev.info> Date: Tue Sep 21 14:54:56 2010 +0000 *forgot to inform no root for save xorg config diff --git a/frugal-mono-tools/WID_Xorg.cs b/frugal-mono-tools/WID_Xorg.cs index 23d698a..9514434 100644 --- a/frugal-mono-tools/WID_Xorg.cs +++ b/frugal-mono-tools/WID_Xorg.cs @@ -37,7 +37,14 @@ namespace frugalmonotools public void InitXorg() { if(!MainClass.boRoot) + { BTN_Xorg.Visible=false; + LIB_Root.Visible=true; + } + else + { + LIB_Root.Visible=false; + } //xorg configuration SAI_Layout.Text=this.LayoutXorg(); diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Xorg.cs b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Xorg.cs index 900b475..fd3c5f5 100644 --- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Xorg.cs +++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Xorg.cs @@ -24,6 +24,8 @@ namespace frugalmonotools private global::Gtk.HBox hbox14; + private global::Gtk.Label LIB_Root; + private global::Gtk.Button BTN_Xorg; protected virtual void Build () @@ -121,36 +123,46 @@ namespace frugalmonotools this.hbox14.Name = "hbox14"; this.hbox14.Spacing = 6; // Container child hbox14.Gtk.Box+BoxChild + this.LIB_Root = new global::Gtk.Label (); + this.LIB_Root.Name = "LIB_Root"; + this.LIB_Root.LabelProp = global::Mono.Unix.Catalog.GetString ("Can't save, should be started as root"); + this.hbox14.Add (this.LIB_Root); + global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox14[this.LIB_Root])); + w9.Position = 0; + w9.Expand = false; + w9.Fill = false; + // Container child hbox14.Gtk.Box+BoxChild this.BTN_Xorg = new global::Gtk.Button (); this.BTN_Xorg.CanFocus = true; this.BTN_Xorg.Name = "BTN_Xorg"; this.BTN_Xorg.UseUnderline = true; // Container child BTN_Xorg.Gtk.Container+ContainerChild - global::Gtk.Alignment w9 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); + global::Gtk.Alignment w10 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w10 = new global::Gtk.HBox (); - w10.Spacing = 2; + global::Gtk.HBox w11 = new global::Gtk.HBox (); + w11.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w11 = new global::Gtk.Image (); - w11.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-apply", global::Gtk.IconSize.Menu); - w10.Add (w11); + global::Gtk.Image w12 = new global::Gtk.Image (); + w12.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-apply", global::Gtk.IconSize.Menu); + w11.Add (w12); // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w13 = new global::Gtk.Label (); - w13.LabelProp = global::Mono.Unix.Catalog.GetString ("Apply"); - w13.UseUnderline = true; - w10.Add (w13); - w9.Add (w10); - this.BTN_Xorg.Add (w9); + global::Gtk.Label w14 = new global::Gtk.Label (); + w14.LabelProp = global::Mono.Unix.Catalog.GetString ("Apply"); + w14.UseUnderline = true; + w11.Add (w14); + w10.Add (w11); + this.BTN_Xorg.Add (w10); this.hbox14.Add (this.BTN_Xorg); - global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox14[this.BTN_Xorg])); - w17.Position = 2; - w17.Expand = false; - w17.Fill = false; - this.vbox6.Add (this.hbox14); - global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox6[this.hbox14])); - w18.Position = 6; + global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.hbox14[this.BTN_Xorg])); + w18.PackType = ((global::Gtk.PackType)(1)); + w18.Position = 2; w18.Expand = false; w18.Fill = false; + this.vbox6.Add (this.hbox14); + global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox6[this.hbox14])); + w19.Position = 6; + w19.Expand = false; + w19.Fill = false; this.Add (this.vbox6); if ((this.Child != null)) { this.Child.ShowAll (); diff --git a/frugal-mono-tools/gtk-gui/gui.stetic b/frugal-mono-tools/gtk-gui/gui.stetic index 20bd631..59e3665 100644 --- a/frugal-mono-tools/gtk-gui/gui.stetic +++ b/frugal-mono-tools/gtk-gui/gui.stetic @@ -437,7 +437,16 @@ <property name="MemberName" /> <property name="Spacing">6</property> <child> - <placeholder /> + <widget class="Gtk.Label" id="LIB_Root"> + <property name="MemberName" /> + <property name="LabelProp" translatable="yes">Can't save, should be started as root</property> + </widget> + <packing> + <property name="Position">0</property> + <property name="AutoSize">True</property> + <property name="Expand">False</property> + <property name="Fill">False</property> + </packing> </child> <child> <placeholder /> @@ -453,6 +462,7 @@ <signal name="Clicked" handler="OnBTNXorgClicked" /> </widget> <packing> + <property name="PackType">End</property> <property name="Position">2</property> <property name="AutoSize">True</property> <property name="Expand">False</property> _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git