diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-09-21 23:26:14 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-09-21 23:26:14 +0000 |
commit | 083c3aef5146ace40284f662feaba2ce3bc20977 (patch) | |
tree | 2034e9947a033896b8a3ad16fac4cc3c6078b358 /gtk/gtkoldeditable.c | |
parent | d0cac482039125a7118fa06d07dd24ae76d2ccaf (diff) | |
download | gtk+-083c3aef5146ace40284f662feaba2ce3bc20977.tar.gz |
Mark abstract types as G_TYPE_FLAG_ABSTRACT. (#72383)
* gdk/gdkdraw.c (gdk_drawable_get_type):
* gdk/gdkgc.c (gdk_gc_get_type):
* gtk/gtkmenushell.c (gtk_menu_shell_get_type):
* gtk/gtkimcontext.c (gtk_im_context_get_type):
* gtk/gtkprogress.c (gtk_progress_get_type):
* gtk/gtkoldeditable.c (gtk_old_editable_get_type):
* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_type):
* gtk/gtkwidget.c (gtk_widget_get_type):
* gtk/gtkseparator.c (gtk_separator_get_type):
* gtk/gtkscrollbar.c (gtk_scrollbar_get_type):
* gtk/gtkscale.c (gtk_scale_get_type):
* gtk/gtkrange.c (gtk_range_get_type):
* gtk/gtkpaned.c (gtk_paned_get_type):
* gtk/gtkmisc.c (gtk_misc_get_type):
* gtk/gtkitem.c (gtk_item_get_type):
* gtk/gtkcontainer.c (gtk_container_get_type):
* gtk/gtkbbox.c (gtk_button_box_get_type):
* gtk/gtkbox.c (gtk_box_get_type):
* gtk/gtkbin.c (gtk_bin_get_type):
* gtk/gtkobject.c (gtk_object_get_type): Mark abstract types as
G_TYPE_FLAG_ABSTRACT. (#72383)
Diffstat (limited to 'gtk/gtkoldeditable.c')
-rw-r--r-- | gtk/gtkoldeditable.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/gtk/gtkoldeditable.c b/gtk/gtkoldeditable.c index 3016fd9c55..54b73370c5 100644 --- a/gtk/gtkoldeditable.c +++ b/gtk/gtkoldeditable.c @@ -133,16 +133,18 @@ gtk_old_editable_get_type (void) if (!old_editable_type) { - static const GtkTypeInfo old_editable_info = + static const GTypeInfo old_editable_info = { - "GtkOldEditable", - sizeof (GtkOldEditable), sizeof (GtkOldEditableClass), - (GtkClassInitFunc) gtk_old_editable_class_init, - (GtkObjectInitFunc) gtk_old_editable_init, - /* reserved_1 */ NULL, - /* reserved_2 */ NULL, - (GtkClassInitFunc) NULL, + NULL, /* base_init */ + NULL, /* base_finalize */ + (GClassInitFunc) gtk_old_editable_class_init, + NULL, /* class_finalize */ + NULL, /* class_data */ + sizeof (GtkOldEditable), + 0, /* n_preallocs */ + (GInstanceInitFunc) gtk_old_editable_init, + NULL /* value_table */ }; static const GInterfaceInfo editable_info = @@ -152,7 +154,8 @@ gtk_old_editable_get_type (void) NULL /* interface_data */ }; - old_editable_type = gtk_type_unique (GTK_TYPE_WIDGET, &old_editable_info); + old_editable_type = g_type_register_static (GTK_TYPE_WIDGET, "GtkOldEditable", + &old_editable_info, G_TYPE_FLAG_ABSTRACT); g_type_add_interface_static (old_editable_type, GTK_TYPE_EDITABLE, &editable_info); |