Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/desktop/sweetener/basic_options.py
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2012-10-03 00:23:16 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2012-10-03 00:23:16 (GMT)
commit5ceda38732c57211d3f38e6cbbd7b8a521a0a9e5 (patch)
tree7fa653cb7ccc6d8c4fc9c34967f3b5dd66dbd726 /desktop/sweetener/basic_options.py
parente1a599bb8508e1a0607e052a2f086289844dee60 (diff)
Start sugarizing; use Gtk3
Diffstat (limited to 'desktop/sweetener/basic_options.py')
-rw-r--r--desktop/sweetener/basic_options.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/desktop/sweetener/basic_options.py b/desktop/sweetener/basic_options.py
index 83636e1..44869fe 100644
--- a/desktop/sweetener/basic_options.py
+++ b/desktop/sweetener/basic_options.py
@@ -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,19 +42,20 @@ 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)
+ self.append_separator()
if export_formats != None:
if len(export_formats) == 1:
stock.register('sweetener-%s' % export_formats[0][1],
@@ -66,6 +67,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)