[gtk+] gtk/gtkcellview.c: Use new GdkRGBA api instead GdkColor one
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/gtkcellview.c: Use new GdkRGBA api instead GdkColor one
- Date: Tue, 20 Dec 2011 18:32:39 +0000 (UTC)
commit f84c124e53c0136becfc06b8df0251c70e3a5aa1
Author: Javier JardÃn <jjardon gnome org>
Date: Mon Dec 19 13:48:16 2011 +0000
gtk/gtkcellview.c: Use new GdkRGBA api instead GdkColor one
gtk/gtkcellview.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 4a86a93..b6ce31f 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -440,16 +440,17 @@ gtk_cell_view_set_property (GObject *object,
break;
case PROP_BACKGROUND:
{
- GdkColor color;
-
+ GdkRGBA color;
+
if (!g_value_get_string (value))
- gtk_cell_view_set_background_color (view, NULL);
- else if (gdk_color_parse (g_value_get_string (value), &color))
- gtk_cell_view_set_background_color (view, &color);
+ gtk_cell_view_set_background_rgba (view, NULL);
+ else if (gdk_rgba_parse (&color, g_value_get_string (value)))
+ gtk_cell_view_set_background_rgba (view, &color);
else
g_warning ("Don't know color `%s'", g_value_get_string (value));
-
- g_object_notify (object, "background-gdk");
+
+ g_object_notify (object, "background-rgba");
+ g_object_notify (object, "background-gdk");
}
break;
case PROP_BACKGROUND_GDK:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]