hamster-applet r589 - in trunk: data hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r589 - in trunk: data hamster
- Date: Tue, 21 Oct 2008 07:53:35 +0000 (UTC)
Author: tbaugis
Date: Tue Oct 21 07:53:35 2008
New Revision: 589
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=589&view=rev
Log:
closing preferences dialog with Esc. Fixes bug 545276.
Patch by Juan Percy Rojas Cruz
Modified:
trunk/data/preferences.glade
trunk/hamster/preferences.py
Modified: trunk/data/preferences.glade
==============================================================================
--- trunk/data/preferences.glade (original)
+++ trunk/data/preferences.glade Tue Oct 21 07:53:35 2008
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--Generated with glade3 3.4.5 on Fri Aug 15 18:29:43 2008 -->
+<!--Generated with glade3 3.4.5 on Mon Oct 20 23:45:26 2008 -->
<glade-interface>
<widget class="GtkWindow" id="preferences_window">
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -11,6 +11,7 @@
<property name="default_height">500</property>
<property name="destroy_with_parent">True</property>
<property name="icon_name">hamster-applet</property>
+ <signal name="key_press_event" handler="on_preferences_window_key_press"/>
<signal name="destroy" handler="destroy_cb"/>
<child>
<widget class="GtkVBox" id="vbox1">
Modified: trunk/hamster/preferences.py
==============================================================================
--- trunk/hamster/preferences.py (original)
+++ trunk/hamster/preferences.py Tue Oct 21 07:53:35 2008
@@ -458,7 +458,10 @@
tree.set_cursor(path, focus_column = self.categoryColumn, start_editing = True)
#tree.grab_focus()
#tree.set_cursor(path, start_editing = True)
-
+
+ def on_preferences_window_key_press(self, widget, event):
+ if event.keyval == gtk.keysyms.Escape:
+ self.window.destroy()
"""button events"""
def on_add_category_clicked(self, button):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]