Exemplo n.º 1
0
 def _on_label_realize(self, eventbox):
     """
         Change cursor on label
         @param eventbox as Gtk.EventBox
     """
     if InfoPopover.should_be_shown() and self._artist_ids:
         eventbox.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.HAND2))
Exemplo n.º 2
0
 def _on_label_realize(self, eventbox):
     """
         Change cursor on label
         @param eventbox as Gtk.EventBox
     """
     if InfoPopover.should_be_shown() and self._artist_ids:
         eventbox.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.HAND1))
Exemplo n.º 3
0
 def _on_label_realize(self, eventbox):
     """
         Change pointer on label
         @param eventbox as Gtk.EventBox
     """
     if InfoPopover.should_be_shown() and\
             self._album.artist_ids[0] != Type.COMPILATIONS:
         eventbox.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.HAND1))
Exemplo n.º 4
0
 def _on_label_realize(self, eventbox):
     """
         Change pointer on label
         @param eventbox as Gtk.EventBox
     """
     if InfoPopover.should_be_shown() and\
             self._album.artist_ids[0] != Type.COMPILATIONS:
         eventbox.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.HAND1))
Exemplo n.º 5
0
 def _on_image_button_release(self, eventbox, event):
     """
         Show artist artwork manager
         @param eventbox as Gtk.EventBox
         @param event as Gdk.Event
     """
     if InfoPopover.should_be_shown() and self._artist_ids:
         pop = ArtworkPopover(self._artist_ids[0])
         pop.set_relative_to(eventbox)
         pop.show()
Exemplo n.º 6
0
 def _on_label_button_release(self, eventbox, event):
     """
         Show artists information
         @param eventbox as Gtk.EventBox
         @param event as Gdk.Event
     """
     if InfoPopover.should_be_shown() and self._artist_ids:
         pop = InfoPopover(self._artist_ids, False)
         pop.set_relative_to(eventbox)
         pop.show()
Exemplo n.º 7
0
 def _on_image_button_release(self, eventbox, event):
     """
         Show artist artwork manager
         @param eventbox as Gtk.EventBox
         @param event as Gdk.Event
     """
     if InfoPopover.should_be_shown() and self._artist_ids:
         pop = ArtworkPopover(self._artist_ids[0])
         pop.set_relative_to(eventbox)
         pop.show()
Exemplo n.º 8
0
 def _on_label_button_release(self, eventbox, event):
     """
         Show artists information
         @param eventbox as Gtk.EventBox
         @param event as Gdk.Event
     """
     if InfoPopover.should_be_shown() and self._artist_ids:
         pop = InfoPopover(self._artist_ids, False)
         pop.set_relative_to(eventbox)
         pop.show()
Exemplo n.º 9
0
 def _on_label_button_release(self, eventbox, event):
     """
         On clicked label, show artist informations in a popover
         @param eventbox as Gtk.EventBox
         @param event as Gdk.Event
     """
     if InfoPopover.should_be_shown() and\
             self._artist_id is not None:
         pop = InfoPopover([self._artist_id], False)
         pop.set_relative_to(eventbox)
         pop.show()
Exemplo n.º 10
0
 def _on_label_button_release(self, eventbox, event):
     """
         On clicked label, show artist informations in a popover
         @param eventbox as Gtk.EventBox
         @param event as Gdk.Event
     """
     if InfoPopover.should_be_shown() and\
             self._artist_id is not None:
         pop = InfoPopover([self._artist_id], False)
         pop.set_relative_to(eventbox)
         pop.show()
Exemplo n.º 11
0
 def _on_label_button_release(self, eventbox, event):
     """
         On clicked label, show artist informations in a popover
         @param eventbox as Gtk.EventBox
         @param event as Gdk.Event
     """
     if InfoPopover.should_be_shown() and\
             self._album.artist_ids[0] != Type.COMPILATIONS:
         pop = InfoPopover(self._album.artist_ids)
         pop.set_relative_to(eventbox)
         pop.show()
Exemplo n.º 12
0
 def _on_label_button_release(self, eventbox, event):
     """
         On clicked label, show artist informations in a popover
         @param eventbox as Gtk.EventBox
         @param event as Gdk.Event
     """
     if InfoPopover.should_be_shown() and\
             self._album.artist_ids[0] != Type.COMPILATIONS:
         pop = InfoPopover(self._album.artist_ids)
         pop.set_relative_to(eventbox)
         pop.show()