summaryrefslogtreecommitdiff
path: root/gtk/gtkvpaned.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2006-05-02 23:56:43 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-05-02 23:56:43 +0000
commitf26aad1916445d25c99878138dfc384de67a2060 (patch)
treeb72263ecb326e82a49f1e8d1871ec4288b8aa299 /gtk/gtkvpaned.c
parent33cddd12d78abb2efe6facba9c859017f8df9819 (diff)
downloadgtk+-f26aad1916445d25c99878138dfc384de67a2060.tar.gz
Boilerplate reduction
Diffstat (limited to 'gtk/gtkvpaned.c')
-rw-r--r--gtk/gtkvpaned.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/gtk/gtkvpaned.c b/gtk/gtkvpaned.c
index e00fc616ac..ba5e4c3deb 100644
--- a/gtk/gtkvpaned.c
+++ b/gtk/gtkvpaned.c
@@ -29,49 +29,18 @@
#include "gtkintl.h"
#include "gtkalias.h"
-static void gtk_vpaned_class_init (GtkVPanedClass *klass);
-static void gtk_vpaned_init (GtkVPaned *vpaned);
static void gtk_vpaned_size_request (GtkWidget *widget,
GtkRequisition *requisition);
static void gtk_vpaned_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
-static gpointer parent_class;
-
-GType
-gtk_vpaned_get_type (void)
-{
- static GType vpaned_type = 0;
-
- if (!vpaned_type)
- {
- static const GTypeInfo vpaned_info =
- {
- sizeof (GtkVPanedClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) gtk_vpaned_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (GtkVPaned),
- 0, /* n_preallocs */
- (GInstanceInitFunc) gtk_vpaned_init,
- };
-
- vpaned_type = g_type_register_static (GTK_TYPE_PANED, I_("GtkVPaned"),
- &vpaned_info, 0);
- }
-
- return vpaned_type;
-}
+G_DEFINE_TYPE (GtkVPaned, gtk_vpaned, GTK_TYPE_PANED);
static void
gtk_vpaned_class_init (GtkVPanedClass *class)
{
GtkWidgetClass *widget_class;
- parent_class = g_type_class_peek_parent (class);
-
widget_class = (GtkWidgetClass *) class;
widget_class->size_request = gtk_vpaned_size_request;