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

commit 6eb44576eb723c755b6cddf6c1def675bc9612d7
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Thu Aug 26 18:58:45 2010 +0000

*install/unistall start pacman-g2 into xterm for now
*I don't have the time to add a GUI for depends/download....

diff --git a/frugal-mono-tools/MainWindow.cs b/frugal-mono-tools/MainWindow.cs
index 658da65..d942bc7 100644
--- a/frugal-mono-tools/MainWindow.cs
+++ b/frugal-mono-tools/MainWindow.cs
@@ -511,6 +511,7 @@ public partial class MainWindow : Gtk.Window
{
string T =(string)model.GetValue (iter, 0);
T=Pkg.extractNamePackage(T);
+                                       packageSelected=T;
if(boRoot)
{
//installed ?
@@ -530,6 +531,20 @@ public partial class MainWindow : Gtk.Window
catch{}
}

+       protected virtual void OnBTNUninstallClicked (object sender, 
System.EventArgs e)
+       {
+               if(packageSelected=="") return;
+               Outils.Excecute("xterm"," -hold -e pacman-g2 -Rc 
"+packageSelected,true);
+       }
+
+       protected virtual void OnBTNInstallClicked (object sender, 
System.EventArgs e)
+       {
+               if(packageSelected=="") return;
+               Outils.Excecute("xterm"," -hold -e pacman-g2 -Sy 
"+packageSelected,true);
+       }
+
+
+


_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to