forked from AuroraMiddleware/gtk
gtk/gtkcellview.c: Use new GdkRGBA api instead GdkColor one
This commit is contained in:
parent
e24634537e
commit
f84c124e53
@ -440,15 +440,16 @@ gtk_cell_view_set_property (GObject *object,
|
|||||||
break;
|
break;
|
||||||
case PROP_BACKGROUND:
|
case PROP_BACKGROUND:
|
||||||
{
|
{
|
||||||
GdkColor color;
|
GdkRGBA color;
|
||||||
|
|
||||||
if (!g_value_get_string (value))
|
if (!g_value_get_string (value))
|
||||||
gtk_cell_view_set_background_color (view, NULL);
|
gtk_cell_view_set_background_rgba (view, NULL);
|
||||||
else if (gdk_color_parse (g_value_get_string (value), &color))
|
else if (gdk_rgba_parse (&color, g_value_get_string (value)))
|
||||||
gtk_cell_view_set_background_color (view, &color);
|
gtk_cell_view_set_background_rgba (view, &color);
|
||||||
else
|
else
|
||||||
g_warning ("Don't know color `%s'", g_value_get_string (value));
|
g_warning ("Don't know color `%s'", g_value_get_string (value));
|
||||||
|
|
||||||
|
g_object_notify (object, "background-rgba");
|
||||||
g_object_notify (object, "background-gdk");
|
g_object_notify (object, "background-gdk");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user