Skip to content
Snippets Groups Projects
Commit 926b7d85 authored by Dicson's avatar Dicson
Browse files

Select root iter in the PluginsWindow treeview. set focus on close button when switch page.

parent 83e7a874
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
<object class="GtkNotebook" id="plugins_notebook">
<property name="visible">True</property>
<property name="can_focus">True</property>
<signal name="switch_page" handler="on_plugins_notebook_switch_page"/>
<child>
<object class="GtkHPaned" id="hpaned1">
<property name="visible">True</property>
......
......@@ -82,14 +82,19 @@ class PluginsWindow(object):
self._clear_installed_plugin_info()
self.fill_installed_plugins_model()
selection.select_iter(self.installed_plugins_model.get_iter_root())
self.xml.connect_signals(self)
self.plugins_notebook.set_current_page(0)
self.xml.get_object('close_button').grab_focus()
self.window.show_all()
gtkgui_helpers.possibly_move_window_in_current_desktop(self.window)
def on_plugins_notebook_switch_page(self, widget, page, page_num):
gobject.idle_add(self.xml.get_object('close_button').grab_focus)
@log_calls('PluginsWindow')
def installed_plugins_treeview_selection_changed(self, treeview_selection):
model, iter = treeview_selection.get_selected()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment