Commit f84c124e authored by Javier Jardón's avatar Javier Jardón

gtk/gtkcellview.c: Use new GdkRGBA api instead GdkColor one

parent e2463453
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment