summaryrefslogtreecommitdiff
path: root/gtk/gtktable.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2002-10-10 01:02:25 +0000
committerManish Singh <yosh@src.gnome.org>2002-10-10 01:02:25 +0000
commit28bc53032b1bea0fe22798a8542f8036d3f735b3 (patch)
tree4adccdfc8a24aeec5026bdd531d482a6537bb8db /gtk/gtktable.c
parent8b6ce08115283d4ba30c84f3fad6008a142fd711 (diff)
downloadgtk+-28bc53032b1bea0fe22798a8542f8036d3f735b3.tar.gz
Deprecation cleanup
Wed Oct 9 17:40:13 2002 Manish Singh <yosh@gimp.org> * gtk/gtkaccelmap.c gtk/gtkfixed.[ch] gtk/gtkkeyhash.c gtk/gtkmenu.c gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtkrc.c gtk/gtkspinbutton.[ch] gtk/gtktable.[ch] gtk/gtkthemes.c: Deprecation cleanup
Diffstat (limited to 'gtk/gtktable.c')
-rw-r--r--gtk/gtktable.c34
1 files changed, 18 insertions, 16 deletions
diff --git a/gtk/gtktable.c b/gtk/gtktable.c
index d7d66cf26a..8b473f19b1 100644
--- a/gtk/gtktable.c
+++ b/gtk/gtktable.c
@@ -84,7 +84,7 @@ static void gtk_table_get_child_property (GtkContainer *container,
guint property_id,
GValue *value,
GParamSpec *pspec);
-static GtkType gtk_table_child_type (GtkContainer *container);
+static GType gtk_table_child_type (GtkContainer *container);
static void gtk_table_size_request_init (GtkTable *table);
@@ -100,26 +100,28 @@ static void gtk_table_size_allocate_pass2 (GtkTable *table);
static GtkContainerClass *parent_class = NULL;
-GtkType
+GType
gtk_table_get_type (void)
{
- static GtkType table_type = 0;
+ static GType table_type = 0;
if (!table_type)
{
- static const GtkTypeInfo table_info =
+ static const GTypeInfo table_info =
{
- "GtkTable",
- sizeof (GtkTable),
sizeof (GtkTableClass),
- (GtkClassInitFunc) gtk_table_class_init,
- (GtkObjectInitFunc) gtk_table_init,
- /* reserved_1 */ NULL,
- /* reserved_2 */ NULL,
- (GtkClassInitFunc) NULL,
+ NULL,
+ NULL,
+ (GClassInitFunc) gtk_table_class_init,
+ NULL,
+ NULL,
+ sizeof (GtkTable),
+ 0,
+ (GInstanceInitFunc) gtk_table_init,
};
- table_type = gtk_type_unique (gtk_container_get_type (), &table_info);
+ table_type = g_type_register_static (GTK_TYPE_CONTAINER, "GtkTable",
+ &table_info, 0);
}
return table_type;
@@ -252,7 +254,7 @@ gtk_table_class_init (GtkTableClass *class)
G_PARAM_READWRITE));
}
-static GtkType
+static GType
gtk_table_child_type (GtkContainer *container)
{
return GTK_TYPE_WIDGET;
@@ -490,11 +492,11 @@ gtk_table_new (guint rows,
GtkTable *table;
if (rows == 0)
- rows = 1;
+ rows = 1;
if (columns == 0)
- columns = 1;
+ columns = 1;
- table = gtk_type_new (gtk_table_get_type ());
+ table = g_object_new (GTK_TYPE_TABLE, NULL);
table->homogeneous = (homogeneous ? TRUE : FALSE);