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



commit ab56cf4b1e4c2bf3053e062817dcc4e1dcb8a585
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]