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 /gdk/gdkrgba.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 'gdk/gdkrgba.c')
-rw-r--r-- | gdk/gdkrgba.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/gdkrgba.c b/gdk/gdkrgba.c index 732cf99190..c2cf2fca31 100644 --- a/gdk/gdkrgba.c +++ b/gdk/gdkrgba.c @@ -115,8 +115,8 @@ parse_rgb_value (const char *str, /** * gdk_rgba_parse: - * @spec: the string specifying the color * @rgba: the #GdkRGBA struct to fill in + * @spec: the string specifying the color * * Parses a textual representation of a color, filling in * the <structfield>red</structfield>, <structfield>green</structfield>, @@ -150,8 +150,8 @@ parse_rgb_value (const char *str, * Since: 3.0 **/ gboolean -gdk_rgba_parse (const gchar *spec, - GdkRGBA *rgba) +gdk_rgba_parse (GdkRGBA *rgba, + const gchar *spec) { gboolean has_alpha; gdouble r, g, b, a; |