Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-mono-tools.git;a=commitdiff;h=2b3729b2cabe8d36d16a25d3e6b92c14bd9537a7
commit 2b3729b2cabe8d36d16a25d3e6b92c14bd9537a7 Author: bouleetbil <bouleet...@frogdev.info> Date: Wed Sep 1 22:04:43 2010 +0200 *can disable splash on startup diff --git a/frugal-mono-tools/Configuration.cs b/frugal-mono-tools/Configuration.cs index c62fe00..c6f0619 100644 --- a/frugal-mono-tools/Configuration.cs +++ b/frugal-mono-tools/Configuration.cs @@ -27,6 +27,8 @@ namespace frugalmonotools private bool _checkUpdate = false; private bool _startWithX = true; private bool _showNotif = true; + private bool _showSplash = true; + public string GetConfFile(){ return Environment.GetFolderPath(System.Environment.SpecialFolder .Personal)+confFile; @@ -55,6 +57,14 @@ namespace frugalmonotools { return _showNotif; } + public void Set_ShowSplash(bool valeur) + { + _showSplash=valeur; + } + public bool Get_ShowSplash() + { + return _showSplash; + } public Configuration () { @@ -77,6 +87,10 @@ namespace frugalmonotools { Set_ShowNotif(false); } + if (Regex.Matches(line, "dontshowsplash").Count>0) + { + Set_ShowSplash(false); + } } } catch @@ -94,6 +108,7 @@ namespace frugalmonotools if (Get_CheckUpdate()) FileConf.WriteLine("checkupdate"); if (!Get_StartWithX()) FileConf.WriteLine("dontstartwithx"); if (!Get_ShowNotif()) FileConf.WriteLine("dontshownotif"); + if (!Get_ShowSplash()) FileConf.WriteLine("dontshowsplash"); FileConf.Close(); } catch(Exception exe) diff --git a/frugal-mono-tools/Main.cs b/frugal-mono-tools/Main.cs index 856ea37..e9ebee5 100644 --- a/frugal-mono-tools/Main.cs +++ b/frugal-mono-tools/Main.cs @@ -95,7 +95,7 @@ namespace frugalmonotools { Gtk.Application.Init(); - if (configuration.Get_CheckUpdate()) + if (configuration.Get_ShowSplash()) { win = new splash (); win.Show (); diff --git a/frugal-mono-tools/MainWindow.cs b/frugal-mono-tools/MainWindow.cs index f96df11..bd9d74b 100644 --- a/frugal-mono-tools/MainWindow.cs +++ b/frugal-mono-tools/MainWindow.cs @@ -795,6 +795,7 @@ public partial class MainWindow : Gtk.Window MainClass.configuration.Set_CheckUpdate(INT_CheckStartup.Active); MainClass.configuration.Set_StartWithX(INT_StartWithXSession.Active); MainClass.configuration.Set_ShowNotif(INT_ShowNotif.Active); + MainClass.configuration.Set_ShowSplash(INT_ShowSplash.Active); MainClass.configuration.ConfSave(); } diff --git a/frugal-mono-tools/gtk-gui/MainWindow.cs b/frugal-mono-tools/gtk-gui/MainWindow.cs index f047b11..cbfb0aa 100644 --- a/frugal-mono-tools/gtk-gui/MainWindow.cs +++ b/frugal-mono-tools/gtk-gui/MainWindow.cs @@ -199,6 +199,8 @@ public partial class MainWindow private global::Gtk.CheckButton INT_ShowNotif; + private global::Gtk.CheckButton INT_ShowSplash; + private global::Gtk.HBox hbox21; private global::Gtk.Button BTN_SaveConf; @@ -223,7 +225,7 @@ public partial class MainWindow this.ONG_principal = new global::Gtk.Notebook (); this.ONG_principal.CanFocus = true; this.ONG_principal.Name = "ONG_principal"; - this.ONG_principal.CurrentPage = 3; + this.ONG_principal.CurrentPage = 7; // Container child ONG_principal.Gtk.Notebook+NotebookChild this.vbox4 = new global::Gtk.VBox (); this.vbox4.Name = "vbox4"; @@ -1135,6 +1137,19 @@ public partial class MainWindow w89.Expand = false; w89.Fill = false; // Container child vbox8.Gtk.Box+BoxChild + this.INT_ShowSplash = new global::Gtk.CheckButton (); + this.INT_ShowSplash.CanFocus = true; + this.INT_ShowSplash.Name = "INT_ShowSplash"; + this.INT_ShowSplash.Label = global::Mono.Unix.Catalog.GetString ("Show splash screen"); + this.INT_ShowSplash.Active = true; + this.INT_ShowSplash.DrawIndicator = true; + this.INT_ShowSplash.UseUnderline = true; + this.vbox8.Add (this.INT_ShowSplash); + global::Gtk.Box.BoxChild w90 = ((global::Gtk.Box.BoxChild)(this.vbox8[this.INT_ShowSplash])); + w90.Position = 3; + w90.Expand = false; + w90.Fill = false; + // Container child vbox8.Gtk.Box+BoxChild this.hbox21 = new global::Gtk.HBox (); this.hbox21.Name = "hbox21"; this.hbox21.Spacing = 6; @@ -1145,18 +1160,18 @@ public partial class MainWindow this.BTN_SaveConf.UseUnderline = true; this.BTN_SaveConf.Label = global::Mono.Unix.Catalog.GetString ("Apply"); this.hbox21.Add (this.BTN_SaveConf); - global::Gtk.Box.BoxChild w90 = ((global::Gtk.Box.BoxChild)(this.hbox21[this.BTN_SaveConf])); - w90.Position = 2; - w90.Expand = false; - w90.Fill = false; - this.vbox8.Add (this.hbox21); - global::Gtk.Box.BoxChild w91 = ((global::Gtk.Box.BoxChild)(this.vbox8[this.hbox21])); - w91.Position = 4; + global::Gtk.Box.BoxChild w91 = ((global::Gtk.Box.BoxChild)(this.hbox21[this.BTN_SaveConf])); + w91.Position = 2; w91.Expand = false; w91.Fill = false; + this.vbox8.Add (this.hbox21); + global::Gtk.Box.BoxChild w92 = ((global::Gtk.Box.BoxChild)(this.vbox8[this.hbox21])); + w92.Position = 5; + w92.Expand = false; + w92.Fill = false; this.ONG_principal.Add (this.vbox8); - global::Gtk.Notebook.NotebookChild w92 = ((global::Gtk.Notebook.NotebookChild)(this.ONG_principal[this.vbox8])); - w92.Position = 7; + global::Gtk.Notebook.NotebookChild w93 = ((global::Gtk.Notebook.NotebookChild)(this.ONG_principal[this.vbox8])); + w93.Position = 7; // Notebook tab this.Configuration = new global::Gtk.Label (); this.Configuration.Name = "Configuration"; @@ -1174,8 +1189,8 @@ public partial class MainWindow this.textview2.Name = "textview2"; this.GtkScrolledWindow2.Add (this.textview2); this.ONG_principal.Add (this.GtkScrolledWindow2); - global::Gtk.Notebook.NotebookChild w94 = ((global::Gtk.Notebook.NotebookChild)(this.ONG_principal[this.GtkScrolledWindow2])); - w94.Position = 8; + global::Gtk.Notebook.NotebookChild w95 = ((global::Gtk.Notebook.NotebookChild)(this.ONG_principal[this.GtkScrolledWindow2])); + w95.Position = 8; // Notebook tab this.label6 = new global::Gtk.Label (); this.label6.Name = "label6"; diff --git a/frugal-mono-tools/gtk-gui/gui.stetic b/frugal-mono-tools/gtk-gui/gui.stetic index 08a3f5a..c49baec 100644 --- a/frugal-mono-tools/gtk-gui/gui.stetic +++ b/frugal-mono-tools/gtk-gui/gui.stetic @@ -28,7 +28,7 @@ <widget class="Gtk.Notebook" id="ONG_principal"> <property name="MemberName" /> <property name="CanFocus">True</property> - <property name="CurrentPage">3</property> + <property name="CurrentPage">7</property> <child> <widget class="Gtk.VBox" id="vbox4"> <property name="MemberName" /> @@ -1318,6 +1318,23 @@ ztv</property> </packing> </child> <child> + <widget class="Gtk.CheckButton" id="INT_ShowSplash"> + <property name="MemberName" /> + <property name="CanFocus">True</property> + <property name="Label" translatable="yes">Show splash screen</property> + <property name="Active">True</property> + <property name="DrawIndicator">True</property> + <property name="HasLabel">True</property> + <property name="UseUnderline">True</property> + </widget> + <packing> + <property name="Position">3</property> + <property name="AutoSize">True</property> + <property name="Expand">False</property> + <property name="Fill">False</property> + </packing> + </child> + <child> <placeholder /> </child> <child> @@ -1348,7 +1365,7 @@ ztv</property> </child> </widget> <packing> - <property name="Position">4</property> + <property name="Position">5</property> <property name="AutoSize">True</property> <property name="Expand">False</property> <property name="Fill">False</property> _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git