Commit d727e389 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

panel-ditem-editor: avoid deprecated g_type_class_add_private

parent d5b78384
......@@ -163,9 +163,7 @@ enum {
static guint ditem_edit_signals[LAST_SIGNAL] = { 0 };
#define PANEL_DITEM_EDITOR_GET_PRIVATE(o) (PANEL_DITEM_EDITOR (o)->priv)
G_DEFINE_TYPE (PanelDItemEditor, panel_ditem_editor, GTK_TYPE_DIALOG)
G_DEFINE_TYPE_WITH_PRIVATE (PanelDItemEditor, panel_ditem_editor, GTK_TYPE_DIALOG)
static void panel_ditem_editor_setup_ui (PanelDItemEditor *dialog);
......@@ -375,9 +373,6 @@ panel_ditem_editor_class_init (PanelDItemEditorClass *class)
gobject_class->set_property = panel_ditem_editor_set_property;
gobject_class->dispose = panel_ditem_editor_dispose;
g_type_class_add_private (class,
sizeof (PanelDItemEditorPrivate));
ditem_edit_signals[SAVED] =
g_signal_new ("saved",
G_TYPE_FROM_CLASS (gobject_class),
......@@ -1100,9 +1095,7 @@ panel_ditem_editor_init (PanelDItemEditor *dialog)
{
PanelDItemEditorPrivate *priv;
priv = G_TYPE_INSTANCE_GET_PRIVATE (dialog,
PANEL_TYPE_DITEM_EDITOR,
PanelDItemEditorPrivate);
priv = panel_ditem_editor_get_instance_private (dialog);
dialog->priv = priv;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment