[gnome-music/wip/mschraal/window-back-button-cleanup: 6/6] window: Do not call private HeaderBar function
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/window-back-button-cleanup: 6/6] window: Do not call private HeaderBar function
- Date: Mon, 1 Apr 2019 13:49:54 +0000 (UTC)
commit 4fd31e3c8510d37f9ce4acf75335c8616d69f5aa
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Mar 31 12:48:54 2019 +0200
window: Do not call private HeaderBar function
Pressing back button called a private function of HeaderBar
Emit the 'back-button-clicked' signal on the HeaderBar object instead for
the same result.
gnomemusic/window.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index e90e5d33..a0087078 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -398,7 +398,7 @@ class Window(Gtk.ApplicationWindow):
@log
def _on_back_button_pressed(self, gesture, n_press, x, y):
- self._headerbar._on_back_button_clicked()
+ self._headerbar.emit('back-button-clicked')
@log
def _notify_mode_disconnect(self, data=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]