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

commit 0072496f9ab5d717ecf8507e8b6caf023975b8da
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Fri Nov 12 13:14:35 2010 +0000

*added shortcut enter for search packages

diff --git a/frugal-mono-tools/WID_Pkg.cs b/frugal-mono-tools/WID_Pkg.cs
index 47f90a5..28ec805 100644
--- a/frugal-mono-tools/WID_Pkg.cs
+++ b/frugal-mono-tools/WID_Pkg.cs
@@ -156,6 +156,15 @@ namespace frugalmonotools
_searchPackage();
}

+               protected virtual void OnSAIPkgKeyReleaseEvent (object o, 
Gtk.KeyReleaseEventArgs args)
+               {
+                       if (args.Event.Key.ToString()=="Return")
+                       {
+                               _searchPackage();
+                       }
+               }
+
+



diff --git a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Pkg.cs 
b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Pkg.cs
index 2ceadc1..96f90c4 100644
--- a/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Pkg.cs
+++ b/frugal-mono-tools/gtk-gui/frugalmonotools.WID_Pkg.cs
@@ -166,6 +166,7 @@ namespace frugalmonotools
}
this.Hide ();
this.CBO_Repo.Changed += new global::System.EventHandler 
(this.OnCBORepoChanged);
+                       this.SAI_pkg.KeyReleaseEvent += new 
global::Gtk.KeyReleaseEventHandler (this.OnSAIPkgKeyReleaseEvent);
this.BTN_Search.Clicked += new global::System.EventHandler 
(this.OnBTNSearchClicked);
this.BTN_Uninstall.Clicked += new global::System.EventHandler 
(this.OnBTNUninstallClicked);
this.BTN_Install.Clicked += new global::System.EventHandler 
(this.OnBTNInstallClicked);
diff --git a/frugal-mono-tools/gtk-gui/gui.stetic 
b/frugal-mono-tools/gtk-gui/gui.stetic
index 4c0a7b0..b2c766b 100644
--- a/frugal-mono-tools/gtk-gui/gui.stetic
+++ b/frugal-mono-tools/gtk-gui/gui.stetic
@@ -207,6 +207,7 @@
<property name="CanFocus">True</property>
<property name="IsEditable">True</property>
<property name="InvisibleChar">●</property>
+                <signal name="KeyReleaseEvent" 
handler="OnSAIPkgKeyReleaseEvent" />
</widget>
<packing>
<property name="Position">1</property>
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to