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

commit 4cd6e6e0b2bc91c372c9f21c8912a9ee7484c2ff
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Thu Aug 26 22:10:35 2010 +0200

*save graphical driver choice

diff --git a/frugal-mono-tools/MainWindow.cs b/frugal-mono-tools/MainWindow.cs
index fb29a0b..e4bce71 100644
--- a/frugal-mono-tools/MainWindow.cs
+++ b/frugal-mono-tools/MainWindow.cs
@@ -549,6 +549,15 @@ public partial class MainWindow : Gtk.Window
FileX.WriteLine("EndSection");

FileX.Close();
+
+               string graphicalDriver=CBO_GraphicalDevice.Entry.Text;
+               FileX = new 
StreamWriter(@"/etc/X11/xorg.conf.d/20-graphical.conf");
+               FileX.WriteLine("Section \"Device\"");
+        FileX.WriteLine("Identifier \"Card0\"");
+               FileX.WriteLine("Driver \""+graphicalDriver+"\"");
+               FileX.WriteLine("EndSection");
+
+               FileX.Close();
}
catch{}

@@ -639,18 +648,5 @@ public partial class MainWindow : Gtk.Window
{
Outils.Excecute("xterm"," -hold -e /sbin/setup",false);
}
-
-
-
-
-
-
-
-
-
-
-
-
-
}

diff --git a/frugal-mono-tools/gtk-gui/MainWindow.cs 
b/frugal-mono-tools/gtk-gui/MainWindow.cs
index e6e7197..d4bf62b 100644
--- a/frugal-mono-tools/gtk-gui/MainWindow.cs
+++ b/frugal-mono-tools/gtk-gui/MainWindow.cs
@@ -177,7 +177,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 = 2;
+               this.ONG_principal.CurrentPage = 1;
// Container child ONG_principal.Gtk.Notebook+NotebookChild
this.vbox4 = new global::Gtk.VBox ();
this.vbox4.Name = "vbox4";
@@ -426,7 +426,7 @@ public partial class MainWindow
w21.Fill = false;
this.vbox6.Add (this.hbox14);
global::Gtk.Box.BoxChild w22 = 
((global::Gtk.Box.BoxChild)(this.vbox6[this.hbox14]));
-               w22.Position = 5;
+               w22.Position = 6;
w22.Expand = false;
w22.Fill = false;
this.ONG_principal.Add (this.vbox6);
diff --git a/frugal-mono-tools/gtk-gui/gui.stetic 
b/frugal-mono-tools/gtk-gui/gui.stetic
index 044fd12..04f551d 100644
--- a/frugal-mono-tools/gtk-gui/gui.stetic
+++ b/frugal-mono-tools/gtk-gui/gui.stetic
@@ -19,7 +19,7 @@
<widget class="Gtk.Notebook" id="ONG_principal">
<property name="MemberName" />
<property name="CanFocus">True</property>
-        <property name="CurrentPage">2</property>
+        <property name="CurrentPage">1</property>
<child>
<widget class="Gtk.VBox" id="vbox4">
<property name="MemberName" />
@@ -332,6 +332,9 @@ ztv</property>
<placeholder />
</child>
<child>
+              <placeholder />
+            </child>
+            <child>
<widget class="Gtk.HBox" id="hbox14">
<property name="MemberName" />
<property name="Spacing">6</property>
@@ -359,7 +362,7 @@ ztv</property>
</child>
</widget>
<packing>
-                <property name="Position">5</property>
+                <property name="Position">6</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

Reply via email to