[gtk+/nth-child: 17/33] widgetpath: Use ref/unref in boxed function



commit 2a4726d7455362e123591cd1074e5bc14927540f
Author: Benjamin Otte <otte redhat com>
Date:   Fri May 27 16:37:16 2011 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c
index 52ca7e0..55085d2 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]