diff options
author | Pablo Barciela <[email protected]> | 2019-08-11 01:36:55 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-08-16 20:52:43 +0000 |
commit | e236bb2accc0474b599b786a98f879a808088812 (patch) | |
tree | deea211d571fe23789060387cc07d3cfd2b147d4 /cut-n-paste/toolbar-editor/egg-editable-toolbar.c | |
parent | a2618e56149141918aa246bb9a5f4a2f9d217555 (diff) | |
download | atril-e236bb2accc0474b599b786a98f879a808088812.tar.bz2 atril-e236bb2accc0474b599b786a98f879a808088812.tar.xz |
egg-editable-toolbar: avoid 'g_type_class_add_private'
Diffstat (limited to 'cut-n-paste/toolbar-editor/egg-editable-toolbar.c')
-rw-r--r-- | cut-n-paste/toolbar-editor/egg-editable-toolbar.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index bb0e9dad..91a065ed 100644 --- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c +++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c @@ -57,8 +57,6 @@ enum static guint egg_editable_toolbar_signals[LAST_SIGNAL] = { 0 }; -#define EGG_EDITABLE_TOOLBAR_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EGG_TYPE_EDITABLE_TOOLBAR, EggEditableToolbarPrivate)) - struct _EggEditableToolbarPrivate { GtkUIManager *manager; @@ -84,7 +82,7 @@ struct _EggEditableToolbarPrivate gchar *primary_name; }; -G_DEFINE_TYPE (EggEditableToolbar, egg_editable_toolbar, GTK_TYPE_BOX); +G_DEFINE_TYPE_WITH_PRIVATE (EggEditableToolbar, egg_editable_toolbar, GTK_TYPE_BOX); static int get_dock_position (EggEditableToolbar *etoolbar, @@ -1410,7 +1408,7 @@ egg_editable_toolbar_init (EggEditableToolbar *etoolbar) gtk_orientable_set_orientation (GTK_ORIENTABLE (etoolbar), GTK_ORIENTATION_VERTICAL); - priv = etoolbar->priv = EGG_EDITABLE_TOOLBAR_GET_PRIVATE (etoolbar); + priv = etoolbar->priv = egg_editable_toolbar_get_instance_private (etoolbar); priv->save_hidden = TRUE; @@ -1692,8 +1690,6 @@ egg_editable_toolbar_class_init (EggEditableToolbarClass *klass) "Edit Mode", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); - - g_type_class_add_private (object_class, sizeof (EggEditableToolbarPrivate)); } GtkWidget * |