Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=b703383ab329ac01fb899e5abe1f49807ea95bb3
commit b703383ab329ac01fb899e5abe1f49807ea95bb3 Author: bouleetbil <bouleet...@frogdev.info> Date: Wed Sep 15 13:53:49 2010 +0200 *added statusbar *select first element into the trreview diff --git a/frugal-mono-tools/Fen_Menu.cs b/frugal-mono-tools/Fen_Menu.cs index 00bc6b0..d251146 100644 --- a/frugal-mono-tools/Fen_Menu.cs +++ b/frugal-mono-tools/Fen_Menu.cs @@ -85,6 +85,7 @@ namespace frugalmonotools Pixbuf icoSys = global::Gdk.Pixbuf.LoadFromResource ("frugalmonotools.Pictures.systrayupdate.png"); iter = ListMenu.AppendValues(icoSys.ScaleSimple(20,20, Gdk.InterpType.Nearest),cch_system); + this.TREE_Menu.SetCursor(ListMenu.GetPath(iter),TREE_Menu.GetColumn(1),false); //FIX ME select first element ListMenu.AppendValues(icoSys.ScaleSimple(20,20, Gdk.InterpType.Nearest), cch_xorg); ListMenu.AppendValues(icoSys.ScaleSimple(20,20, Gdk.InterpType.Nearest),cch_update); @@ -195,6 +196,7 @@ namespace frugalmonotools this.HBOX_Details.PackStart(fen_services); this.HBOX_Details.ShowAll(); this.fen_services.InitService(); + break; case cch_support: diff --git a/frugal-mono-tools/WID_Update.cs b/frugal-mono-tools/WID_Update.cs index a261ba0..1d3c1d3 100644 --- a/frugal-mono-tools/WID_Update.cs +++ b/frugal-mono-tools/WID_Update.cs @@ -142,12 +142,6 @@ namespace frugalmonotools else Outils.ExcecuteAsRoot("python /usr/bin/PyFrugalVTE pacman-g2 -Syu",false); } - - - - - - } } diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.Fen_Menu.cs b/frugal-mono-tools/gtk-gui/frugalmonotools.Fen_Menu.cs index 06b8a65..9402ee1 100644 --- a/frugal-mono-tools/gtk-gui/frugalmonotools.Fen_Menu.cs +++ b/frugal-mono-tools/gtk-gui/frugalmonotools.Fen_Menu.cs @@ -4,6 +4,8 @@ namespace frugalmonotools { public partial class Fen_Menu { + private global::Gtk.VBox vbox1; + private global::Gtk.HBox HBOX_Menu; private global::Gtk.ScrolledWindow GtkScrolledWindow; @@ -12,6 +14,10 @@ namespace frugalmonotools private global::Gtk.HBox HBOX_Details; + private global::Gtk.Statusbar STA_Info; + + private global::Gtk.Label LAB_Info; + protected virtual void Build () { global::Stetic.Gui.Initialize (this); @@ -24,6 +30,10 @@ namespace frugalmonotools this.DefaultWidth = 900; this.DefaultHeight = 600; // Container child frugalmonotools.Fen_Menu.Gtk.Container+ContainerChild + this.vbox1 = new global::Gtk.VBox (); + this.vbox1.Name = "vbox1"; + this.vbox1.Spacing = 6; + // Container child vbox1.Gtk.Box+BoxChild this.HBOX_Menu = new global::Gtk.HBox (); this.HBOX_Menu.Name = "HBOX_Menu"; this.HBOX_Menu.Spacing = 6; @@ -48,7 +58,28 @@ namespace frugalmonotools this.HBOX_Menu.Add (this.HBOX_Details); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.HBOX_Menu[this.HBOX_Details])); w3.Position = 1; - this.Add (this.HBOX_Menu); + this.vbox1.Add (this.HBOX_Menu); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.HBOX_Menu])); + w4.Position = 0; + // Container child vbox1.Gtk.Box+BoxChild + this.STA_Info = new global::Gtk.Statusbar (); + this.STA_Info.Name = "STA_Info"; + this.STA_Info.Spacing = 6; + // Container child STA_Info.Gtk.Box+BoxChild + this.LAB_Info = new global::Gtk.Label (); + this.LAB_Info.Name = "LAB_Info"; + this.LAB_Info.LabelProp = global::Mono.Unix.Catalog.GetString ("label2"); + this.STA_Info.Add (this.LAB_Info); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.STA_Info[this.LAB_Info])); + w5.Position = 1; + w5.Expand = false; + w5.Fill = false; + this.vbox1.Add (this.STA_Info); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.STA_Info])); + w6.Position = 1; + w6.Expand = false; + w6.Fill = false; + this.Add (this.vbox1); 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 c626ed9..cf47062 100644 --- a/frugal-mono-tools/gtk-gui/gui.stetic +++ b/frugal-mono-tools/gtk-gui/gui.stetic @@ -99,21 +99,44 @@ <property name="DefaultHeight">600</property> <signal name="DeleteEvent" handler="OnDeleteEvent" /> <child> - <widget class="Gtk.HBox" id="HBOX_Menu"> + <widget class="Gtk.VBox" id="vbox1"> <property name="MemberName" /> <property name="Spacing">6</property> <child> - <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow"> + <widget class="Gtk.HBox" id="HBOX_Menu"> <property name="MemberName" /> - <property name="ShadowType">In</property> + <property name="Spacing">6</property> <child> - <widget class="Gtk.TreeView" id="TREE_Menu"> + <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow"> <property name="MemberName" /> - <property name="WidthRequest">165</property> - <property name="HeightRequest">165</property> - <property name="CanFocus">True</property> - <property name="ShowScrollbars">True</property> + <property name="ShadowType">In</property> + <child> + <widget class="Gtk.TreeView" id="TREE_Menu"> + <property name="MemberName" /> + <property name="WidthRequest">165</property> + <property name="HeightRequest">165</property> + <property name="CanFocus">True</property> + <property name="ShowScrollbars">True</property> + </widget> + </child> </widget> + <packing> + <property name="Position">0</property> + <property name="AutoSize">True</property> + </packing> + </child> + <child> + <widget class="Gtk.HBox" id="HBOX_Details"> + <property name="MemberName" /> + <property name="Spacing">6</property> + <child> + <placeholder /> + </child> + </widget> + <packing> + <property name="Position">1</property> + <property name="AutoSize">True</property> + </packing> </child> </widget> <packing> @@ -122,16 +145,31 @@ </packing> </child> <child> - <widget class="Gtk.HBox" id="HBOX_Details"> + <widget class="Gtk.Statusbar" id="STA_Info"> <property name="MemberName" /> + <property name="Tooltip" translatable="yes" /> <property name="Spacing">6</property> <child> + <widget class="Gtk.Label" id="LAB_Info"> + <property name="MemberName" /> + <property name="LabelProp" translatable="yes">label2</property> + </widget> + <packing> + <property name="Position">1</property> + <property name="AutoSize">True</property> + <property name="Expand">False</property> + <property name="Fill">False</property> + </packing> + </child> + <child> <placeholder /> </child> </widget> <packing> <property name="Position">1</property> <property name="AutoSize">True</property> + <property name="Expand">False</property> + <property name="Fill">False</property> </packing> </child> </widget> _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git