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

commit 008c0b09e9f998690010735cb496bedb8247a221
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Fri Aug 27 16:50:59 2010 +0000

*hide lirc/bluez if don't find it and purpose to install it if necessary

diff --git a/frugal-mono-tools/MainWindow.cs b/frugal-mono-tools/MainWindow.cs
index b0844eb..d47ffa8 100644
--- a/frugal-mono-tools/MainWindow.cs
+++ b/frugal-mono-tools/MainWindow.cs
@@ -115,6 +115,44 @@ public partial class MainWindow : Gtk.Window
BTN_Setup.Visible=true;
LIB_Setup.Visible=false;
}
+               string dmesgOutput=Outils.getoutput("dmesg");
+               if(dmesgOutput.IndexOf("lirc")>0)
+               {
+                       if (!Pkg.IsInstalled("lirc"))
+                       {
+                               LIB_Lirc.Visible=true;
+                       }
+                       else
+                       {
+                               //TODO check if service is started for buton 
enable lirc
+                               LIB_Lirc.Visible=false;
+                       }
+               }
+               else
+               {
+                       BTN_Lirc.Visible=false;
+                       LIB_Lirc.Visible=false;
+               }
+
+
+               if(dmesgOutput.IndexOf("Bluetooth")>0)
+               {
+                       if (!Pkg.IsInstalled("bluez"))
+                       {
+                               LIB_Bluez.Visible=true;
+                       }
+                       else
+                       {
+                               //TODO check if service is started for buton 
enable bluez
+                               LIB_Bluez.Visible=false;
+                       }
+               }
+               else
+               {
+                       LIB_Bluez.Visible=false;
+                       BTN_Bluez.Visible=false;
+               }
+

BTN_Uninstall.Visible=false;
BTN_Install.Visible=false;
diff --git a/frugal-mono-tools/PacmanG2.cs b/frugal-mono-tools/PacmanG2.cs
index 58352c2..48122c7 100644
--- a/frugal-mono-tools/PacmanG2.cs
+++ b/frugal-mono-tools/PacmanG2.cs
@@ -198,6 +198,8 @@ namespace frugalmonotools
{
string dirpkg=ROOT_PATH+PACMANG2_BDD+PACMAN_LOCAL+"/";
string[] dirs= Directory.GetDirectories(dirpkg,strSearch+"-*");
+                       //FIX ME find yes for bluez if bluez-firmeware is 
installed
+                       //* should be numeric
if (dirs.Length==0) return false;
return true;
}
diff --git a/frugal-mono-tools/gtk-gui/MainWindow.cs 
b/frugal-mono-tools/gtk-gui/MainWindow.cs
index 5f16735..475edcc 100644
--- a/frugal-mono-tools/gtk-gui/MainWindow.cs
+++ b/frugal-mono-tools/gtk-gui/MainWindow.cs
@@ -197,7 +197,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 = 0;
+               this.ONG_principal.CurrentPage = 2;
// Container child ONG_principal.Gtk.Notebook+NotebookChild
this.vbox4 = new global::Gtk.VBox ();
this.vbox4.Name = "vbox4";
diff --git a/frugal-mono-tools/gtk-gui/gui.stetic 
b/frugal-mono-tools/gtk-gui/gui.stetic
index 1513834..7e7d009 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">0</property>
+        <property name="CurrentPage">2</property>
<child>
<widget class="Gtk.VBox" id="vbox4">
<property name="MemberName" />
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to