diff options
-rw-r--r-- | frontend/firstaidkit.glade | 9 | ||||
-rw-r--r-- | frontend/main.py | 11 |
2 files changed, 8 insertions, 12 deletions
diff --git a/frontend/firstaidkit.glade b/frontend/firstaidkit.glade index 1b12c0a..6decf0c 100644 --- a/frontend/firstaidkit.glade +++ b/frontend/firstaidkit.glade @@ -60,15 +60,6 @@ </child> <child> - <widget class="GtkImageMenuItem" id="mainmenu_save_as"> - <property name="visible">True</property> - <property name="label">gtk-save-as</property> - <property name="use_stock">True</property> - <signal name="activate" handler="on_mainmenu_save_as_activate" last_modification_time="Fri, 18 Apr 2008 13:36:57 GMT"/> - </widget> - </child> - - <child> <widget class="GtkSeparatorMenuItem" id="separatormenuitem1"> <property name="visible">True</property> </widget> diff --git a/frontend/main.py b/frontend/main.py index eb2161a..c9a00c7 100644 --- a/frontend/main.py +++ b/frontend/main.py @@ -52,13 +52,18 @@ class CallbacksMainWindow(object): #menu callbacks def on_mainmenu_open_activate(self, widget, *args): print "on_mainmenu_open_activate" + d = gtk.FileChooserDialog(title="Load the configuration file", parent=self._dialog, action=gtk.FILE_CHOOSER_ACTION_OPEN, + buttons = (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT, gtk.STOCK_OK, gtk.RESPONSE_ACCEPT)) + print d.run() + d.destroy() return True def on_mainmenu_save_activate(self, widget, *args): print "on_mainmenu_save_activate" - return True - - def on_mainmenu_save_as_activate(self, widget, *args): + d = gtk.FileChooserDialog(title="Save the configuration file", parent=self._dialog, action=gtk.FILE_CHOOSER_ACTION_SAVE, + buttons = (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT, gtk.STOCK_OK, gtk.RESPONSE_ACCEPT)) + print d.run() + d.destroy() return True def on_quit_activate(self, widget, *args): |