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:
authorYann Leboulanger <asterix@lagaule.org>2015-07-30 16:18:03 +0300
committerYann Leboulanger <asterix@lagaule.org>2015-07-30 16:18:03 +0300
commit9287ad96b016fb80f27b8c82951ccf5480b9f4fa (patch)
treec8114951afd24db0fceb5e7e01454b247a89e431 /src/gajim_themes_window.py
parent5c0fce96680c1a6cd3c398bda118ecc6ab5cdd3b (diff)
fix some warnings
Diffstat (limited to 'src/gajim_themes_window.py')
-rw-r--r--src/gajim_themes_window.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gajim_themes_window.py b/src/gajim_themes_window.py
index 0f3730d1f..f25fb1bce 100644
--- a/src/gajim_themes_window.py
+++ b/src/gajim_themes_window.py
@@ -199,7 +199,9 @@ class GajimThemesWindow:
textcolor = gajim.config.get_per('themes', theme, option + 'textcolor')
if textcolor:
state = True
- self.text_colorbutton.set_color(Gdk.color_parse(textcolor))
+ rgba = Gdk.RGBA()
+ rgba.parse(textcolor)
+ self.text_colorbutton.set_rgba(rgba)
else:
state = False
self.textcolor_checkbutton.set_active(state)
@@ -207,8 +209,9 @@ class GajimThemesWindow:
bgcolor = gajim.config.get_per('themes', theme, option + 'bgcolor')
if bgcolor:
state = True
- self.background_colorbutton.set_color(Gdk.color_parse(
- bgcolor))
+ rgba = Gdk.RGBA()
+ rgba.parse(bgcolor)
+ self.background_colorbutton.set_rgba(rgba)
else:
state = False
self.background_checkbutton.set_active(state)
@@ -232,7 +235,9 @@ class GajimThemesWindow:
'muc_msg', 'muc_directed_msg'):
color = gajim.config.get_per('themes', theme, 'state_' + chatstate + \
'_color')
- self.colorbuttons[chatstate].set_color(Gdk.color_parse(color))
+ rgba = Gdk.RGBA()
+ rgba.parse(color)
+ self.colorbuttons[chatstate].set_rgba(rgba)
def on_textcolor_checkbutton_toggled(self, widget):
state = widget.get_active()