In features window, show description on select, not on double-click. See #2783.

This commit is contained in:
Julien Pivotto 2007-06-28 10:42:24 +00:00
parent 4c1fdb1fd8
commit 15597f8b37
2 changed files with 4 additions and 2 deletions

View File

@ -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>

View File

@ -100,7 +100,9 @@ class FeaturesWindow:
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':