aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-07 16:53:48 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-15 23:38:22 +0800
commit554b78890fd7c8c2b392c335ab3f49c7bc756b8a (patch)
treeebc07dadc6db323933ec15f3ebd0ff14ed1065da /libempathy-gtk
parent3951d3a3c1a7181bee75cc963711ea1900949c02 (diff)
downloadgsoc2013-empathy-554b78890fd7c8c2b392c335ab3f49c7bc756b8a.tar
gsoc2013-empathy-554b78890fd7c8c2b392c335ab3f49c7bc756b8a.tar.gz
gsoc2013-empathy-554b78890fd7c8c2b392c335ab3f49c7bc756b8a.tar.bz2
gsoc2013-empathy-554b78890fd7c8c2b392c335ab3f49c7bc756b8a.tar.lz
gsoc2013-empathy-554b78890fd7c8c2b392c335ab3f49c7bc756b8a.tar.xz
gsoc2013-empathy-554b78890fd7c8c2b392c335ab3f49c7bc756b8a.tar.zst
gsoc2013-empathy-554b78890fd7c8c2b392c335ab3f49c7bc756b8a.zip
status-preset-dialog: use new GTK+ style API (#636500)
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-status-preset-dialog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-status-preset-dialog.c b/libempathy-gtk/empathy-status-preset-dialog.c
index 957a17d58..2c36cb332 100644
--- a/libempathy-gtk/empathy-status-preset-dialog.c
+++ b/libempathy-gtk/empathy-status-preset-dialog.c
@@ -351,12 +351,12 @@ status_preset_dialog_set_add_combo_changed (EmpathyStatusPresetDialog *self,
gtk_widget_set_sensitive (priv->add_button, state);
if (state) {
- gtk_widget_modify_text (entry, GTK_STATE_NORMAL, NULL);
+ gtk_widget_override_color (entry, 0, NULL);
} else {
- GdkColor colour;
+ GdkRGBA color;
- gdk_color_parse ("Gray", &colour); /* FIXME - theme */
- gtk_widget_modify_text (entry, GTK_STATE_NORMAL, &colour);
+ if (gdk_rgba_parse (&color, "Gray")) /* FIXME - theme */
+ gtk_widget_override_color (entry, 0, &color);
if (reset_text) {
priv->block_add_combo_changed++;