fix for uniformity convention with gtk signal name strings
authorJosh Blum <josh@joshknows.com>
Sun, 13 Sep 2009 09:39:40 +0000 (02:39 -0700)
committerJosh Blum <josh@joshknows.com>
Sun, 13 Sep 2009 09:39:40 +0000 (02:39 -0700)
grc/gui/BlockTreeWindow.py
grc/gui/PropsDialog.py

index 5c5d21b640b13b4eacc38396c603c21c8c313ac1..07b8ea7e0f63f5451d6a182f9d7ae7e7f7a11273 100644 (file)
@@ -57,7 +57,7 @@ class BlockTreeWindow(gtk.VBox):
                self.treeview = gtk.TreeView(self.treestore)
                self.treeview.set_enable_search(False) #disable pop up search box
                self.treeview.add_events(gtk.gdk.BUTTON_PRESS_MASK)
-               self.treeview.connect('button_press_event', self._handle_mouse_button_press)
+               self.treeview.connect('button-press-event', self._handle_mouse_button_press)
                selection = self.treeview.get_selection()
                selection.set_mode('single')
                selection.connect('changed', self._handle_selection_change)
index b295ba412330763d924f2d12a0ba03d0eb7dea8e..e3cd3a06f3379e98268866c7826e8b478bb67bfb 100644 (file)
@@ -82,7 +82,7 @@ class PropsDialog(gtk.Dialog):
                vbox.pack_start(self._error_box, False)
                vbox.pack_start(self._docs_box, False)
                #connect events
-               self.connect('key_press_event', self._handle_key_press)
+               self.connect('key-press-event', self._handle_key_press)
                self.connect('show', self._update_gui)
                #show all (performs initial gui update)
                self.show_all()