Author: roidelapluie Date: 2007-06-28 12:42:24 +0200 (Thu, 28 Jun 2007) New Revision: 8336
Modified: trunk/data/glade/features_window.glade trunk/src/features_window.py Log: In features window, show description on select, not on double-click. See #2783.
Modified: trunk/data/glade/features_window.glade =================================================================== --- trunk/data/glade/features_window.glade 2007-06-28 08:14:25 UTC (rev 8335) +++ trunk/data/glade/features_window.glade 2007-06-28 10:42:24 UTC (rev 8336) @@ -38,7 +38,7 @@ <property name="can_focus">True</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> <property name="headers_clickable">True</property> - <signal name="row_activated" handler="on_features_treeview_row_activated"/> + <signal name="cursor_changed" handler="on_features_treeview_cursor_changed"/> </widget> </child> </widget>
Modified: trunk/src/features_window.py =================================================================== --- trunk/src/features_window.py 2007-06-28 08:14:25 UTC (rev 8335) +++ trunk/src/features_window.py 2007-06-28 10:42:24 UTC (rev 8336) @@ -100,7 +100,9 @@ def on_close_button_clicked(self, widget): self.window.destroy()
- def on_features_treeview_row_activated(self, widget, path, col): + def on_features_treeview_cursor_changed(self, widget): + selection = widget.get_selection() + path = selection.get_selected_rows()[1][0] available = self.model[path][1] feature = self.model[path][0] if os.name == 'nt':