From 1c87180d5d22fd52a870d8dcf51cddc146eda2e0 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sat, 4 Dec 2010 15:08:35 +0100 Subject: [PATCH] GtkThemingEngine: Fix parameters for gtk_theming_engine_lookup_color() --- gtk/gtkthemingengine.c | 9 ++++----- gtk/gtkthemingengine.h | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index 2b9c4ce8dc..e254161141 100644 --- a/gtk/gtkthemingengine.c +++ b/gtk/gtkthemingengine.c @@ -546,17 +546,16 @@ gtk_theming_engine_get_style (GtkThemingEngine *engine, * gtk_theming_engine_lookup_color: * @engine: a #GtkThemingEngine * @color_name: color name to lookup - * @color: (out) (transfer full): Return location for the looked up color + * @color: (out): Return location for the looked up color * * Looks up and resolves a color name in the current style's color map. - * The returned color must be freed with gdk_rgba_free(). * * Returns: %TRUE if @color_name was found and resolved, %FALSE otherwise **/ gboolean -gtk_theming_engine_lookup_color (GtkThemingEngine *engine, - const gchar *color_name, - GdkRGBA **color) +gtk_theming_engine_lookup_color (GtkThemingEngine *engine, + const gchar *color_name, + GdkRGBA *color) { GtkThemingEnginePrivate *priv; diff --git a/gtk/gtkthemingengine.h b/gtk/gtkthemingengine.h index 128070e068..64b39216e2 100644 --- a/gtk/gtkthemingengine.h +++ b/gtk/gtkthemingengine.h @@ -198,9 +198,9 @@ void gtk_theming_engine_get_style_valist (GtkThemingEngine *engine, void gtk_theming_engine_get_style (GtkThemingEngine *engine, ...); -gboolean gtk_theming_engine_lookup_color (GtkThemingEngine *engine, - const gchar *color_name, - GdkRGBA **color); +gboolean gtk_theming_engine_lookup_color (GtkThemingEngine *engine, + const gchar *color_name, + GdkRGBA *color); G_CONST_RETURN GtkWidgetPath * gtk_theming_engine_get_path (GtkThemingEngine *engine);