forked from cromer/pamac-classic
better reaction on tab switch
This commit is contained in:
parent
916ca6a8e3
commit
d1d7e7b525
@ -420,6 +420,7 @@
|
||||
<object class="GtkNotebook" id="notebook1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<signal name="switch-page" handler="on_notebook1_switch_page" swapped="no"/>
|
||||
<child>
|
||||
<object class="GtkBox" id="box2">
|
||||
<property name="visible">True</property>
|
||||
|
@ -98,12 +98,12 @@ if common.pid_file_exists():
|
||||
response = main.ErrorDialog.run()
|
||||
if response:
|
||||
main.ErrorDialog.hide()
|
||||
#~ elif updates:
|
||||
#~ main.ErrorDialog.format_secondary_text(_('Some updates are available.\nPlease update your system first'))
|
||||
#~ response = main.ErrorDialog.run()
|
||||
#~ if response:
|
||||
#~ main.ErrorDialog.hide()
|
||||
#~ transaction.StopDaemon()
|
||||
elif updates:
|
||||
main.ErrorDialog.format_secondary_text(_('Some updates are available.\nPlease update your system first'))
|
||||
response = main.ErrorDialog.run()
|
||||
if response:
|
||||
main.ErrorDialog.hide()
|
||||
transaction.StopDaemon()
|
||||
else:
|
||||
common.write_pid_file()
|
||||
pkgs_to_install = argv[1:]
|
||||
|
@ -1008,6 +1008,20 @@ class Handler:
|
||||
else:
|
||||
handle_reply('')
|
||||
|
||||
def on_notebook1_switch_page(self, notebook, page, page_num):
|
||||
if page_num == 0:
|
||||
liste, line = search_selection.get_selected()
|
||||
if line:
|
||||
self.on_search_treeview_selection_changed(self)
|
||||
elif search_entry.get_text():
|
||||
self.on_search_entry_activate(self)
|
||||
elif page_num == 1:
|
||||
self.on_groups_treeview_selection_changed(self)
|
||||
elif page_num == 2:
|
||||
self.on_state_treeview_selection_changed(self)
|
||||
elif page_num == 3:
|
||||
self.on_repos_treeview_selection_changed(self)
|
||||
|
||||
#Updater Handlers
|
||||
def on_UpdaterWindow_delete_event(self, *arg):
|
||||
transaction.StopDaemon()
|
||||
|
Loading…
Reference in New Issue
Block a user