diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-11-28 18:49:47 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-11-28 19:01:51 +0000 |
commit | 1779ae79a13029a4efb77b2ab4b39393a3a9c9b8 (patch) | |
tree | a6a00ed2d8e00b590c959be16b67ae7003308588 /gtk/gtkcellrenderertext.c | |
parent | b0bf2b5202782526edcba678c6239baecf897b16 (diff) | |
download | gtk+-1779ae79a13029a4efb77b2ab4b39393a3a9c9b8.tar.gz |
rgba: Invert the arguments and improve bindability
Since parse() is a method of the Gdk.RGBA class, the GdkRGBA pointer
should be the first argument, and the string the second one, to allow a
more natural binding.
https://bugzilla.gnome.org/show_bug.cgi?id=635879
Diffstat (limited to 'gtk/gtkcellrenderertext.c')
-rw-r--r-- | gtk/gtkcellrenderertext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c index a93f16c9dc..cf58d4dacb 100644 --- a/gtk/gtkcellrenderertext.c +++ b/gtk/gtkcellrenderertext.c @@ -1193,7 +1193,7 @@ gtk_cell_renderer_text_set_property (GObject *object, if (!g_value_get_string (value)) set_bg_color (celltext, NULL); /* reset to background_set to FALSE */ - else if (gdk_rgba_parse (g_value_get_string (value), &rgba)) + else if (gdk_rgba_parse (&rgba, g_value_get_string (value))) set_bg_color (celltext, &rgba); else g_warning ("Don't know color `%s'", g_value_get_string (value)); @@ -1208,7 +1208,7 @@ gtk_cell_renderer_text_set_property (GObject *object, if (!g_value_get_string (value)) set_fg_color (celltext, NULL); /* reset to foreground_set to FALSE */ - else if (gdk_rgba_parse (g_value_get_string (value), &rgba)) + else if (gdk_rgba_parse (&rgba, g_value_get_string (value))) set_fg_color (celltext, &rgba); else g_warning ("Don't know color `%s'", g_value_get_string (value)); |