Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=0df2ae688d7eab337d51b209d6f4debf560b9d96

commit 0df2ae688d7eab337d51b209d6f4debf560b9d96
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Tue Sep 21 21:10:19 2010 +0200

*added powered by mono in about
*added sections logs
*move frugalware logo on WID_System.cs

diff --git a/frugal-mono-tools/Fen_Menu.cs b/frugal-mono-tools/Fen_Menu.cs
index 96fb883..49a784a 100644
--- a/frugal-mono-tools/Fen_Menu.cs
+++ b/frugal-mono-tools/Fen_Menu.cs
@@ -34,6 +34,7 @@ namespace frugalmonotools
private const string cch_network="Network";
private const string cch_loginManager="Login Manager";
private const string cch_support="Support";
+               private const string cch_logs="Logs";
private const string cch_news="News";
private const string cch_configuration="Configuration";
private const string cch_about="About";
@@ -52,7 +53,8 @@ namespace frugalmonotools
WID_Config fen_config ;
WID_Hardware fen_hardware ;
WID_LoginManager fen_loginManager;
-
+               WID_Logs fen_logs;
+
protected Gtk.TreeIter iter;
public Fen_Menu () : base(Gtk.WindowType.Toplevel)
{
@@ -105,6 +107,8 @@ namespace frugalmonotools
ListMenu.AppendValues(icosup.ScaleSimple(20,20, 
Gdk.InterpType.Nearest),cch_support);
Pixbuf iconews = global::Gdk.Pixbuf.LoadFromResource 
("frugalmonotools.Pictures.icons.news.png");
ListMenu.AppendValues(iconews.ScaleSimple(20,20, 
Gdk.InterpType.Nearest),cch_news);
+                       Pixbuf icologs = global::Gdk.Pixbuf.LoadFromResource 
("frugalmonotools.Pictures.icons.logs.png");
+                       ListMenu.AppendValues(icologs.ScaleSimple(20,20, 
Gdk.InterpType.Nearest),cch_logs);
Pixbuf icoconfig = global::Gdk.Pixbuf.LoadFromResource 
("frugalmonotools.Pictures.icons.configurations.png");
ListMenu.AppendValues(icoconfig.ScaleSimple(20,20, 
Gdk.InterpType.Nearest),cch_configuration);
Pixbuf icoabout = global::Gdk.Pixbuf.LoadFromResource 
("frugalmonotools.Pictures.icons.about.png");
@@ -198,6 +202,12 @@ namespace frugalmonotools
this.fen_network.InitNetworkManager();
break;

+                                               case cch_logs:
+                                                       this.fen_logs = new 
WID_Logs();
+                                                       
this.HBOX_Details.PackStart(fen_logs);
+                                                       
this.HBOX_Details.ShowAll();
+                                               break;
+
case cch_news:
this.fen_news = new WID_News();
this.HBOX_Details.PackStart(fen_news);
diff --git a/frugal-mono-tools/Pictures/Mono-powered.png 
b/frugal-mono-tools/Pictures/Mono-powered.png
new file mode 100644
index 0000000..3f69e4f
Binary files /dev/null and b/frugal-mono-tools/Pictures/Mono-powered.png differ
diff --git a/frugal-mono-tools/Pictures/icons/logs.png 
b/frugal-mono-tools/Pictures/icons/logs.png
new file mode 100644
index 0000000..3f2a680
Binary files /dev/null and b/frugal-mono-tools/Pictures/icons/logs.png differ
diff --git a/frugal-mono-tools/WID_Logs.cs b/frugal-mono-tools/WID_Logs.cs
new file mode 100644
index 0000000..f2c0c9f
--- /dev/null
+++ b/frugal-mono-tools/WID_Logs.cs
@@ -0,0 +1,38 @@
+// /*
+//  *  Copyright (C) 2010 by Gaetan Gourdin <bouleet...@frogdev.info>
+//  *
+//  *  This program is free software; you can redistribute it and/or modify
+//  *  it under the terms of the GNU General Public License as published by
+//  *  the Free Software Foundation; either version 2 of the License, or
+//  *  (at your option) any later version.
+//  *
+//  *  This program is distributed in the hope that it will be useful,
+//  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+//  *  GNU General Public License for more details.
+//  *
+//  *  You should have received a copy of the GNU General Public License
+//  *  along with this program; if not, write to the Free Software
+//  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 
USA.
+//  */
+using System;
+namespace frugalmonotools
+{
+       [System.ComponentModel.ToolboxItem(true)]
+       public partial class WID_Logs : Gtk.Bin
+       {
+               public WID_Logs ()
+               {
+                       this.Build ();
+                       TXT_Dmesg.Buffer.Text=Outils.getoutput("dmesg");
+                       string display = 
Environment.GetEnvironmentVariable("DISPLAY");
+                       string []displays=display.Split(':');
+                       display =displays[1];
+                       displays=display.Split('.');
+                       display =displays[0];
+                       string logXorg = "/var/log/Xorg."+display+".log";
+                       TXT_Xorg.Buffer.Text=Outils.getoutput("cat "+logXorg);
+               }
+       }
+}
+
diff --git a/frugal-mono-tools/frugal-mono-tools.csproj 
b/frugal-mono-tools/frugal-mono-tools.csproj
index c3c7b50..f4af6f7 100644
--- a/frugal-mono-tools/frugal-mono-tools.csproj
+++ b/frugal-mono-tools/frugal-mono-tools.csproj
@@ -81,6 +81,8 @@
<EmbeddedResource Include="Pictures\icons\xorg.png" />
<EmbeddedResource Include="Pictures\icons\update.png" />
<EmbeddedResource Include="Pictures\icons\updateconf.png" />
+    <EmbeddedResource Include="Pictures\Mono-powered.png" />
+    <EmbeddedResource Include="Pictures\icons\logs.png" />
</ItemGroup>
<ItemGroup>
<Compile Include="gtk-gui\generated.cs" />
@@ -129,6 +131,8 @@
<Compile Include="WID_About.cs" />
<Compile Include="WID_UpdateConf.cs" />
<Compile Include="gtk-gui\frugalmonotools.WID_UpdateConf.cs" />
+    <Compile Include="WID_Logs.cs" />
+    <Compile Include="gtk-gui\frugalmonotools.WID_Logs.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.Fen_Menu.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.Fen_Menu.cs
index 939d932..fbe1ace 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.Fen_Menu.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.Fen_Menu.cs
@@ -24,7 +24,7 @@ namespace frugalmonotools
// Widget frugalmonotools.Fen_Menu
this.Name = "frugalmonotools.Fen_Menu";
this.Title = global::Mono.Unix.Catalog.GetString ("Frugalware tweak !");
-                       this.Icon = global::Gdk.Pixbuf.LoadFromResource 
("frugalmonotools.Pictures.fw.png");
+                       this.Icon = global::Gdk.Pixbuf.LoadFromResource 
("frugalmonotools.Pictures.icons.logs.png");
this.WindowPosition = ((global::Gtk.WindowPosition)(4));
this.Resizable = false;
this.DefaultWidth = 900;
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_About.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_About.cs
index 98fdcef..83fcc37 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_About.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_About.cs
@@ -4,6 +4,10 @@ namespace frugalmonotools
{
public partial class WID_About
{
+               private global::Gtk.VBox vbox1;
+
+               private global::Gtk.Image image66;
+
private global::Gtk.ScrolledWindow GtkScrolledWindow;

private global::Gtk.TextView textview2;
@@ -15,6 +19,19 @@ namespace frugalmonotools
global::Stetic.BinContainer.Attach (this);
this.Name = "frugalmonotools.WID_About";
// Container child frugalmonotools.WID_About.Gtk.Container+ContainerChild
+                       this.vbox1 = new global::Gtk.VBox ();
+                       this.vbox1.Name = "vbox1";
+                       this.vbox1.Spacing = 6;
+                       // Container child vbox1.Gtk.Box+BoxChild
+                       this.image66 = new global::Gtk.Image ();
+                       this.image66.Name = "image66";
+                       this.image66.Pixbuf = 
global::Gdk.Pixbuf.LoadFromResource 
("frugalmonotools.Pictures.Mono-powered.png");
+                       this.vbox1.Add (this.image66);
+                       global::Gtk.Box.BoxChild w1 = 
((global::Gtk.Box.BoxChild)(this.vbox1[this.image66]));
+                       w1.Position = 0;
+                       w1.Expand = false;
+                       w1.Fill = false;
+                       // Container child vbox1.Gtk.Box+BoxChild
this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow.Name = "GtkScrolledWindow";
this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
@@ -24,7 +41,10 @@ namespace frugalmonotools
this.textview2.CanFocus = true;
this.textview2.Name = "textview2";
this.GtkScrolledWindow.Add (this.textview2);
-                       this.Add (this.GtkScrolledWindow);
+                       this.vbox1.Add (this.GtkScrolledWindow);
+                       global::Gtk.Box.BoxChild w3 = 
((global::Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
+                       w3.Position = 1;
+                       this.Add (this.vbox1);
if ((this.Child != null)) {
this.Child.ShowAll ();
}
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Logs.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Logs.cs
new file mode 100644
index 0000000..70333cb
--- /dev/null
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Logs.cs
@@ -0,0 +1,73 @@
+
+// This file has been generated by the GUI designer. Do not modify.
+namespace frugalmonotools
+{
+       public partial class WID_Logs
+       {
+               private global::Gtk.Notebook notebook1;
+
+               private global::Gtk.ScrolledWindow GtkScrolledWindow;
+
+               private global::Gtk.TextView TXT_Dmesg;
+
+               private global::Gtk.Label label1;
+
+               private global::Gtk.ScrolledWindow GtkScrolledWindow1;
+
+               private global::Gtk.TextView TXT_Xorg;
+
+               private global::Gtk.Label label2;
+
+               protected virtual void Build ()
+               {
+                       global::Stetic.Gui.Initialize (this);
+                       // Widget frugalmonotools.WID_Logs
+                       global::Stetic.BinContainer.Attach (this);
+                       this.Name = "frugalmonotools.WID_Logs";
+                       // Container child 
frugalmonotools.WID_Logs.Gtk.Container+ContainerChild
+                       this.notebook1 = new global::Gtk.Notebook ();
+                       this.notebook1.CanFocus = true;
+                       this.notebook1.Name = "notebook1";
+                       this.notebook1.CurrentPage = 1;
+                       // Container child notebook1.Gtk.Notebook+NotebookChild
+                       this.GtkScrolledWindow = new global::Gtk.ScrolledWindow 
();
+                       this.GtkScrolledWindow.Name = "GtkScrolledWindow";
+                       this.GtkScrolledWindow.ShadowType = 
((global::Gtk.ShadowType)(1));
+                       // Container child 
GtkScrolledWindow.Gtk.Container+ContainerChild
+                       this.TXT_Dmesg = new global::Gtk.TextView ();
+                       this.TXT_Dmesg.CanFocus = true;
+                       this.TXT_Dmesg.Name = "TXT_Dmesg";
+                       this.GtkScrolledWindow.Add (this.TXT_Dmesg);
+                       this.notebook1.Add (this.GtkScrolledWindow);
+                       // Notebook tab
+                       this.label1 = new global::Gtk.Label ();
+                       this.label1.Name = "label1";
+                       this.label1.LabelProp = 
global::Mono.Unix.Catalog.GetString ("dmesg");
+                       this.notebook1.SetTabLabel (this.GtkScrolledWindow, 
this.label1);
+                       this.label1.ShowAll ();
+                       // Container child notebook1.Gtk.Notebook+NotebookChild
+                       this.GtkScrolledWindow1 = new 
global::Gtk.ScrolledWindow ();
+                       this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
+                       this.GtkScrolledWindow1.ShadowType = 
((global::Gtk.ShadowType)(1));
+                       // Container child 
GtkScrolledWindow1.Gtk.Container+ContainerChild
+                       this.TXT_Xorg = new global::Gtk.TextView ();
+                       this.TXT_Xorg.CanFocus = true;
+                       this.TXT_Xorg.Name = "TXT_Xorg";
+                       this.GtkScrolledWindow1.Add (this.TXT_Xorg);
+                       this.notebook1.Add (this.GtkScrolledWindow1);
+                       global::Gtk.Notebook.NotebookChild w4 = 
((global::Gtk.Notebook.NotebookChild)(this.notebook1[this.GtkScrolledWindow1]));
+                       w4.Position = 1;
+                       // Notebook tab
+                       this.label2 = new global::Gtk.Label ();
+                       this.label2.Name = "label2";
+                       this.label2.LabelProp = 
global::Mono.Unix.Catalog.GetString ("xorg");
+                       this.notebook1.SetTabLabel (this.GtkScrolledWindow1, 
this.label2);
+                       this.label2.ShowAll ();
+                       this.Add (this.notebook1);
+                       if ((this.Child != null)) {
+                               this.Child.ShowAll ();
+                       }
+                       this.Hide ();
+               }
+       }
+}
diff --git a/frugal-mono-tools/gtk-gui/gui.stetic 
b/frugal-mono-tools/gtk-gui/gui.stetic
index 59e3665..ad794f8 100644
--- a/frugal-mono-tools/gtk-gui/gui.stetic
+++ b/frugal-mono-tools/gtk-gui/gui.stetic
@@ -93,7 +93,7 @@
<property name="MemberName" />
<property name="Visible">False</property>
<property name="Title" translatable="yes">Frugalware tweak !</property>
-    <property name="Icon">resource:frugalmonotools.Pictures.fw.png</property>
+    <property 
name="Icon">resource:frugalmonotools.Pictures.icons.logs.png</property>
<property name="WindowPosition">CenterOnParent</property>
<property name="Resizable">False</property>
<property name="DefaultWidth">900</property>
@@ -778,6 +778,7 @@
<property name="Pixbuf">resource:frugalmonotools.Pictures.fw.png</property>
</widget>
<packing>
+                <property name="PackType">End</property>
<property name="Position">2</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
@@ -2256,15 +2257,31 @@ irc : irc.freenode.net channel #frugalware</property>
<property name="MemberName" />
<property name="Visible">False</property>
<child>
-      <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow">
+      <widget class="Gtk.VBox" id="vbox1">
<property name="MemberName" />
-        <property name="ShadowType">In</property>
+        <property name="Spacing">6</property>
<child>
-          <widget class="Gtk.TextView" id="textview2">
+          <widget class="Gtk.Image" id="image66">
<property name="MemberName" />
-            <property name="CanFocus">True</property>
-            <property name="ShowScrollbars">True</property>
-            <property name="Text" translatable="yes">Tools for Frugalware.
+            <property 
name="Pixbuf">resource:frugalmonotools.Pictures.Mono-powered.png</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.ScrolledWindow" id="GtkScrolledWindow">
+            <property name="MemberName" />
+            <property name="ShadowType">In</property>
+            <child>
+              <widget class="Gtk.TextView" id="textview2">
+                <property name="MemberName" />
+                <property name="CanFocus">True</property>
+                <property name="ShowScrollbars">True</property>
+                <property name="Text" translatable="yes">Tools for Frugalware.
Written in Gtk#
Author:
Bouleetbil &lt;bouleet...@frogdev.info&gt;
@@ -2610,7 +2627,13 @@ consider it more useful to permit linking proprietary 
applications with the
library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
</property>
+              </widget>
+            </child>
</widget>
+          <packing>
+            <property name="Position">1</property>
+            <property name="AutoSize">True</property>
+          </packing>
</child>
</widget>
</child>
@@ -2702,4 +2725,64 @@ Public License instead of this License.
</widget>
</child>
</widget>
+  <widget class="Gtk.Bin" id="frugalmonotools.WID_Logs" design-size="300 300">
+    <property name="MemberName" />
+    <property name="Visible">False</property>
+    <child>
+      <widget class="Gtk.Notebook" id="notebook1">
+        <property name="MemberName" />
+        <property name="CanFocus">True</property>
+        <property name="CurrentPage">1</property>
+        <child>
+          <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow">
+            <property name="MemberName" />
+            <property name="ShadowType">In</property>
+            <child>
+              <widget class="Gtk.TextView" id="TXT_Dmesg">
+                <property name="MemberName" />
+                <property name="CanFocus">True</property>
+                <property name="ShowScrollbars">True</property>
+                <property name="Text" translatable="yes" />
+              </widget>
+            </child>
+          </widget>
+        </child>
+        <child>
+          <widget class="Gtk.Label" id="label1">
+            <property name="MemberName" />
+            <property name="LabelProp" translatable="yes">dmesg</property>
+          </widget>
+          <packing>
+            <property name="type">tab</property>
+          </packing>
+        </child>
+        <child>
+          <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow1">
+            <property name="MemberName" />
+            <property name="ShadowType">In</property>
+            <child>
+              <widget class="Gtk.TextView" id="TXT_Xorg">
+                <property name="MemberName" />
+                <property name="CanFocus">True</property>
+                <property name="ShowScrollbars">True</property>
+                <property name="Text" translatable="yes" />
+              </widget>
+            </child>
+          </widget>
+          <packing>
+            <property name="Position">1</property>
+          </packing>
+        </child>
+        <child>
+          <widget class="Gtk.Label" id="label2">
+            <property name="MemberName" />
+            <property name="LabelProp" translatable="yes">xorg</property>
+          </widget>
+          <packing>
+            <property name="type">tab</property>
+          </packing>
+        </child>
+      </widget>
+    </child>
+  </widget>
</stetic-interface>
\ No newline at end of file
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to