diff --git a/Core/core.py b/Core/core.py
index 311124282..9a1c3d03e 100644
--- a/Core/core.py
+++ b/Core/core.py
@@ -458,7 +458,7 @@ class GajimCore:
elif typ == 'error':
errmsg = prs.getError()
errcode = prs.getErrorCode()
- if errcode == '400': #Bad Request : JID Malformed or Private message when not allowed
+ if errcode == '400': #Bad Request: JID Malformed or Private message when not allowed
pass
elif errcode == '401': #No Password Provided
pass
@@ -560,13 +560,13 @@ class GajimCore:
except common.xmlstream.socket.error, e:
log.debug("Couldn't connect to %s %s" % (hostname, e))
self.hub.sendPlugin('STATUS', account, 'offline')
- self.hub.sendPlugin('ERROR', None, _("Couldn't connect to %s : %s") \
+ self.hub.sendPlugin('ERROR', None, _("Couldn't connect to %s: %s") \
% (hostname, e))
return 0
except common.xmlstream.error, e:
log.debug("Couldn't connect to %s %s" % (hostname, e))
self.hub.sendPlugin('STATUS', account, 'offline')
- self.hub.sendPlugin('ERROR', None, _("Couldn't connect to %s : %s") \
+ self.hub.sendPlugin('ERROR', None, _("Couldn't connect to %s: %s") \
% (hostname, e))
return 0
# except:
@@ -852,7 +852,7 @@ class GajimCore:
c.setRegInfo( 'username', ev[2][1])
c.setRegInfo( 'password', ev[2][2])
if not c.sendRegInfo():
- self.hub.sendPlugin('ERROR', None, _('Error : ')+c.lastErr)
+ self.hub.sendPlugin('ERROR', None, _('Error: ')+c.lastErr)
else:
self.connected[ev[2][3]] = 0
self.passwords[ev[2][3]] = ''
diff --git a/plugins/gtkgui/chat.py b/plugins/gtkgui/chat.py
index 310e8c840..b3b588216 100644
--- a/plugins/gtkgui/chat.py
+++ b/plugins/gtkgui/chat.py
@@ -74,7 +74,7 @@ class Chat:
del self.print_time_timeout_id[jid]
else:
for jid in self.xmls:
- if not self.print_time_timeout_id.has_key(jid):
+ if not self.print_time_timeout_id.has_key(pjid):
self.print_time_timeout(jid)
self.print_time_timeout_id[jid] = gobject.timeout_add(300000, \
self.print_time_timeout, jid)
@@ -91,11 +91,15 @@ class Chat:
start = "* "
chat = self.names[jid]
if len(self.xmls) > 1: # if more than one tabs in the same window
- chat = 'Chat'
+ if isinstance(self.window, Tabbed_chat_window):
+ chat = 'Chat'
+ elif isinstance(self.window, Groupchat_window):
+ chat = 'Groupchat'
if len(self.plugin.accounts.keys()) >= 2: # if we have 2 or more accounts
title = start + chat + ' (account: ' + self.account + ')'
else:
title = start + chat
+
self.window.set_title(title)
def redraw_tab(self, jid):
@@ -270,9 +274,6 @@ class Chat:
current = self.notebook.get_current_page()
if current > 0:
self.notebook.set_current_page(current-1)
-# else:
-# self.notebook.set_current_page(\
-# self.notebook.get_n_pages()-1)
elif event.state & gtk.gdk.SHIFT_MASK:
conversation_textview = self.xmls[jid].\
get_widget('conversation_textview')
@@ -285,9 +286,8 @@ class Chat:
current = self.notebook.get_current_page()
if current < (self.notebook.get_n_pages()-1):
self.notebook.set_current_page(current+1)
-# else:
-# self.notebook.set_current_page(0)
elif event.state & gtk.gdk.SHIFT_MASK:
+ print 'yes'
conversation_textview = self.xmls[jid].\
get_widget('conversation_textview')
rect = conversation_textview.get_visible_rect()
diff --git a/plugins/gtkgui/gtkgui.glade b/plugins/gtkgui/gtkgui.glade
index d49de2ff6..2538c136f 100644
--- a/plugins/gtkgui/gtkgui.glade
+++ b/plugins/gtkgui/gtkgui.glade
@@ -7824,7 +7824,7 @@ Custom
303
225
True
- Status Message for
+
GTK_WINDOW_TOPLEVEL
GTK_WIN_POS_NONE
False
@@ -9030,6 +9030,12 @@ send a chat message to
+
+
+
+