diff options
author | Daniel Francis <francis@sugarlabs.org> | 2013-01-02 23:39:34 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2013-01-02 23:39:34 (GMT) |
commit | cb6082321b3c54eb1fc69900f68d4827bf061ee9 (patch) | |
tree | d4d8c67acced7754dd36066741f669273040f9cc /basic_options.py | |
parent | 1265546eda5b8ba30a5e430c50ad08f15b31c692 (diff) |
Port to Gtk3
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'basic_options.py')
-rw-r--r-- | basic_options.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/basic_options.py b/basic_options.py index 83636e1..fd6a238 100644 --- a/basic_options.py +++ b/basic_options.py @@ -2,7 +2,7 @@ This module provides a "File" menu at desktops and an ActivityToolbar at Sugar. See class BasicOptions. """ -# Copyright (C) 2012 S. Daniel Francis <francis@sugarlabs.org> +# Copyright (C) 2012-2013 S. Daniel Francis <francis@sugarlabs.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,7 +20,7 @@ See class BasicOptions. # MA 02110-1301, USA. from gettext import gettext as _ -import gtk +from gi.repository import Gtk import stock from item import Item @@ -42,17 +42,17 @@ class BasicOptions(ItemGroup): ItemGroup.__init__(self, box, _('_File'), None) if activity.save_type != CONFIG: - new = Item(gtk.STOCK_NEW, True) + new = Item(Gtk.STOCK_NEW, True) new.connect('activate', lambda w: activity.new()) self.append_item(new) - _open = Item(gtk.STOCK_OPEN, True) + _open = Item(Gtk.STOCK_OPEN, True) _open.connect('activate', lambda w: activity.open()) self.append_item(_open) self.append_separator() - save_option = Item(gtk.STOCK_SAVE, True) + save_option = Item(Gtk.STOCK_SAVE, True) save_option.connect('activate', lambda w: activity.save()) self.append_item(save_option) - save_as_option = Item(gtk.STOCK_SAVE_AS) + save_as_option = Item(Gtk.STOCK_SAVE_AS) save_as_option.connect('activate', lambda w: activity.save_as()) self.append_item(save_as_option) if export_formats != None: @@ -66,6 +66,6 @@ class BasicOptions(ItemGroup): export_formats[0]) self.append_item(export) self.append_separator() - _quit = Item(gtk.STOCK_QUIT) + _quit = Item(Gtk.STOCK_QUIT) _quit.connect('activate', lambda w: activity.stop()) self.append_item(_quit) |