add button for fullscreen action to toolbar of cover panel
This commit is contained in:
parent
02ee75de4d
commit
1001f38a67
2 changed files with 24 additions and 1 deletions
|
|
@ -780,6 +780,7 @@ class CoverPanel(mcg.Base):
|
|||
|
||||
def get_signal_handlers(self):
|
||||
return {
|
||||
'on_cover-toolbar-fullscreen_clicked': self.on_fullscreen_clicked,
|
||||
'on_cover-box_button_press_event': self.on_cover_box_pressed,
|
||||
'on_cover-scroll_size_allocate': self.on_cover_size_allocate,
|
||||
'on_cover-songs_button_press_event': self.on_songs_start_change,
|
||||
|
|
@ -787,6 +788,10 @@ class CoverPanel(mcg.Base):
|
|||
}
|
||||
|
||||
|
||||
def on_fullscreen_clicked(self, widget):
|
||||
self._callback(self.SIGNAL_TOGGLE_FULLSCREEN)
|
||||
|
||||
|
||||
def on_cover_box_pressed(self, widget, event):
|
||||
if event.type == Gdk.EventType._2BUTTON_PRESS:
|
||||
self._callback(self.SIGNAL_TOGGLE_FULLSCREEN)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue