Skip to content
Snippets Groups Projects
Commit 4b0c3759 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't depend on PyGTK 2.16. Fixes #5472

parent 8b1e480e
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ class ProfileWindow:
return True # loop forever
def remove_statusbar(self, message_id):
self.statusbar.remove_message(self.context_id, message_id)
self.statusbar.remove(self.context_id, message_id)
self.remove_statusbar_timeout_id = None
def on_profile_window_destroy(self, widget):
......@@ -246,7 +246,7 @@ class ProfileWindow:
self.set_value(i + '_entry', vcard_[i])
if self.update_progressbar_timeout_id is not None:
if self.message_id:
self.statusbar.remove_message(self.context_id, self.message_id)
self.statusbar.remove(self.context_id, self.message_id)
self.message_id = self.statusbar.push(self.context_id,
_('Information received'))
self.remove_statusbar_timeout_id = gobject.timeout_add_seconds(3,
......@@ -342,7 +342,7 @@ class ProfileWindow:
def vcard_not_published(self):
if self.message_id:
self.statusbar.remove_message(self.context_id, self.message_id)
self.statusbar.remove(self.context_id, self.message_id)
self.message_id = self.statusbar.push(self.context_id,
_('Information NOT published'))
self.remove_statusbar_timeout_id = gobject.timeout_add_seconds(3,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment