Example #1
0
def quit_handler(*args):
    global exit_cb
    if exit_cb:
        exit_cb()
    else:
        from xpra.gtk_common.quit import gtk_main_quit_really
        gtk_main_quit_really()
    return True
Example #2
0
def quit_handler(*_args):
    global exit_cb
    if exit_cb:
        exit_cb()
    else:
        from xpra.gtk_common.quit import gtk_main_quit_really
        gtk_main_quit_really()
    return True
Example #3
0
 def do_quit(self):
     log("do_quit: calling gtk_main_quit_really")
     gtk_main_quit_on_fatal_exceptions_disable()
     gtk_main_quit_really()
     log("do_quit: gtk_main_quit_really done")
     #from now on, we can't rely on the main loop:
     from xpra.os_util import register_SIGUSR_signals
     register_SIGUSR_signals()
Example #4
0
 def exit(self):
     log("GTKXpraClient.exit() calling %s", gtk_main_quit_really)
     gtk_main_quit_really()
Example #5
0
 def do_quit(self):
     gtk_main_quit_really()
Example #6
0
 def do_quit(self):
     gtk_main_quit_really()
Example #7
0
def ssh_connect_failed(message):
    #by the time ssh fails, we may have entered the gtk main loop
    #(and more than once thanks to the clipboard code..)
    from xpra.gtk_common.quit import gtk_main_quit_really
    gtk_main_quit_really()
Example #8
0
 def do_quit(self):
     log("do_quit: calling gtk_main_quit_really")
     gtk_main_quit_on_fatal_exceptions_disable()
     gtk_main_quit_really()
     log("do_quit: gtk_main_quit_really done")
Example #9
0
 def close_dialog(*_args):
     md.destroy()
     gtk_main_quit_really()
Example #10
0
 def destroy(self, *args):
     log("destroy%s", args)
     self.exit_launcher = True
     self.clean_client()
     self.close_window()
     gtk_main_quit_really()
Example #11
0
 def do_quit(*args):
     log("do_quit%s", args)
     self.clean_client()
     self.destroy()
     gtk_main_quit_really()
Example #12
0
 def accel_close(self, *args):
     log("accel_close%s", args)
     gtk_main_quit_really()
Example #13
0
 def exit(self):
     log("GTKXpraClient.exit() calling %s", gtk_main_quit_really)
     gtk_main_quit_really()
Example #14
0
def ssh_connect_failed(_message):
    #by the time ssh fails, we may have entered the gtk main loop
    #(and more than once thanks to the clipboard code..)
    if "gtk" in sys.modules or "gi.repository.Gtk" in sys.modules:
        from xpra.gtk_common.quit import gtk_main_quit_really
        gtk_main_quit_really()
Example #15
0
 def do_quit(self):
     log("do_quit: calling gtk_main_quit_really")
     gtk_main_quit_on_fatal_exceptions_disable()
     gtk_main_quit_really()
     log("do_quit: gtk_main_quit_really done")
Example #16
0
def ssh_connect_failed(message):
    #by the time ssh fails, we may have entered the gtk main loop
    #(and more than once thanks to the clipboard code..)
    from xpra.gtk_common.quit import gtk_main_quit_really
    gtk_main_quit_really()