Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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()
Ejemplo n.º 4
0
 def exit(self):
     log("GTKXpraClient.exit() calling %s", gtk_main_quit_really)
     gtk_main_quit_really()
Ejemplo n.º 5
0
 def do_quit(self):
     gtk_main_quit_really()
Ejemplo n.º 6
0
 def do_quit(self):
     gtk_main_quit_really()
Ejemplo n.º 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()
Ejemplo n.º 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")
Ejemplo n.º 9
0
 def close_dialog(*_args):
     md.destroy()
     gtk_main_quit_really()
Ejemplo n.º 10
0
 def destroy(self, *args):
     log("destroy%s", args)
     self.exit_launcher = True
     self.clean_client()
     self.close_window()
     gtk_main_quit_really()
Ejemplo n.º 11
0
 def do_quit(*args):
     log("do_quit%s", args)
     self.clean_client()
     self.destroy()
     gtk_main_quit_really()
Ejemplo n.º 12
0
 def accel_close(self, *args):
     log("accel_close%s", args)
     gtk_main_quit_really()
Ejemplo n.º 13
0
 def exit(self):
     log("GTKXpraClient.exit() calling %s", gtk_main_quit_really)
     gtk_main_quit_really()
Ejemplo n.º 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()
Ejemplo n.º 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")
Ejemplo n.º 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()