]> Pileus Git - ~andy/gtk/commitdiff
widgetpath: Use ref/unref in boxed function
authorBenjamin Otte <otte@redhat.com>
Fri, 27 May 2011 14:37:16 +0000 (16:37 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 2 Jun 2011 00:03:51 +0000 (02:03 +0200)
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

index 52ca7e05701d3347979c25a9f23cbc36062901ac..55085d2fed473a3a2a381412874a1b5b3d16c54d 100644 (file)
@@ -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;