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.
This commit is contained in:
Benjamin Otte 2011-05-27 16:37:16 +02:00
parent 03eb4c38c9
commit f0e5b57699

View File

@ -82,7 +82,7 @@
**/ **/
G_DEFINE_BOXED_TYPE (GtkWidgetPath, gtk_widget_path, 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; typedef struct GtkPathElement GtkPathElement;