Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-mono-tools.git;a=commitdiff;h=dfcf419bd717ff9c31d3d70fde73be29c9426240

commit dfcf419bd717ff9c31d3d70fde73be29c9426240
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Sun Aug 29 18:21:05 2010 +0200

*check database pacman into thread on startup
*prepare splash

diff --git a/frugal-mono-tools/Main.cs b/frugal-mono-tools/Main.cs
index 1940b5e..7dc7f67 100644
--- a/frugal-mono-tools/Main.cs
+++ b/frugal-mono-tools/Main.cs
@@ -54,13 +54,32 @@ namespace frugalmonotools
Console.WriteLine("Some packages can be updated.");
}
}
+
+               private static  void SubThread(){
+
+               Gtk.Application.Invoke (delegate {
+                               splash sf =  new splash();
+                               sf.Show();
+                               check();
+                               sf.Hide();
+                               sf.Dispose();
+               });
+
+
+               }
+
public static void Main (string[] args)
{
+
System.Timers.Timer aTimer;
if(args.Length==0)
{
Gtk.Application.Init();
-                               check();
+                               Thread th = new Thread(new 
ThreadStart(SubThread));
+                               th.IsBackground=true;
+                               th.SetApartmentState(ApartmentState.STA);
+                               th.Start();
+
MainWindow win = new MainWindow ();
win.Show ();
Gtk.Application.Run ();
diff --git a/frugal-mono-tools/frugal-mono-tools.csproj 
b/frugal-mono-tools/frugal-mono-tools.csproj
index ba30bd7..4a2d33d 100644
--- a/frugal-mono-tools/frugal-mono-tools.csproj
+++ b/frugal-mono-tools/frugal-mono-tools.csproj
@@ -78,6 +78,8 @@
<Compile Include="PacmanG2.cs" />
<Compile Include="Update.cs" />
<Compile Include="IconSummaryBody.cs" />
+    <Compile Include="splash.cs" />
+    <Compile Include="gtk-gui\frugalmonotools.splash.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
@@ -91,8 +93,8 @@
</ItemGroup>
<ItemGroup>
<None Include="TODO" />
-    <None Include="LICENCE" />
<None Include="Changelog" />
+    <None Include="LICENSE" />
</ItemGroup>
<ItemGroup>
<Content Include="frugal-tools-gnome.desktop" />
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.splash.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.splash.cs
new file mode 100644
index 0000000..4b15df4
--- /dev/null
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.splash.cs
@@ -0,0 +1,67 @@
+
+// This file has been generated by the GUI designer. Do not modify.
+namespace frugalmonotools
+{
+       public partial class splash
+       {
+               private global::Gtk.HBox hbox1;
+
+               private global::Gtk.VBox vbox1;
+
+               private global::Gtk.Image LOGO;
+
+               private global::Gtk.Label label1;
+
+               protected virtual void Build ()
+               {
+                       global::Stetic.Gui.Initialize (this);
+                       // Widget frugalmonotools.splash
+                       this.Name = "frugalmonotools.splash";
+                       this.Title = global::Mono.Unix.Catalog.GetString 
("Frugalware mono tools !");
+                       this.Icon = global::Gdk.Pixbuf.LoadFromResource 
("frugalmonotools.header.svg");
+                       this.TypeHint = ((global::Gdk.WindowTypeHint)(4));
+                       this.WindowPosition = ((global::Gtk.WindowPosition)(4));
+                       this.BorderWidth = ((uint)(2));
+                       this.Resizable = false;
+                       this.AllowGrow = false;
+                       // Container child 
frugalmonotools.splash.Gtk.Container+ContainerChild
+                       this.hbox1 = new global::Gtk.HBox ();
+                       this.hbox1.Name = "hbox1";
+                       this.hbox1.Spacing = 6;
+                       // Container child hbox1.Gtk.Box+BoxChild
+                       this.vbox1 = new global::Gtk.VBox ();
+                       this.vbox1.Name = "vbox1";
+                       this.vbox1.Spacing = 6;
+                       // Container child vbox1.Gtk.Box+BoxChild
+                       this.LOGO = new global::Gtk.Image ();
+                       this.LOGO.Name = "LOGO";
+                       this.LOGO.Pixbuf = global::Gdk.Pixbuf.LoadFromResource 
("frugalmonotools.header.svg");
+                       this.vbox1.Add (this.LOGO);
+                       global::Gtk.Box.BoxChild w1 = 
((global::Gtk.Box.BoxChild)(this.vbox1[this.LOGO]));
+                       w1.Position = 0;
+                       w1.Expand = false;
+                       w1.Fill = false;
+                       // Container child vbox1.Gtk.Box+BoxChild
+                       this.label1 = new global::Gtk.Label ();
+                       this.label1.Name = "label1";
+                       this.label1.LabelProp = 
global::Mono.Unix.Catalog.GetString ("Tools written in C# for configure 
Frugalware !");
+                       this.vbox1.Add (this.label1);
+                       global::Gtk.Box.BoxChild w2 = 
((global::Gtk.Box.BoxChild)(this.vbox1[this.label1]));
+                       w2.Position = 1;
+                       w2.Expand = false;
+                       w2.Fill = false;
+                       this.hbox1.Add (this.vbox1);
+                       global::Gtk.Box.BoxChild w3 = 
((global::Gtk.Box.BoxChild)(this.hbox1[this.vbox1]));
+                       w3.Position = 1;
+                       w3.Expand = false;
+                       w3.Fill = false;
+                       this.Add (this.hbox1);
+                       if ((this.Child != null)) {
+                               this.Child.ShowAll ();
+                       }
+                       this.DefaultWidth = 400;
+                       this.DefaultHeight = 347;
+                       this.Show ();
+               }
+       }
+}
diff --git a/frugal-mono-tools/gtk-gui/gui.stetic 
b/frugal-mono-tools/gtk-gui/gui.stetic
index 7339adb..5e24dc4 100644
--- a/frugal-mono-tools/gtk-gui/gui.stetic
+++ b/frugal-mono-tools/gtk-gui/gui.stetic
@@ -7,8 +7,8 @@
<import>
<widget-library name="glade-sharp, Version=2.12.0.0, Culture=neutral, 
PublicKeyToken=35e10195dab3c99f" />
<widget-library name="webkit-sharp, Version=1.1.15.0, Culture=neutral, 
PublicKeyToken=eaa1d335d2e19745" />
-    <widget-library name="../bin/Debug/frugal-mono-tools.exe" internal="true" 
/>
<widget-library name="notify-sharp, Version=0.4.0.0, Culture=neutral, 
PublicKeyToken=2df29c54e245917a" />
+    <widget-library name="../bin/Release/frugal-mono-tools.exe" 
internal="true" />
</import>
<widget class="Gtk.Window" id="MainWindow" design-size="552 395">
<property name="MemberName" />
@@ -1560,4 +1560,65 @@ Public License instead of this License.
</widget>
</child>
</widget>
+  <widget class="Gtk.Window" id="frugalmonotools.splash" design-size="400 347">
+    <property name="MemberName" />
+    <property name="Title" translatable="yes">Frugalware mono tools 
!</property>
+    <property name="Icon">resource:frugalmonotools.header.svg</property>
+    <property name="TypeHint">Splashscreen</property>
+    <property name="WindowPosition">CenterOnParent</property>
+    <property name="BorderWidth">2</property>
+    <property name="Resizable">False</property>
+    <property name="AllowGrow">False</property>
+    <child>
+      <widget class="Gtk.HBox" id="hbox1">
+        <property name="MemberName" />
+        <property name="Spacing">6</property>
+        <child>
+          <placeholder />
+        </child>
+        <child>
+          <widget class="Gtk.VBox" id="vbox1">
+            <property name="MemberName" />
+            <property name="Spacing">6</property>
+            <child>
+              <widget class="Gtk.Image" id="LOGO">
+                <property name="MemberName" />
+                <property 
name="Pixbuf">resource:frugalmonotools.header.svg</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>
+              <widget class="Gtk.Label" id="label1">
+                <property name="MemberName" />
+                <property name="LabelProp" translatable="yes">Tools written in 
C# for configure Frugalware !</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>
+        <child>
+          <placeholder />
+        </child>
+      </widget>
+    </child>
+  </widget>
</stetic-interface>
\ No newline at end of file
diff --git a/frugal-mono-tools/splash.cs b/frugal-mono-tools/splash.cs
new file mode 100644
index 0000000..c0117c0
--- /dev/null
+++ b/frugal-mono-tools/splash.cs
@@ -0,0 +1,12 @@
+using System;
+namespace frugalmonotools
+{
+       public partial class splash : Gtk.Window
+       {
+               public splash () : base(Gtk.WindowType.Toplevel)
+               {
+                       this.Build ();
+               }
+       }
+}
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to