[gnome-music/wip/jfelder/3-32-about-dialog-modal: 2/2] application: Present, not show

commit f4032871e53da97589442f570207641ebcff1b3e
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.
    (cherry picked from commit 4addb65aa9dc18158f109b9fea4d277c52f1e2ff)

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

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