[gtk+] GtkThemingEngine: Fix parameters for gtk_theming_engine_lookup_color()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkThemingEngine: Fix parameters for gtk_theming_engine_lookup_color()
- Date: Sat, 4 Dec 2010 15:28:49 +0000 (UTC)
commit 1c87180d5d22fd52a870d8dcf51cddc146eda2e0
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Dec 4 15:08:35 2010 +0100
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 2b9c4ce..e254161 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 128070e..64b3921 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]