From 656b05078a91ef38f4ac59668b97e2395d3d9e9e Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Fri, 22 Apr 2005 01:49:31 +0000 Subject: [PATCH] use the helper function to create color_string --- src/config.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/config.py b/src/config.py index a3eb82a27..2858ddeae 100644 --- a/src/config.py +++ b/src/config.py @@ -113,9 +113,6 @@ class Preferences_window: def on_roster_widget_color_set(self, widget, text): color = widget.get_color() color_string = mk_color_string(color) - color_string = '#' + (hex(color.red) + '0')[2:4] + \ - (hex(color.green) + '0')[2:4] + \ - (hex(color.blue) + '0')[2:4] gajim.config.set(text, color_string) self.plugin.roster.draw_roster() self.plugin.save_config() @@ -247,9 +244,7 @@ class Preferences_window: def on_preference_widget_color_set(self, widget, text): color = widget.get_color() - color_string = '#' + (hex(color.red) + '0')[2:4] + \ - (hex(color.green) + '0')[2:4] + \ - (hex(color.blue) + '0')[2:4] + color_string = mk_color_string(color) gajim.config.set(text, color_string) self.update_text_tags() self.plugin.save_config()