[gnome-music/gbsneto/fix-about-dialog: 2/2] application: Present, not show



commit 4addb65aa9dc18158f109b9fea4d277c52f1e2ff
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Apr 15 12:14:11 2019 -0300

    application: Present, not show
    
    The About dialog is a toplevel, and as such, it is
    not "shown", it is "presented". To make it a tiny
    bit more explicit, use the GtkWindow.present method.

 gnomemusic/application.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/application.py b/gnomemusic/application.py
index 465b3d69..3cb88ed1 100644
--- a/gnomemusic/application.py
+++ b/gnomemusic/application.py
@@ -119,7 +119,7 @@ class Application(Gtk.Application):
     def _about(self, action, param):
         about = AboutDialog()
         about.props.transient_for = self._window
-        about.show()
+        about.present()
 
     @log
     def do_startup(self):


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