diff options
Diffstat (limited to 'plugins/gtk+/glade-combo-box-text-editor.c')
-rw-r--r-- | plugins/gtk+/glade-combo-box-text-editor.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/gtk+/glade-combo-box-text-editor.c b/plugins/gtk+/glade-combo-box-text-editor.c index 126d8cd8..d1931df0 100644 --- a/plugins/gtk+/glade-combo-box-text-editor.c +++ b/plugins/gtk+/glade-combo-box-text-editor.c @@ -32,29 +32,23 @@ struct _GladeComboBoxTextEditorPrivate GtkWidget *embed; }; -G_DEFINE_TYPE (GladeComboBoxTextEditor, glade_combo_box_text_editor, GLADE_TYPE_EDITOR_SKELETON) +G_DEFINE_TYPE_WITH_PRIVATE (GladeComboBoxTextEditor, glade_combo_box_text_editor, GLADE_TYPE_EDITOR_SKELETON) static void glade_combo_box_text_editor_class_init (GladeComboBoxTextEditorClass * klass) { - GObjectClass *object_class = G_OBJECT_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); widget_class->grab_focus = glade_combo_box_text_editor_grab_focus; gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/gladegtk/glade-combo-box-text-editor.ui"); gtk_widget_class_bind_template_child_private (widget_class, GladeComboBoxTextEditor, embed); - - g_type_class_add_private (object_class, sizeof (GladeComboBoxTextEditorPrivate)); } static void glade_combo_box_text_editor_init (GladeComboBoxTextEditor * self) { - self->priv = - G_TYPE_INSTANCE_GET_PRIVATE (self, - GLADE_TYPE_COMBO_BOX_TEXT_EDITOR, - GladeComboBoxTextEditorPrivate); + self->priv = glade_combo_box_text_editor_get_instance_private (self); gtk_widget_init_template (GTK_WIDGET (self)); } |