Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/viewtoolbar.py
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2011-11-25 02:00:52 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2011-11-25 02:00:52 (GMT)
commitdec602fda0890bdbfb121107b9bb39f7954a9cd5 (patch)
treeb570a56bf29d76801347934ffa74feb2451de7e7 /viewtoolbar.py
parent6cd0ba03d5494b144a6c05dcc59f7ce9d39e6939 (diff)
Port from PyGTK to PyGI, renaming
Was done running the pygi-convert.sh script. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'viewtoolbar.py')
-rw-r--r--viewtoolbar.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/viewtoolbar.py b/viewtoolbar.py
index 61f4943..7f74035 100644
--- a/viewtoolbar.py
+++ b/viewtoolbar.py
@@ -17,14 +17,14 @@
from gettext import gettext as _
-import gtk
+from gi.repository import Gtk
from sugar.graphics.toolbutton import ToolButton
-class ViewToolbar(gtk.Toolbar):
+class ViewToolbar(Gtk.Toolbar):
def __init__(self, activity):
- gtk.Toolbar.__init__(self)
+ GObject.GObject.__init__(self)
self._activity = activity
self._activity.tray.connect('unmap', self.__unmap_cb)
@@ -42,7 +42,7 @@ class ViewToolbar(gtk.Toolbar):
self.insert(self.zoomin, -1)
self.zoomin.show()
- self.separator = gtk.SeparatorToolItem()
+ self.separator = Gtk.SeparatorToolItem()
self.separator.set_draw(True)
self.insert(self.separator, -1)
self.separator.show()