commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 35/101: grc: gtk3: quick fix for file dialo


From: git
Subject: [Commit-gnuradio] [gnuradio] 35/101: grc: gtk3: quick fix for file dialogs
Date: Thu, 16 Mar 2017 14:58:03 +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 71cd4f066c079ad530d80afd263bb3cc8ec58b33
Author: Sebastian Koslowski <address@hidden>
Date:   Tue Jul 12 15:12:57 2016 +0200

    grc: gtk3: quick fix for file dialogs
---
 grc/gui/ActionHandler.py | 5 -----
 grc/gui/FileDialogs.py   | 2 +-
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index 16fed00..923d8d6 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/ActionHandler.py
@@ -511,9 +511,6 @@ class ActionHandler:
                 
flow_graph._options_block.get_param('generate_options').set_value(args[0])
                 flow_graph_update()
         elif action == Actions.FLOW_GRAPH_OPEN:
-            # TODO: Disable opening the flowgraph
-            pass
-            '''
             file_paths = args if args else 
OpenFlowGraphFileDialog(page.file_path).run()
             if file_paths: # Open a new page for each file, show only the first
                 for i,file_path in enumerate(file_paths):
@@ -521,8 +518,6 @@ class ActionHandler:
                     Preferences.add_recent_file(file_path)
                     main.tool_bar.refresh_submenus()
                     main.menu_bar.refresh_submenus()
-                    main.vars.update_gui()
-            '''
         elif action == Actions.FLOW_GRAPH_OPEN_QSS_THEME:
             file_paths = OpenQSSFileDialog(self.platform.config.install_prefix 
+
                                            '/share/gnuradio/themes/').run()
diff --git a/grc/gui/FileDialogs.py b/grc/gui/FileDialogs.py
index c7336a6..23fd7e7 100644
--- a/grc/gui/FileDialogs.py
+++ b/grc/gui/FileDialogs.py
@@ -95,7 +95,7 @@ class FileDialogHelper(Gtk.FileChooserDialog):
             title: the title of the dialog (string)
         """
         ok_stock = {Gtk.FileChooserAction.OPEN : 'gtk-open', 
Gtk.FileChooserAction.SAVE : 'gtk-save'}[action]
-        GObject.GObject.__init__(self, title, None, action, ('gtk-cancel', 
Gtk.ResponseType.CANCEL, ok_stock, Gtk.ResponseType.OK))
+        Gtk.FileChooserDialog.__init__(self, title, None, action, 
('gtk-cancel', Gtk.ResponseType.CANCEL, ok_stock, Gtk.ResponseType.OK))
         self.set_select_multiple(False)
         self.set_local_only(True)
         self.add_filter(get_all_files_filter())



reply via email to

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