[gtk+] widgetpath: Use ref/unref in boxed function
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widgetpath: Use ref/unref in boxed function
- Date: Thu, 2 Jun 2011 00:11:13 +0000 (UTC)
commit f0e5b576999844194d647af1eeec2c4e6a663a40
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]