[gtk+] gtk/gtkcelllayout.c: Use G_DEFINE_INTERFACE macro
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/gtkcelllayout.c: Use G_DEFINE_INTERFACE macro
- Date: Wed, 25 Aug 2010 22:44:23 +0000 (UTC)
commit 24fedeccaccae59a8dc1b8c6e33cd8a3f9a4a32f
Author: Javier Jardón <jjardon gnome org>
Date: Wed Aug 25 21:58:37 2010 +0200
gtk/gtkcelllayout.c: Use G_DEFINE_INTERFACE macro
gtk/gtkcelllayout.c | 31 +++++--------------------------
1 files changed, 5 insertions(+), 26 deletions(-)
---
diff --git a/gtk/gtkcelllayout.c b/gtk/gtkcelllayout.c
index 985457b..86e8e39 100644
--- a/gtk/gtkcelllayout.c
+++ b/gtk/gtkcelllayout.c
@@ -25,34 +25,13 @@
#include "gtkintl.h"
-GType
-gtk_cell_layout_get_type (void)
-{
- static GType cell_layout_type = 0;
+typedef GtkCellLayoutIface GtkCellLayoutInterface;
+G_DEFINE_INTERFACE (GtkCellLayout, gtk_cell_layout, G_TYPE_OBJECT);
- if (! cell_layout_type)
- {
- const GTypeInfo cell_layout_info =
- {
- sizeof (GtkCellLayoutIface),
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- 0,
- 0,
- NULL
- };
-
- cell_layout_type =
- g_type_register_static (G_TYPE_INTERFACE, I_("GtkCellLayout"),
- &cell_layout_info, 0);
-
- g_type_interface_add_prerequisite (cell_layout_type, G_TYPE_OBJECT);
- }
- return cell_layout_type;
+static void
+gtk_cell_layout_default_init (GtkCellLayoutInterface *iface)
+{
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]