Esempio n. 1
0
    def __init__(self, notebook):
        NotebookAction.__init__(self, notebook)
        Gtk.Button.__init__(self)

        self.set_image(Gtk.Image.new_from_icon_name('tab-new', Gtk.IconSize.BUTTON))
        self.set_relief(Gtk.ReliefStyle.NONE)

        self.__default_tooltip_text = _('New Playlist')
        self.__drag_tooltip_text = _('Drop here to create a new playlist')
        self.set_tooltip_text(self.__default_tooltip_text)

        self.drag_dest_set(Gtk.DestDefaults.ALL, [], Gdk.DragAction.COPY)
        self.drag_dest_add_uri_targets()

        self.connect('drag-motion', self.on_drag_motion)
        self.connect('drag-leave', self.on_drag_leave)
        self.connect('drag-data-received', self.on_drag_data_received)
Esempio n. 2
0
    def __init__(self, notebook):
        NotebookAction.__init__(self, notebook)
        Gtk.Button.__init__(self)

        self.set_image(Gtk.Image.new_from_icon_name('tab-new', Gtk.IconSize.BUTTON))
        self.set_relief(Gtk.ReliefStyle.NONE)

        self.__default_tooltip_text = _('New Playlist')
        self.__drag_tooltip_text = _('Drop here to create a new playlist')
        self.set_tooltip_text(self.__default_tooltip_text)

        self.drag_dest_set(Gtk.DestDefaults.ALL, [], Gdk.DragAction.COPY)
        self.drag_dest_add_uri_targets()

        self.connect('drag-motion', self.on_drag_motion)
        self.connect('drag-leave', self.on_drag_leave)
        self.connect('drag-data-received', self.on_drag_data_received)
Esempio n. 3
0
    def __init__(self, notebook):
        NotebookAction.__init__(self, notebook)
        gtk.Button.__init__(self)

        self.set_image(
            gtk.image_new_from_icon_name('tab-new', gtk.ICON_SIZE_BUTTON))
        self.set_relief(gtk.RELIEF_NONE)

        self.__default_tooltip_text = _('New Playlist')
        self.__drag_tooltip_text = _('Drop here to create a new playlist')
        self.set_tooltip_text(self.__default_tooltip_text)

        self.drag_dest_set(gtk.DEST_DEFAULT_ALL, [], gtk.gdk.ACTION_COPY)
        self.drag_dest_add_uri_targets()

        self.connect('drag-motion', self.on_drag_motion)
        self.connect('drag-leave', self.on_drag_leave)
        self.connect('drag-data-received', self.on_drag_data_received)
Esempio n. 4
0
    def __init__(self, notebook):
        NotebookAction.__init__(self, notebook)
        gtk.Button.__init__(self)

        self.set_image(gtk.image_new_from_icon_name('tab-new',
            gtk.ICON_SIZE_BUTTON))
        self.set_relief(gtk.RELIEF_NONE)

        self.__default_tooltip_text = _('New Playlist')
        self.__drag_tooltip_text = _('Drop here to create a new playlist')
        self.set_tooltip_text(self.__default_tooltip_text)

        self.drag_dest_set(gtk.DEST_DEFAULT_ALL, [], gtk.gdk.ACTION_COPY)
        self.drag_dest_add_uri_targets()

        self.connect('drag-motion', self.on_drag_motion)
        self.connect('drag-leave', self.on_drag_leave)
        self.connect('drag-data-received', self.on_drag_data_received)