Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
4149bcac by Yann Leboulanger at 2018-02-17T18:37:22+01:00
add index on stanza_id column to speed up de-duplication when syncing logs
- - - - -
1 changed file:
- gajim/common/optparser.py
Changes:
=====================================
gajim/common/optparser.py
=====================================
--- a/gajim/common/optparser.py
+++ b/gajim/common/optparser.py
@@ -245,6 +245,8 @@ class OptionsParser:
self.update_config_to_0982()
if old < [0, 98, 3] and new >= [0, 98, 3]:
self.update_config_to_0983()
+ if old < [0, 99, 2] and new >= [0, 99, 2]:
+ self.update_config_to_0992()
app.logger.init_vars()
app.logger.attach_cache_database()
@@ -929,3 +931,12 @@ class OptionsParser:
elif password == "libsecret:":
app.config.set_per('accounts', account, 'password', '')
app.config.set('version', '0.98.3')
+
+ def update_config_to_0992(self):
+ self.call_sql(logger.LOG_DB_PATH,
+ '''
+ CREATE INDEX IF NOT EXISTS
+ idx_logs_stanza_id ON logs (stanza_id);
+ '''
+ )
+ app.config.set('version', '0.99.2')
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/4149bcacb962a04b7aca125b84c0a48753…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/4149bcacb962a04b7aca125b84c0a48753…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
958c898e by Philipp Hörist at 2018-02-16T21:44:12+01:00
Dont mutate THANKS constant
- - - - -
1 changed file:
- gajim/dialogs.py
Changes:
=====================================
gajim/dialogs.py
=====================================
--- a/gajim/dialogs.py
+++ b/gajim/dialogs.py
@@ -1312,7 +1312,7 @@ class AboutDialog(Gtk.AboutDialog):
self.add_credit_section(_('Past Developers'), const.DEVS_PAST)
self.add_credit_section(_('Artists'), const.ARTISTS)
- thanks = const.THANKS
+ thanks = const.THANKS[:]
thanks.append('')
thanks.append(_('Last but not least'))
thanks.append(_('we would like to thank all the package maintainers.'))
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/958c898ed13e26fd020fc2f1b424efb86b…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/958c898ed13e26fd020fc2f1b424efb86b…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
d0cdc068 by Philipp Hörist at 2018-02-16T21:36:24+01:00
Make string translatable
- - - - -
1 changed file:
- gajim/dialogs.py
Changes:
=====================================
gajim/dialogs.py
=====================================
--- a/gajim/dialogs.py
+++ b/gajim/dialogs.py
@@ -1316,7 +1316,7 @@ class AboutDialog(Gtk.AboutDialog):
thanks.append('')
thanks.append(_('Last but not least'))
thanks.append(_('we would like to thank all the package maintainers.'))
- self.add_credit_section('Thanks', thanks)
+ self.add_credit_section(_('Thanks'), thanks)
self.set_translator_credits(_('translator-credits'))
self.set_logo_icon_name('org.gajim.Gajim')
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/d0cdc068032cf282dcd32f862e850e8cdc…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/d0cdc068032cf282dcd32f862e850e8cdc…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
075ceacf by Philipp Hörist at 2018-02-16T20:48:22+01:00
VCard Window: fix URI
Fixes #8902
- - - - -
1 changed file:
- gajim/vcard.py
Changes:
=====================================
gajim/vcard.py
=====================================
--- a/gajim/vcard.py
+++ b/gajim/vcard.py
@@ -188,7 +188,10 @@ class VcardWindow:
if entry_name in ('URL_label',
'EMAIL_WORK_USERID_label',
'EMAIL_HOME_USERID_label'):
- widget.set_uri('mailto:' + value)
+ if entry_name == 'URL_label':
+ widget.set_uri(value)
+ else:
+ widget.set_uri('mailto:' + value)
widget.set_label(value)
self.xml.get_object(entry_name).show()
else:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/075ceacf4949910596e6a55f5dc698401b…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/075ceacf4949910596e6a55f5dc698401b…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a2caafa7 by Philipp Hörist at 2018-02-14T20:10:56+01:00
Dont show avatars as Window icon
Avatars are now Surfaces, Gtk.Window has no method yet to add Surfaces
as icons.
Transforming them back to pixbufs is not viable because pixbufs cant hold
the scale information, and we have no way to set it.
This was only used with single chat windows, which is a mode that came
out of style and is probably not used often anymore.
Fixes #8895
- - - - -
1 changed file:
- gajim/message_window.py
Changes:
=====================================
gajim/message_window.py
=====================================
--- a/gajim/message_window.py
+++ b/gajim/message_window.py
@@ -469,31 +469,13 @@ class MessageWindow(object):
def show_icon(self):
window_mode = app.interface.msg_win_mgr.mode
- icon = None
- if window_mode == MessageWindowMgr.ONE_MSG_WINDOW_NEVER:
- ctrl = self.get_active_control()
- if not ctrl:
- return
- icon = ctrl.get_tab_image(count_unread=False)
- elif window_mode == MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS:
- pass # keep default icon
- elif window_mode == MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER:
- pass # keep default icon
- elif window_mode == MessageWindowMgr.ONE_MSG_WINDOW_PERACCT:
- pass # keep default icon
- elif window_mode == MessageWindowMgr.ONE_MSG_WINDOW_PERTYPE:
+ icon = 'org.gajim.Gajim'
+ if window_mode in (MessageWindowMgr.ONE_MSG_WINDOW_PERTYPE,
+ MessageWindowMgr.ONE_MSG_WINDOW_NEVER):
if self.type_ == 'gc':
icon = gtkgui_helpers.get_iconset_name_for('muc-active')
- else:
- # chat, pm
- icon = 'org.gajim.Gajim'
- if icon:
- if isinstance(icon, GdkPixbuf.Pixbuf):
- self.window.set_icon(icon)
- elif isinstance(icon, str):
- self.window.set_icon_name(icon)
- else:
- self.window.set_icon(icon.get_pixbuf())
+
+ self.window.set_icon_name(icon)
def show_title(self, urgent=True, control=None):
"""
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a2caafa72c45d3563df310abd7eec4cf9e…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a2caafa72c45d3563df310abd7eec4cf9e…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch gajim_1.0 at gajim / gajim
Commits:
4caf1ffe by Philipp Hörist at 2018-02-14T20:09:34+01:00
Dont show avatars as Window icon
Avatars are now Surfaces, Gtk.Window has no method yet to add Surfaces
as icons.
Transforming them back to pixbufs is not viable because pixbufs cant hold
the scale information, and we have no way to set it.
This was only used with single chat windows, which is a mode that came
out of style and is probably not used often anymore.
Fixes #8895
- - - - -
1 changed file:
- gajim/message_window.py
Changes:
=====================================
gajim/message_window.py
=====================================
--- a/gajim/message_window.py
+++ b/gajim/message_window.py
@@ -469,31 +469,13 @@ class MessageWindow(object):
def show_icon(self):
window_mode = app.interface.msg_win_mgr.mode
- icon = None
- if window_mode == MessageWindowMgr.ONE_MSG_WINDOW_NEVER:
- ctrl = self.get_active_control()
- if not ctrl:
- return
- icon = ctrl.get_tab_image(count_unread=False)
- elif window_mode == MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS:
- pass # keep default icon
- elif window_mode == MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER:
- pass # keep default icon
- elif window_mode == MessageWindowMgr.ONE_MSG_WINDOW_PERACCT:
- pass # keep default icon
- elif window_mode == MessageWindowMgr.ONE_MSG_WINDOW_PERTYPE:
+ icon = 'org.gajim.Gajim'
+ if window_mode in (MessageWindowMgr.ONE_MSG_WINDOW_PERTYPE,
+ MessageWindowMgr.ONE_MSG_WINDOW_NEVER):
if self.type_ == 'gc':
icon = gtkgui_helpers.get_iconset_name_for('muc-active')
- else:
- # chat, pm
- icon = 'org.gajim.Gajim'
- if icon:
- if isinstance(icon, GdkPixbuf.Pixbuf):
- self.window.set_icon(icon)
- elif isinstance(icon, str):
- self.window.set_icon_name(icon)
- else:
- self.window.set_icon(icon.get_pixbuf())
+
+ self.window.set_icon_name(icon)
def show_title(self, urgent=True, control=None):
"""
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/4caf1ffe59951cf3d2a08b304353626067…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/4caf1ffe59951cf3d2a08b304353626067…
You're receiving this email because of your account on dev.gajim.org.