|
|
@ -43,6 +43,8 @@ progress_label = interface.get_object('progresslabel2')
|
|
|
|
action_icon = interface.get_object('action_icon')
|
|
|
|
action_icon = interface.get_object('action_icon')
|
|
|
|
ProgressCancelButton = interface.get_object('ProgressCancelButton')
|
|
|
|
ProgressCancelButton = interface.get_object('ProgressCancelButton')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mode = None
|
|
|
|
|
|
|
|
|
|
|
|
def action_signal_handler(action):
|
|
|
|
def action_signal_handler(action):
|
|
|
|
if action:
|
|
|
|
if action:
|
|
|
|
progress_label.set_text(action)
|
|
|
|
progress_label.set_text(action)
|
|
|
@ -361,7 +363,7 @@ def handle_error(error):
|
|
|
|
# Gtk.main_iteration()
|
|
|
|
# Gtk.main_iteration()
|
|
|
|
if error:
|
|
|
|
if error:
|
|
|
|
if not 'DBus.Error.NoReply' in str(error):
|
|
|
|
if not 'DBus.Error.NoReply' in str(error):
|
|
|
|
print('error:', error)
|
|
|
|
print(error)
|
|
|
|
ErrorDialog.format_secondary_text(error)
|
|
|
|
ErrorDialog.format_secondary_text(error)
|
|
|
|
response = ErrorDialog.run()
|
|
|
|
response = ErrorDialog.run()
|
|
|
|
if response:
|
|
|
|
if response:
|
|
|
@ -510,6 +512,7 @@ def check_conflicts():
|
|
|
|
warning = ''
|
|
|
|
warning = ''
|
|
|
|
error = ''
|
|
|
|
error = ''
|
|
|
|
print('checking...')
|
|
|
|
print('checking...')
|
|
|
|
|
|
|
|
if mode:
|
|
|
|
Window.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH))
|
|
|
|
Window.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH))
|
|
|
|
while Gtk.events_pending():
|
|
|
|
while Gtk.events_pending():
|
|
|
|
Gtk.main_iteration()
|
|
|
|
Gtk.main_iteration()
|
|
|
@ -821,6 +824,7 @@ def check_conflicts():
|
|
|
|
for pkg in pkg_list:
|
|
|
|
for pkg in pkg_list:
|
|
|
|
wont_be_removed.add(pkg.name)
|
|
|
|
wont_be_removed.add(pkg.name)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if mode:
|
|
|
|
Window.get_window().set_cursor(None)
|
|
|
|
Window.get_window().set_cursor(None)
|
|
|
|
print('check done')
|
|
|
|
print('check done')
|
|
|
|
if warning:
|
|
|
|
if warning:
|
|
|
|