commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 80/101: grc: gtk3: fix MessageDialog for Va


From: git
Subject: [Commit-gnuradio] [gnuradio] 80/101: grc: gtk3: fix MessageDialog for Variable Panel config
Date: Thu, 16 Mar 2017 14:58:11 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch python3
in repository gnuradio.

commit 824017be176e46655215c7bbfe3a4d0adff8aed4
Author: Sebastian Koslowski <address@hidden>
Date:   Wed Sep 14 16:38:26 2016 -0600

    grc: gtk3: fix MessageDialog for Variable Panel config
---
 grc/gui/ActionHandler.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index 913eb5a..42822ad 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/ActionHandler.py
@@ -434,11 +434,10 @@ class ActionHandler:
             action.save_to_preferences()
         elif action == Actions.TOGGLE_FLOW_GRAPH_VAR_EDITOR_SIDEBAR:
             if self.init:
-                md = Gtk.MessageDialog(main,
-                    Gtk.DIALOG_DESTROY_WITH_PARENT, Gtk.MESSAGE_INFO,
-                    Gtk.BUTTONS_CLOSE, "Moving the variable editor requires a 
restart of GRC.")
-                md.run()
-                md.destroy()
+                Dialogs.MessageDialogWrapper(
+                    main, Gtk.MessageType.INFO, Gtk.ButtonsType.CLOSE,
+                    markup="Moving the variable editor requires a restart of 
GRC."
+                ).run_and_destroy()
                 action.save_to_preferences()
         ##################################################
         # Param Modifications



reply via email to

[Prev in Thread] Current Thread [Next in Thread]