Exemple #1
0
def do_init():
    from wimpiggy.util import gtk_main_quit_really
    def quit_launcher(*args):
        gtk_main_quit_really()
    from xpra.darwin.gui import get_OSXApplication, setup_menubar, osx_ready
    from xpra.platform import get_icon
    setup_menubar(quit_launcher)
    osxapp = get_OSXApplication()
    icon = get_icon("xpra.png")
    if icon:
        osxapp.set_dock_icon_pixbuf(icon)
    osx_ready()
Exemple #2
0
		def prepare_window_osx(window):
			def quit_launcher(*args):
				gtk.main_quit()
			from xpra.darwin.gui import get_OSXApplication, setup_menubar, osx_ready
			setup_menubar(quit_launcher)

			osxapp = get_OSXApplication()
			icon_filename = get_icon_filename("xpra.png")
			if icon_filename:
				pixbuf = gtk.gdk.pixbuf_new_from_file(icon_filename)
				osxapp.set_dock_icon_pixbuf(pixbuf)
			osx_ready()
Exemple #3
0
        def prepare_window_osx(window):
            def quit_launcher(*args):
                gtk.main_quit()

            from xpra.darwin.gui import get_OSXApplication, setup_menubar, osx_ready
            setup_menubar(quit_launcher)

            osxapp = get_OSXApplication()
            icon_filename = get_icon_filename("xpra.png")
            if icon_filename:
                pixbuf = gtk.gdk.pixbuf_new_from_file(icon_filename)
                osxapp.set_dock_icon_pixbuf(pixbuf)
            osx_ready()
Exemple #4
0
def do_init():
    from wimpiggy.util import gtk_main_quit_really

    def quit_launcher(*args):
        gtk_main_quit_really()

    from xpra.darwin.gui import get_OSXApplication, setup_menubar, osx_ready
    from xpra.platform import get_icon
    setup_menubar(quit_launcher)
    osxapp = get_OSXApplication()
    icon = get_icon("xpra.png")
    if icon:
        osxapp.set_dock_icon_pixbuf(icon)
    osx_ready()