[empathy: 3/11] status-preset-dialog: use new GTK+ style API (#636500)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 3/11] status-preset-dialog: use new GTK+ style API (#636500)
- Date: Wed, 15 Dec 2010 16:02:05 +0000 (UTC)
commit 554b78890fd7c8c2b392c335ab3f49c7bc756b8a
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Dec 7 09:53:48 2010 +0100
status-preset-dialog: use new GTK+ style API (#636500)
libempathy-gtk/empathy-status-preset-dialog.c | 8 ++++----
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 957a17d..2c36cb3 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++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]