In features window, show description on select, not on double-click. See #2783.
This commit is contained in:
parent
4c1fdb1fd8
commit
15597f8b37
|
@ -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>
|
||||
|
|
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue