From f832e3484d146343e6f6bf4b36c4f19746f521f2 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sat, 2 Mar 2002 19:11:47 +0000 Subject: Switch style of stamp file usage. Sat Mar 2 13:26:58 2002 Owen Taylor * gtk/Makefile.am: Switch style of stamp file usage. * gtk/Makefile.am gtk/typeutils.[ch]: Switch all the exported enumeration/fags TYPE variables over to macros for get_type() functions, for lazy definition and to get rid of expensive relocations. * gtk/gtkiconfactory.[ch] gtk/gtkselection.[ch] gtk/gtkstyle.[ch] gtk/gtktextiter.[ch] gtk/gtktexttag.[ch] gtk/gtktreemodel.[ch] gtk/gtktypeutils.[ch] gtk/gtkwidget.[ch]: Switch boxed type definitions over manually coded get_type() functions. * gtk/gtk.def: Updates for above * gtk/{genmarshal.pl,makeenums.awk,makeenums.h,maketypes.awk}: Remove from CVS, no longer used. * configure.in: Remove checks for awk. --- gtk/gtktreemodel.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gtk/gtktreemodel.c') diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c index 7a62b1e144..ece4ed2519 100644 --- a/gtk/gtktreemodel.c +++ b/gtk/gtktreemodel.c @@ -358,6 +358,19 @@ gtk_tree_path_copy (GtkTreePath *path) return retval; } +GType +gtk_tree_path_get_type (void) +{ + static GType our_type = 0; + + if (our_type == 0) + our_type = g_boxed_type_register_static ("GtkTypeTreePath", + (GBoxedCopyFunc) gtk_tree_path_copy, + (GBoxedFreeFunc) gtk_tree_path_free); + + return our_type; +} + /** * gtk_tree_path_compare: * @a: A #GtkTreePath. @@ -569,6 +582,19 @@ gtk_tree_iter_free (GtkTreeIter *iter) g_free (iter); } +GType +gtk_tree_iter_get_type (void) +{ + static GType our_type = 0; + + if (our_type == 0) + our_type = g_boxed_type_register_static ("GtkTypeTreeIter", + (GBoxedCopyFunc) gtk_tree_iter_copy, + (GBoxedFreeFunc) gtk_tree_iter_free); + + return our_type; +} + /** * gtk_tree_model_get_flags: * @tree_model: A #GtkTreeModel. -- cgit v1.2.1