Exemplo n.º 1
0
 def populate(self):
     """
         Populate widget content
     """
     self.__album_ids = self._get_album_ids()
     shuffle(self.__album_ids)
     RoundedFlowBoxWidget.populate(self)
     self._artwork.get_style_context().add_class("light-background")
Exemplo n.º 2
0
 def populate(self):
     """
         Populate widget content
     """
     if self._artwork is None:
         RoundedFlowBoxWidget.populate(self)
         self._artwork.get_style_context().add_class("circle-icon-large")
         self.connect("destroy", self.__on_destroy)
     else:
         self.set_artwork()
 def populate(self):
     """
         Populate widget content
     """
     if self._artwork is None:
         RoundedFlowBoxWidget.populate(self)
         self.connect("destroy", self.__on_destroy)
         self.connect("button-release-event",
                      self.__on_button_release_event)
         self.__gesture = Gtk.GestureLongPress.new(self)
         self.__gesture.connect("pressed", self.__on_gesture_pressed)
         # We want to get release event after gesture
         self.__gesture.set_propagation_phase(Gtk.PropagationPhase.CAPTURE)
         self.__gesture.set_button(0)
     else:
         self.set_artwork()
Exemplo n.º 4
0
 def populate(self):
     """
         Populate widget content
     """
     RoundedFlowBoxWidget.populate(self)
     self._artwork.get_style_context().add_class("rounded-icon-large")
Exemplo n.º 5
0
 def populate(self):
     """
         Populate widget content
     """
     RoundedFlowBoxWidget.populate(self)
     self.connect("button-press-event", self.__on_button_press_event)
Exemplo n.º 6
0
 def populate(self):
     """
         Populate widget content
     """
     RoundedFlowBoxWidget.populate(self)
     self._artwork.get_style_context().add_class("light-background")