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:
-rw-r--r--ChangeLog7
-rw-r--r--debian/changelog4
-rw-r--r--gajim.nsi2
-rw-r--r--setup_osx.py2
-rw-r--r--setup_win32.py2
-rw-r--r--src/systray.py79
6 files changed, 63 insertions, 33 deletions
diff --git a/ChangeLog b/ChangeLog
index 19a5fa40f..2c0637605 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Gajim 0.12.1 (21 December 2008)
+
+ * Fix filetransfer
+ * Updated german translation
+ * Fix click on notifications when text string is empty
+ * Improve systray popup menu
+
Gajim 0.12 (17 December 2008)
* Fix text rendering in notifications
diff --git a/debian/changelog b/debian/changelog
index 962433b31..1db2d4093 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-gajim (0.12-1) unstable; urgency=low
+gajim (0.12.1-1) unstable; urgency=low
* New upstream release.
* Fix coming back from suspend. Closes: #500523
@@ -15,7 +15,7 @@ gajim (0.12-1) unstable; urgency=low
* Depends on libc6 for gtkspell.so module
* Build Gajim modules against python2.5
- -- Yann Leboulanger <asterix@lagaule.org> Wed, 17 Dec 2008 10:02:52 +0100
+ -- Yann Leboulanger <asterix@lagaule.org> Wed, 21 Dec 2008 14:40:16 +0100
gajim (0.11.4-1) unstable; urgency=low
diff --git a/gajim.nsi b/gajim.nsi
index debe01619..25ff967c9 100644
--- a/gajim.nsi
+++ b/gajim.nsi
@@ -189,7 +189,7 @@ Section "Gajim" SecGajim
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim" "DisplayName" "Gajim"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim" "UninstallString" "$INSTDIR\Uninstall.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim" "DisplayIcon" "$INSTDIR\bin\Gajim.exe"
- WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim" "DisplayVersion" "0.12"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim" "DisplayVersion" "0.12.1"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim" "URLInfoAbout" "http://www.gajim.org/"
WriteUninstaller "$INSTDIR\Uninstall.exe"
diff --git a/setup_osx.py b/setup_osx.py
index 131697fd6..29dabd522 100644
--- a/setup_osx.py
+++ b/setup_osx.py
@@ -35,7 +35,7 @@ from shutil import move, copy, copytree, rmtree
GTK_DIR="/Library/Frameworks/GTK+.framework/Versions/Current"
NAME = 'Gajim'
-VERSION = '0.12'
+VERSION = '0.12.1'
DESCRIPTION = 'A full featured Jabber client'
AUTHOR = 'Gajim Development Team'
URL = 'http://www.gajim.org/'
diff --git a/setup_win32.py b/setup_win32.py
index 0b1ec0da7..cfb012649 100644
--- a/setup_win32.py
+++ b/setup_win32.py
@@ -71,7 +71,7 @@ opts = {
setup(
name = 'Gajim',
- version = '0.12',
+ version = '0.12.1',
description = 'A full featured Jabber client',
author = 'Gajim Development Team',
url = 'http://www.gajim.org/',
diff --git a/src/systray.py b/src/systray.py
index 338dc6f5e..84f2c887f 100644
--- a/src/systray.py
+++ b/src/systray.py
@@ -185,6 +185,8 @@ class Systray:
if connected_accounts < 1:
item.set_sensitive(False)
+ connected_accounts_with_private_storage = 0
+
item = gtk.SeparatorMenuItem()
sub_menu.append(item)
@@ -200,57 +202,76 @@ class Systray:
single_message_menuitem.set_sensitive(iskey)
join_gc_menuitem.set_sensitive(iskey)
- if connected_accounts >= 2: # 2 or more connections? make submenus
+ accounts_list = sorted(gajim.contacts.get_accounts())
+ # items that get shown whether an account is zeroconf or not
+ if connected_accounts > 1: # 2 or more connections? make submenus
account_menu_for_chat_with = gtk.Menu()
chat_with_menuitem.set_submenu(account_menu_for_chat_with)
self.popup_menus.append(account_menu_for_chat_with)
- account_menu_for_single_message = gtk.Menu()
- single_message_menuitem.set_submenu(
- account_menu_for_single_message)
- self.popup_menus.append(account_menu_for_single_message)
-
- accounts_list = sorted(gajim.contacts.get_accounts())
for account in accounts_list:
- if gajim.connections[account].is_zeroconf:
- continue
- if gajim.connections[account].connected > 1:
+ if gajim.account_is_connected(account):
# for chat_with
item = gtk.MenuItem(_('using account %s') % account)
account_menu_for_chat_with.append(item)
item.connect('activate', self.on_new_chat, account)
- # for single message
- item = gtk.MenuItem(_('using account %s') % account)
- item.connect('activate',
- self.on_single_message_menuitem_activate, account)
- account_menu_for_single_message.append(item)
-
- # join gc
- gc_item = gtk.MenuItem(_('using account %s') % account, False)
- gc_sub_menu.append(gc_item)
- gc_menuitem_menu = gtk.Menu()
- gajim.interface.roster.add_bookmarks_list(gc_menuitem_menu,
- account)
- gc_item.set_submenu(gc_menuitem_menu)
- gc_sub_menu.show_all()
-
elif connected_accounts == 1: # one account
# one account connected, no need to show 'as jid'
for account in gajim.connections:
if gajim.connections[account].connected > 1:
+ # for start chat
self.new_chat_handler_id = chat_with_menuitem.connect(
- 'activate', self.on_new_chat, account)
+ 'activate', self.on_new_chat, account)
+ break # No other connected account
+
+ # menu items that don't apply to zeroconf connections
+ if connected_accounts == 1 or (connected_accounts == 2 and \
+ gajim.zeroconf_is_connected()):
+ # only one 'real' (non-zeroconf) account is connected, don't need
+ # submenus
+ for account in gajim.connections:
+ if gajim.account_is_connected(account) and \
+ not gajim.config.get_per('accounts', account, 'is_zeroconf'):
+ if gajim.connections[account].private_storage_supported:
+ connected_accounts_with_private_storage += 1
+
# for single message
single_message_menuitem.remove_submenu()
self.single_message_handler_id = single_message_menuitem.\
connect('activate',
self.on_single_message_menuitem_activate, account)
-
# join gc
gajim.interface.roster.add_bookmarks_list(gc_sub_menu,
account)
- break # No other connected account
+ break # No other account connected
+ else:
+ # 2 or more 'real' accounts are connected, make submenus
+ account_menu_for_single_message = gtk.Menu()
+ single_message_menuitem.set_submenu(
+ account_menu_for_single_message)
+ self.popup_menus.append(account_menu_for_single_message)
+
+ for account in accounts_list:
+ if gajim.connections[account].is_zeroconf or \
+ not gajim.account_is_connected(account):
+ continue
+ if gajim.connections[account].private_storage_supported:
+ connected_accounts_with_private_storage += 1
+ # for single message
+ item = gtk.MenuItem(_('using account %s') % account)
+ item.connect('activate',
+ self.on_single_message_menuitem_activate, account)
+ account_menu_for_single_message.append(item)
+
+ # join gc
+ gc_item = gtk.MenuItem(_('using account %s') % account, False)
+ gc_sub_menu.append(gc_item)
+ gc_menuitem_menu = gtk.Menu()
+ gajim.interface.roster.add_bookmarks_list(gc_menuitem_menu,
+ account)
+ gc_item.set_submenu(gc_menuitem_menu)
+ gc_sub_menu.show_all()
newitem = gtk.SeparatorMenuItem() # separator
gc_sub_menu.append(newitem)
@@ -260,6 +281,8 @@ class Systray:
newitem.connect('activate',
gajim.interface.roster.on_manage_bookmarks_menuitem_activate)
gc_sub_menu.append(newitem)
+ if connected_accounts_with_private_storage == 0:
+ newitem.set_sensitive(False)
sounds_mute_menuitem.set_active(not gajim.config.get('sounds_on'))