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:
authorYann Leboulanger <asterix@lagaule.org>2006-07-19 15:08:25 +0400
committerYann Leboulanger <asterix@lagaule.org>2006-07-19 15:08:25 +0400
commitfd5294bd210c597192850b6014a047b760fe7860 (patch)
tree92143e4ee31501e43fad18ee90362d7948c79892
parent1f93e36844152eb6f02654eeaa31819c86ee89a4 (diff)
fix some bugs with self contact row
-rw-r--r--src/roster_window.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/roster_window.py b/src/roster_window.py
index 31cc0d1c0..841ca0b7e 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -1333,12 +1333,6 @@ class RosterWindow:
remove_from_roster_menuitem = xml.get_widget(
'remove_from_roster_menuitem')
- if our_jid:
- for menuitem in (rename_menuitem, edit_groups_menuitem,
- above_subscription_separator, subscription_menuitem,
- remove_from_roster_menuitem):
- menuitem.set_no_show_all(True)
- menuitem.hide()
# skip a separator
information_menuitem = xml.get_widget('information_menuitem')
history_menuitem = xml.get_widget('history_menuitem')
@@ -1443,6 +1437,14 @@ class RosterWindow:
add_to_roster_menuitem.connect('activate',
self.on_add_to_roster, contact, account)
+ # Remove many items when it's self contact row
+ if our_jid:
+ for menuitem in (rename_menuitem, edit_groups_menuitem,
+ above_subscription_separator, subscription_menuitem,
+ remove_from_roster_menuitem):
+ menuitem.set_no_show_all(True)
+ menuitem.hide()
+
# Unsensitive many items when account is offline
if gajim.connections[account].connected < 2:
for widget in [start_chat_menuitem, send_single_message_menuitem,
@@ -3206,6 +3208,10 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
if gajim.connections[account_dest].connected < 2:
return
+ # drop on self contact row
+ if type_dest == 'self_contact':
+ return
+
if info == self.TARGET_TYPE_URI_LIST:
# User dropped a file on the roster
if len(path_dest) < 3: