diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-04-09 02:50:52 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-04-13 07:44:12 +0200 |
commit | af0a7aea5f6fc508ef0f5dd83babc39dc61225c6 (patch) | |
tree | 67efded3ef75f23d5515f7bd2a4106629aacdddc /gtk | |
parent | 9f6e03f2310762f437e298208182098e0fdad86d (diff) | |
download | gtk+-af0a7aea5f6fc508ef0f5dd83babc39dc61225c6.tar.gz |
Use G_DEFINE_INTERFACE macro in gtkbuildable
https://bugzilla.gnome.org/show_bug.cgi?id=605186
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkbuildable.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gtk/gtkbuildable.c b/gtk/gtkbuildable.c index d3a8d8e442..299e5b47a8 100644 --- a/gtk/gtkbuildable.c +++ b/gtk/gtkbuildable.c @@ -25,18 +25,13 @@ #include "gtkintl.h" #include "gtkalias.h" -GType -gtk_buildable_get_type (void) -{ - static GType buildable_type = 0; - if (!buildable_type) - buildable_type = - g_type_register_static_simple (G_TYPE_INTERFACE, I_("GtkBuildable"), - sizeof (GtkBuildableIface), - NULL, 0, NULL, 0); +typedef GtkBuildableIface GtkBuildableInterface; +G_DEFINE_INTERFACE (GtkBuildable, gtk_buildable, G_TYPE_OBJECT) - return buildable_type; +static void +gtk_buildable_default_init (GtkBuildableInterface *iface) +{ } /** |