Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2012-12-31 21:14:21 +0400
committerDenis Fomin <fominde@gmail.com>2012-12-31 21:14:21 +0400
commit42b5a1c9126dc15b300ac9bacc0d072c2b5360b4 (patch)
treee40b17e6ef1ba8ab8867f4b95ec612373f6222c9 /src/profile_window.py
parentf28d5574d05c01d79859c59b6f060fe44aa3b9e5 (diff)
fix profile window
Diffstat (limited to 'src/profile_window.py')
-rw-r--r--src/profile_window.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/profile_window.py b/src/profile_window.py
index 2e698284b..7e7fc76e7 100644
--- a/src/profile_window.py
+++ b/src/profile_window.py
@@ -23,6 +23,7 @@
# THIS FILE IS FOR **OUR** PROFILE (when we edit our INFO)
from gi.repository import Gtk
+from gi.repository import Gdk
from gi.repository import GdkPixbuf
from gi.repository import GObject
import base64
@@ -46,7 +47,7 @@ class ProfileWindow:
def __init__(self, account, transient_for=None):
self.xml = gtkgui_helpers.get_gtk_builder('profile_window.ui')
self.window = self.xml.get_object('profile_window')
- self.set_transient_for(transient_for)
+ self.window.set_transient_for(transient_for)
self.progressbar = self.xml.get_object('progressbar')
self.statusbar = self.xml.get_object('statusbar')
self.context_id = self.statusbar.get_context_id('profile')
@@ -84,7 +85,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):
@@ -288,7 +289,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,
@@ -398,7 +399,7 @@ class ProfileWindow:
if obj.conn.name != self.account:
return
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,