aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-toggle.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-cell-toggle.c')
-rw-r--r--widgets/table/e-cell-toggle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/table/e-cell-toggle.c b/widgets/table/e-cell-toggle.c
index 26904d284a..469a41bde4 100644
--- a/widgets/table/e-cell-toggle.c
+++ b/widgets/table/e-cell-toggle.c
@@ -430,7 +430,7 @@ e_cell_toggle_class_init (GtkObjectClass *object_class)
ecc->max_width = etog_max_width;
ecc->style_set = etog_style_set;
- parent_class = gtk_type_class (PARENT_TYPE);
+ parent_class = g_type_class_ref (PARENT_TYPE);
}
static void
@@ -493,7 +493,7 @@ e_cell_toggle_construct (ECellToggle *etog, int border, int n_states, GdkPixbuf
ECell *
e_cell_toggle_new (int border, int n_states, GdkPixbuf **images)
{
- ECellToggle *etog = gtk_type_new (e_cell_toggle_get_type ());
+ ECellToggle *etog = g_object_new (E_CELL_TOGGLE_TYPE, NULL);
e_cell_toggle_construct (etog, border, n_states, images);