[gnome-music/wip/jfelder/application-application-id] application: Use application_id GObject property



commit 26b26238f522ada778ef2858704b2f4c0ecd472b
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Apr 11 22:28:15 2019 +0200

    application: Use application_id GObject property

 gnomemusic/application.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/application.py b/gnomemusic/application.py
index 9a496093..59e7e66c 100644
--- a/gnomemusic/application.py
+++ b/gnomemusic/application.py
@@ -58,7 +58,6 @@ class Application(Gtk.Application):
 
         self._init_style()
         self._window = None
-        self._application_id = application_id
 
     def _init_style(self):
         css_provider = Gtk.CssProvider()
@@ -105,8 +104,8 @@ class Application(Gtk.Application):
     def do_activate(self):
         if not self._window:
             self._window = Window(self)
-            self._window.set_default_icon_name(self._application_id)
-            if self._application_id == 'org.gnome.MusicDevel':
+            self._window.set_default_icon_name(self.props.application_id)
+            if self.props.application_id == 'org.gnome.MusicDevel':
                 self._window.get_style_context().add_class('devel')
             MediaPlayer2Service(self)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]