diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2012-12-23 19:23:43 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2012-12-23 19:23:43 +0400 |
commit | 8f71d9f21955d30cd47fabdf0b95869603887cb9 (patch) | |
tree | a392fd64a32d42e505dad0572d3f255c29feb90f /src/atom_window.py | |
parent | cae8faf0ed7e1e447abcd01640b351135b33e885 (diff) |
start porting Gajim to gobject introspection and GTK3
Diffstat (limited to 'src/atom_window.py')
-rw-r--r-- | src/atom_window.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/atom_window.py b/src/atom_window.py index 6c9f9ec52..f0cb83f76 100644 --- a/src/atom_window.py +++ b/src/atom_window.py @@ -22,8 +22,8 @@ ## -import gtk -import gobject +from gi.repository import Gtk +from gi.repository import GObject import gtkgui_helpers from common import helpers @@ -70,8 +70,8 @@ class AtomWindow: self.xml.connect_signals(self) self.window.show_all() - self.entry_title_eventbox.add_events(gtk.gdk.BUTTON_PRESS_MASK) - self.feed_title_eventbox.add_events(gtk.gdk.BUTTON_PRESS_MASK) + self.entry_title_eventbox.add_events(Gdk.EventMask.BUTTON_PRESS_MASK) + self.feed_title_eventbox.add_events(Gdk.EventMask.BUTTON_PRESS_MASK) def displayNextEntry(self): """ @@ -85,23 +85,23 @@ class AtomWindow: if newentry.feed_link is not None: self.feed_title_label.set_markup( u'<span foreground="blue" underline="single">%s</span>' % \ - gobject.markup_escape_text(newentry.feed_title)) + GObject.markup_escape_text(newentry.feed_title)) else: self.feed_title_label.set_markup( - gobject.markup_escape_text(newentry.feed_title)) + GObject.markup_escape_text(newentry.feed_title)) self.feed_tagline_label.set_markup( u'<small>%s</small>' % \ - gobject.markup_escape_text(newentry.feed_tagline)) + GObject.markup_escape_text(newentry.feed_tagline)) if newentry.title: if newentry.uri is not None: self.entry_title_label.set_markup( u'<span foreground="blue" underline="single">%s</span>' % \ - gobject.markup_escape_text(newentry.title)) + GObject.markup_escape_text(newentry.title)) else: self.entry_title_label.set_markup( - gobject.markup_escape_text(newentry.title)) + GObject.markup_escape_text(newentry.title)) else: self.entry_title_label.set_markup('') |