summaryrefslogtreecommitdiff
path: root/gtk/gtktreeviewcolumn.c
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-06-26 18:22:42 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2014-06-26 19:06:43 -0400
commit9c37b3de7466a22d4c784657a86c522e2a4f118a (patch)
tree8efe1f75cef57d9af8484324dca0c35714a1ca16 /gtk/gtktreeviewcolumn.c
parent66492678b5a3043f4acd77a6a41405bc4f8097b3 (diff)
downloadgtk+-9c37b3de7466a22d4c784657a86c522e2a4f118a.tar.gz
gtk: Don't use GObjectClass.constructor
Use the newer constructed instead, which has a fast path in GObject.
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r--gtk/gtktreeviewcolumn.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index df833c0f36..87fc72b4ae 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -71,9 +71,7 @@ static void gtk_tree_view_column_get_property (GObject
GParamSpec *pspec);
static void gtk_tree_view_column_finalize (GObject *object);
static void gtk_tree_view_column_dispose (GObject *object);
-static GObject *gtk_tree_view_column_constructor (GType type,
- guint n_construct_properties,
- GObjectConstructParam *construct_properties);
+static void gtk_tree_view_column_constructed (GObject *object);
/* GtkCellLayout implementation */
static void gtk_tree_view_column_ensure_cell_area (GtkTreeViewColumn *column,
@@ -226,7 +224,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
class->clicked = NULL;
- object_class->constructor = gtk_tree_view_column_constructor;
+ object_class->constructed = gtk_tree_view_column_constructed;
object_class->finalize = gtk_tree_view_column_finalize;
object_class->dispose = gtk_tree_view_column_dispose;
object_class->set_property = gtk_tree_view_column_set_property;
@@ -476,22 +474,14 @@ gtk_tree_view_column_init (GtkTreeViewColumn *tree_column)
priv->title = g_strdup ("");
}
-static GObject *
-gtk_tree_view_column_constructor (GType type,
- guint n_construct_properties,
- GObjectConstructParam *construct_properties)
+static void
+gtk_tree_view_column_constructed (GObject *object)
{
- GtkTreeViewColumn *tree_column;
- GObject *object;
-
- object = G_OBJECT_CLASS (gtk_tree_view_column_parent_class)->constructor
- (type, n_construct_properties, construct_properties);
+ GtkTreeViewColumn *tree_column = GTK_TREE_VIEW_COLUMN (object);
- tree_column = (GtkTreeViewColumn *) object;
+ G_OBJECT_CLASS (gtk_tree_view_column_parent_class)->constructed (object);
gtk_tree_view_column_ensure_cell_area (tree_column, NULL);
-
- return object;
}
static void