Esempio n. 1
0
    def __init__(self, exaile):
        EggTrayIcon.__init__(self, 'Exaile Trayicon')

        self.image = gtk.image_new_from_icon_name('exaile', gtk.ICON_SIZE_MENU)
        self.eventbox = gtk.EventBox()
        self.eventbox.add(self.image)
        self.add(self.eventbox)

        builder = gtk.Builder()
        basedir = os.path.dirname(os.path.abspath(__file__))
        builder.add_from_file(os.path.join(basedir, 'drop_target_window.ui'))

        self.exaile = exaile
        self.drop_target_window = builder.get_object('drop_target_window')
        self.play_target = builder.get_object('play_target')
        self.append_target = builder.get_object('append_target')
        self.new_playlist_target = builder.get_object('new_playlist_target')
        self.description_label = builder.get_object('description_label')

        self._drag_motion_id = None
        self._drag_leave_id = None

        BaseTrayIcon.__init__(self, self.exaile.gui.main)

        self.setup_drag_destinations()
        self.show_all()
Esempio n. 2
0
    def __init__(self, exaile):
        EggTrayIcon.__init__(self, 'Exaile Trayicon')

        self.image = gtk.image_new_from_icon_name(
          'exaile', gtk.ICON_SIZE_MENU)
        self.eventbox = gtk.EventBox()
        self.eventbox.add(self.image)
        self.add(self.eventbox)

        builder = gtk.Builder()
        basedir = os.path.dirname(os.path.abspath(__file__))
        builder.add_from_file(os.path.join(basedir, 'drop_target_window.ui'))

        self.exaile = exaile
        self.drop_target_window = builder.get_object('drop_target_window')
        self.play_target = builder.get_object('play_target')
        self.append_target = builder.get_object('append_target')
        self.new_playlist_target = builder.get_object('new_playlist_target')
        self.description_label = builder.get_object('description_label')

        self._drag_motion_id = None
        self._drag_leave_id = None

        BaseTrayIcon.__init__(self, self.exaile.gui.main)

        self.setup_drag_destinations()
        self.show_all()
    def __init__(self):
        TrayIcon.__init__(self, 'Hermes TrayIcon')

        # Set up icon 
        self.button = gtk.Button()
        self.button.set_relief(gtk.RELIEF_NONE)
        event_box = gtk.EventBox()
        event_box.connect("button-press-event", self.on_mouse_press)
        image = gtk.Image()
        event_box.add(image)
        image.set_from_file('/usr/share/hermes/img/logo_16.png')
        self.add(event_box)

        # Set up menu
        self.menu = HermesMenu()

        self.show_all()
Esempio n. 4
0
    def __init__(self):
        TrayIcon.__init__(self, 'Hermes TrayIcon')

        # Set up icon
        self.button = gtk.Button()
        self.button.set_relief(gtk.RELIEF_NONE)
        event_box = gtk.EventBox()
        event_box.connect("button-press-event", self.on_mouse_press)
        image = gtk.Image()
        event_box.add(image)
        image.set_from_file('/usr/share/hermes/img/logo_16.png')
        self.add(event_box)

        # Set up menu
        self.menu = HermesMenu()

        self.show_all()
Esempio n. 5
0
    def __init__(self):
        TrayIcon.__init__(self, 'lemurae')

        self.lemurae_window = Lemurae()
        self._configure_image()
        self.show_all()
    def __init__(self):
        TrayIcon.__init__(self, 'lemurae')

        self.lemurae_window = Lemurae()
        self._configure_image()
        self.show_all()