diff options
author | Christian Persch <chpe@gnome.org> | 2010-04-27 13:31:23 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2010-08-18 15:34:47 +0200 |
commit | ffa07ee21eac827d79e58fa565b2faf3ba662c46 (patch) | |
tree | 7244904942279a792e3ee199d6ee6559897711bb /gtk/gtkicontheme.c | |
parent | f730af8360b8785317f5ff5ad75961928c155157 (diff) | |
download | gtk+-ffa07ee21eac827d79e58fa565b2faf3ba662c46.tar.gz |
Use G_DEFINE_BOXED_TYPE
Bug #627214.
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r-- | gtk/gtkicontheme.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index fae73d7fa9..9b84eccafd 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -2598,19 +2598,10 @@ icon_data_free (GtkIconData *icon_data) /* * GtkIconInfo */ -GType -gtk_icon_info_get_type (void) -{ - static GType our_type = 0; - - if (our_type == 0) - our_type = g_boxed_type_register_static (I_("GtkIconInfo"), - (GBoxedCopyFunc) gtk_icon_info_copy, - (GBoxedFreeFunc) gtk_icon_info_free); - - return our_type; -} +G_DEFINE_BOXED_TYPE (GtkIconInfo, gtk_icon_info, + gtk_icon_info_copy, + gtk_icon_info_free) static GtkIconInfo * icon_info_new (void) |