Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/infoslicer/widgets/Journal_Image_Pane.py
diff options
context:
space:
mode:
Diffstat (limited to 'infoslicer/widgets/Journal_Image_Pane.py')
-rw-r--r--infoslicer/widgets/Journal_Image_Pane.py23
1 files changed, 10 insertions, 13 deletions
diff --git a/infoslicer/widgets/Journal_Image_Pane.py b/infoslicer/widgets/Journal_Image_Pane.py
index 38c1c23..723389b 100644
--- a/infoslicer/widgets/Journal_Image_Pane.py
+++ b/infoslicer/widgets/Journal_Image_Pane.py
@@ -1,9 +1,6 @@
# Copyright (C) IBM Corporation 2008
-import gi
-gi.require_version('Gtk', '3.0')
-from gi.repository import Gtk
-from gi.repository import Gdk
-from gi.repository import GObject
+import gtk
+import gobject
import logging
from gettext import gettext as _
@@ -13,7 +10,7 @@ from infoslicer.processing.Article import Article
logger = logging.getLogger('infoslicer')
-class Journal_Image_Pane(Gtk.HBox):
+class Journal_Image_Pane(gtk.HBox):
"""
Created by Aneesh Dogra
@@ -25,24 +22,24 @@ class Journal_Image_Pane(Gtk.HBox):
"""
def __init__(self):
- GObject.GObject.__init__(self)
+ gtk.HBox.__init__(self)
self.toolitems = []
- gallery_box = Gtk.VBox()
+ gallery_box = gtk.VBox()
gallery_box.show()
- labeleb = Gtk.EventBox()
- labeleb.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse("#EEEEEE"))
+ labeleb = gtk.EventBox()
+ labeleb.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse("#EEEEEE"))
gallery_box.pack_start(labeleb, False, False, 0)
labeleb.show()
- self.articletitle = Gtk.Label()
- self.articletitle.set_justify(Gtk.Justification.CENTER)
+ self.articletitle = gtk.Label()
+ self.articletitle.set_justify(gtk.JUSTIFY_CENTER)
labeleb.add(self.articletitle)
self.articletitle.show()
self.gallery = Journal_Gallery_View()
- self.gallery.set_size_request(Gdk.Screen.width()/2, -1)
+ self.gallery.set_size_request(int(gtk.gdk.screen_width() / 2), -1)
gallery_box.pack_start(self.gallery, True, True, 0)
self.pack_start(gallery_box, False, False, 0)