Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/createtoolbar.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@laptop.org>2013-01-23 11:38:44 (GMT)
committer Simon Schampijer <simon@laptop.org>2013-01-31 20:18:02 (GMT)
commitccf711ae1acaea90e37ab61ff0213927c21afc0e (patch)
tree2c904a10f705598dbc17159ad25b5eb2a5839141 /createtoolbar.py
parent15218740927681efd27b52e576a35d2b45973cde (diff)
Running pygi-convert.sh as a first step to port to GTK+ 3
Diffstat (limited to 'createtoolbar.py')
-rw-r--r--createtoolbar.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/createtoolbar.py b/createtoolbar.py
index 49feaf7..4459447 100644
--- a/createtoolbar.py
+++ b/createtoolbar.py
@@ -17,8 +17,8 @@
from gettext import gettext as _
-import gtk
-import gobject
+from gi.repository import Gtk
+from gi.repository import GObject
from gobject import SIGNAL_RUN_FIRST, TYPE_PYOBJECT
import logging
@@ -28,7 +28,7 @@ from sugar.graphics.alert import Alert
from sugar.graphics.icon import Icon
-class CreateToolbarBuilder(gobject.GObject):
+class CreateToolbarBuilder(GObject.GObject):
__gtype_name__ = 'CreateToolbar'
@@ -38,7 +38,7 @@ class CreateToolbarBuilder(gobject.GObject):
}
def __init__(self, activity):
- gobject.GObject.__init__(self)
+ GObject.GObject.__init__(self)
self.activity = activity
self.toolbar = self.activity.get_toolbar_box().toolbar
@@ -60,7 +60,7 @@ class CreateToolbarBuilder(gobject.GObject):
self.toolbar.show_all()
def _add_widget(self, widget, expand=False):
- tool_item = gtk.ToolItem()
+ tool_item = Gtk.ToolItem()
tool_item.set_expand(expand)
tool_item.add(widget)
widget.show()