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/gtkbuilder.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/gtkbuilder.c')
-rw-r--r-- | gtk/gtkbuilder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c index 7ed026c0a7..97b0053da3 100644 --- a/gtk/gtkbuilder.c +++ b/gtk/gtkbuilder.c @@ -1563,7 +1563,7 @@ gtk_builder_value_from_string_type (GtkBuilder *builder, { GdkRGBA rgba = { 0 }; - if (gdk_rgba_parse (string, &rgba)) + if (gdk_rgba_parse (&rgba, string)) g_value_set_boxed (value, &rgba); else { |