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

commit 2eb23a53e321c5672c686df4afce01f2b9335f20
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Tue Sep 21 12:20:42 2010 +0000

*a user can search update package

diff --git a/frugal-mono-tools/WID_Update.cs b/frugal-mono-tools/WID_Update.cs
index bf6d914..6caad9f 100644
--- a/frugal-mono-tools/WID_Update.cs
+++ b/frugal-mono-tools/WID_Update.cs
@@ -67,7 +67,6 @@ namespace frugalmonotools
{
if(!MainClass.boRoot)
{
-                       BTN_UpdateDatabase.Visible = false;
BTN_ApplyIgnorePkg.Visible=false;
BTN_Hide.Visible=false;
}
@@ -162,9 +161,14 @@ namespace frugalmonotools
catch{}
}

-       protected virtual void OnBTNUpdateDatabaseClicked (object sender, 
System.EventArgs e)
+               protected virtual void OnBTNUpdateDatabaseClicked (object 
sender, System.EventArgs e)
{
-                       Outils.Excecute("python","/usr/bin/PyFrugalVTE 
pacman-g2 -Sy ",false);
+                       if(MainClass.boRoot)
+                               Outils.Excecute("pacman-g2","-Sy",true);
+                       else
+                               Outils.ExcecuteAsRoot("pacman-g2 -Sy", true);
+
+                       _refreshUpdate();
}

protected virtual void OnBTNRefreshClicked (object sender, System.EventArgs e)
diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Update.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Update.cs
index 304c6c3..9c90702 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Update.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Update.cs
@@ -153,11 +153,11 @@ namespace frugalmonotools
w17.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
global::Gtk.Image w18 = new global::Gtk.Image ();
-                       w18.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, 
"gtk-refresh", global::Gtk.IconSize.Menu);
+                       w18.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, 
"gtk-go-up", global::Gtk.IconSize.Menu);
w17.Add (w18);
// Container child GtkHBox.Gtk.Container+ContainerChild
global::Gtk.Label w20 = new global::Gtk.Label ();
-                       w20.LabelProp = global::Mono.Unix.Catalog.GetString 
("Update database");
+                       w20.LabelProp = global::Mono.Unix.Catalog.GetString 
("Search update");
w20.UseUnderline = true;
w17.Add (w20);
w16.Add (w17);
diff --git a/frugal-mono-tools/gtk-gui/gui.stetic 
b/frugal-mono-tools/gtk-gui/gui.stetic
index 7de5137..95e2e85 100644
--- a/frugal-mono-tools/gtk-gui/gui.stetic
+++ b/frugal-mono-tools/gtk-gui/gui.stetic
@@ -577,8 +577,8 @@
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="Type">TextAndIcon</property>
-                    <property name="Icon">stock:gtk-refresh Menu</property>
-                    <property name="Label" translatable="yes">Update 
database</property>
+                    <property name="Icon">stock:gtk-go-up Menu</property>
+                    <property name="Label" translatable="yes">Search 
update</property>
<property name="UseUnderline">True</property>
<signal name="Clicked" handler="OnBTNUpdateDatabaseClicked" />
</widget>
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to