Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2018-01-04 15:44:04 +0300
committerYann Leboulanger <asterix@lagaule.org>2018-01-04 15:44:04 +0300
commitd3ee6070227ce10db9c8b7db514a411157a8ae75 (patch)
treed033e1434bdf1dab068a15668228658911a46033
parent6aaf78564e243d6afdb82076822f6fc83b2bf5e1 (diff)
parentcd3b01001d0d6040d971962e08bae87263f23028 (diff)
Merge branch 'fix_chatstate' into 'master'
[chatstate] fix color converting from gtk floats See merge request gajim/gajim-plugins!59
-rw-r--r--chatstate/chatstate.py7
-rw-r--r--chatstate/manifest.ini4
2 files changed, 6 insertions, 5 deletions
diff --git a/chatstate/chatstate.py b/chatstate/chatstate.py
index b18ef0e..dc4d49a 100644
--- a/chatstate/chatstate.py
+++ b/chatstate/chatstate.py
@@ -34,7 +34,7 @@ class ChatstatePlugin(GajimPlugin):
self.description = _('Chat State Notifications in roster.'
'Font color of the contact varies depending on the chat state.\n'
'The plugin does not work if you use custom font color for contacts in roster.\n'
-'http://trac.gajim.org/ticket/3628.\nhttp://xmpp.org/extensions/xep-0085.html')
+'https://dev.gajim.org/gajim/gajim/issues/3628\nhttp://xmpp.org/extensions/xep-0085.html')
self.config_dialog = None # ChatstatePluginConfigDialog(self)
self.events_handlers = {'chatstate-received':
(ged.GUI2, self.chatstate_received), }
@@ -89,8 +89,9 @@ class ChatstatePlugin(GajimPlugin):
def activate(self):
color = gtkgui_helpers.get_fade_color(app.interface.roster.tree,
False, False)
- self.status_color = '#%04x%04x%04x' % (color.red, color.green,
- color.blue)
+ self.status_color = '#%02x%02x%02x' % (int(color.red * 255),
+ int(color.green * 255),
+ int(color.blue * 255))
theme = app.config.get('roster_theme')
self.chatstates = {'active': app.config.get('inmsgcolor'),
'composing': app.config.get_per('themes', theme,
diff --git a/chatstate/manifest.ini b/chatstate/manifest.ini
index 37dbfb7..1ff1503 100644
--- a/chatstate/manifest.ini
+++ b/chatstate/manifest.ini
@@ -1,10 +1,10 @@
[info]
name: Chatstate in roster
short_name: chatstate
-version: 0.5.3
+version: 0.5.4
description: Chat State Notifications in roster.
Font color of the contact varies depending on the chat state.
The plugin does not work if you use custom font color for contacts in roster.
authors = Denis Fomin <fominde@gmail.com>
-homepage = http://trac-plugins.gajim.org/wiki/ChatstatePlugin
+homepage = https://dev.gajim.org/gajim/gajim-plugins/wikis/ChatstatePlugin
min_gajim_version: 0.16.11