From f0e5b576999844194d647af1eeec2c4e6a663a40 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 27 May 2011 16:37:16 +0200 Subject: [PATCH] widgetpath: Use ref/unref in boxed function This way we avoid lots of copying when using widget paths as properties. Keeping this as a separate patch so bugs where people were modifying a structure they shouldn't are easily visible. --- gtk/gtkwidgetpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c index 52ca7e0570..55085d2fed 100644 --- a/gtk/gtkwidgetpath.c +++ b/gtk/gtkwidgetpath.c @@ -82,7 +82,7 @@ **/ G_DEFINE_BOXED_TYPE (GtkWidgetPath, gtk_widget_path, - gtk_widget_path_copy, gtk_widget_path_free) + gtk_widget_path_ref, gtk_widget_path_unref) typedef struct GtkPathElement GtkPathElement;