Changeset 8724 for branches/gajim_0.11.1/src
- Timestamp:
- 09/05/07 13:44:05 (15 months ago)
- Location:
- branches/gajim_0.11.1/src
- Files:
-
- 6 modified
-
common/connection_handlers.py (modified) (2 diffs)
-
common/connection.py (modified) (1 diff)
-
config.py (modified) (1 diff)
-
dialogs.py (modified) (1 diff)
-
groupchat_control.py (modified) (2 diffs)
-
roster_window.py (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11.1/src/common/connection_handlers.py
r8711 r8724 1040 1040 self.dispatch('METACONTACTS', meta_list) 1041 1041 else: 1042 self. metacontacts_supported = False1042 self.private_storage_supported = False 1043 1043 # We can now continue connection by requesting the roster 1044 1044 self.connection.initRoster() … … 1248 1248 ns = storage_tag.getNamespace() 1249 1249 if ns == 'storage:metacontacts': 1250 self. metacontacts_supported = False1250 self.private_storage_supported = False 1251 1251 # Private XML Storage (XEP49) is not supported by server 1252 1252 # Continue connecting -
branches/gajim_0.11.1/src/common/connection.py
r8711 r8724 98 98 # server {'icq': ['icq.server.com', 'icq2.server.com'], } 99 99 self.vcard_supported = True 100 self. metacontacts_supported = True100 self.private_storage_supported = True 101 101 # END __init__ 102 102 -
branches/gajim_0.11.1/src/config.py
r8708 r8724 2484 2484 if gajim.connections[account].is_zeroconf: 2485 2485 continue 2486 iter = self.treestore.append(None, [None, account,None, 2486 if not gajim.connections[account].private_storage_supported: 2487 continue 2488 iter = self.treestore.append(None, [None, account, None, 2487 2489 None, None, None, None]) 2488 2490 -
branches/gajim_0.11.1/src/dialogs.py
r8698 r8724 1191 1191 self.xml.get_widget('join_button').set_sensitive(False) 1192 1192 1193 if not gajim.connections[account].private_storage_supported: 1194 self.xml.get_widget('auto_join_checkbutton').set_sensitive(False) 1195 1193 1196 self.window.show_all() 1194 1197 -
branches/gajim_0.11.1/src/groupchat_control.py
r8722 r8724 216 216 xm = gtkgui_helpers.get_glade('gc_control_popup_menu.glade') 217 217 218 widget= xm.get_widget('bookmark_room_menuitem')219 id = widget.connect('activate',218 self.bookmark_room_menuitem = xm.get_widget('bookmark_room_menuitem') 219 id = self.bookmark_room_menuitem.connect('activate', 220 220 self._on_bookmark_room_menuitem_activate) 221 self.handlers[id] = widget221 self.handlers[id] = self.bookmark_room_menuitem 222 222 223 223 widget = xm.get_widget('change_nick_menuitem') … … 482 482 # hide chat buttons 483 483 childs[5].set_active(self.hide_chat_buttons_current) 484 if not gajim.connections[self.account].private_storage_supported: 485 self.bookmark_room_menuitem.set_sensitive(False) 484 486 if gajim.gc_connected[self.account][self.room_jid]: 485 487 c = gajim.contacts.get_gc_contact(self.account, self.room_jid, -
branches/gajim_0.11.1/src/roster_window.py
r8719 r8724 871 871 872 872 connected_accounts = gajim.get_number_of_connected_accounts() 873 874 connected_accounts_with_private_storage = 0 875 873 876 if connected_accounts > 1: # 2 or more accounts? make submenus 874 877 add_sub_menu = gtk.Menu() … … 894 897 895 898 # join gc 899 if gajim.connections[account].private_storage_supported: 900 connected_accounts_with_private_storage += 1 896 901 label = gtk.Label() 897 902 label.set_markup('<u>' + account.upper() +'</u>') … … 901 906 gc_item.connect('state-changed', 902 907 gtkgui_helpers.on_bm_header_changed_state) 908 gc_item = gtk.MenuItem(_('using account %s') % account, False) 903 909 gc_sub_menu.append(gc_item) 904 910 905 911 self.add_bookmarks_list(gc_sub_menu, account) 906 907 # the 'manage gc bookmarks' item is shown908 # below to avoid duplicate code909 912 910 913 # add … … 918 921 disco_item.connect('activate', 919 922 self.on_service_disco_menuitem_activate, account) 920 921 923 922 924 add_new_contact_menuitem.set_submenu(add_sub_menu) … … 931 933 if gajim.account_is_connected(account): # THE connected account 932 934 # gc 935 if gajim.connections[account].private_storage_supported: 936 connected_accounts_with_private_storage += 1 933 937 self.add_bookmarks_list(gc_sub_menu, account) 938 gc_sub_menu.show_all() 934 939 # add 935 940 if not self.add_new_contact_handler_id: … … 975 980 item.set_sensitive(False) 976 981 982 if connected_accounts_with_private_storage > 0: 983 # At least one account with private storage support 977 984 # show the 'manage gc bookmarks' item 978 985 newitem = gtk.SeparatorMenuItem() # separator 979 986 gc_sub_menu.append(newitem) 987 988 newitem = gtk.ImageMenuItem(_('_Manage Bookmarks...')) 989 img = gtk.image_new_from_stock(gtk.STOCK_PREFERENCES, 990 gtk.ICON_SIZE_MENU) 991 newitem.set_image(img) 992 newitem.connect('activate', 993 self.on_manage_bookmarks_menuitem_activate) 994 gc_sub_menu.append(newitem) 995 gc_sub_menu.show_all() 980 996 981 997 connected_accounts_with_vcard = [] … … 1009 1025 profile_avatar_menuitem.set_sensitive(True) 1010 1026 1011 newitem = gtk.ImageMenuItem(_('_Manage Bookmarks...'))1012 img = gtk.image_new_from_stock(gtk.STOCK_PREFERENCES,1013 gtk.ICON_SIZE_MENU)1014 newitem.set_image(img)1015 newitem.connect('activate',1016 self.on_manage_bookmarks_menuitem_activate)1017 gc_sub_menu.append(newitem)1018 gc_sub_menu.show_all()1019 1020 1027 # Advanced Actions 1021 1028 if len(gajim.connections) == 0: # user has no accounts … … 4034 4041 def on_drop_in_contact(self, widget, account_source, c_source, account_dest, 4035 4042 c_dest, was_big_brother, context, etime): 4036 if not gajim.connections[account_source]. metacontacts_supported or not\4037 gajim.connections[account_dest]. metacontacts_supported:4043 if not gajim.connections[account_source].private_storage_supported or not\ 4044 gajim.connections[account_dest].private_storage_supported: 4038 4045 dialogs.WarningDialog(_('Metacontacts storage not supported by your ' 4039 4046 'server'),
