summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-17 03:13:34 +0200
committerVictor Kareh <[email protected]>2019-08-20 14:42:15 -0400
commit1ba7259bc46263af1082b0b4184d5468aa84c0e4 (patch)
tree541604a95f3532561dada4db49ded1bf8f6c211a
parentbd4ce9171fef52720e74ffeeeeca3b0c5b5d4808 (diff)
downloadatril-1ba7259bc46263af1082b0b4184d5468aa84c0e4.tar.bz2
atril-1ba7259bc46263af1082b0b4184d5468aa84c0e4.tar.xz
ev-page-action: avoid 'g_type_class_add_private'
-rw-r--r--libmisc/ev-page-action.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libmisc/ev-page-action.c b/libmisc/ev-page-action.c
index 958a17ea..362cb42e 100644
--- a/libmisc/ev-page-action.c
+++ b/libmisc/ev-page-action.c
@@ -50,11 +50,9 @@ enum
static guint signals[N_SIGNALS] = {0, };
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
-G_DEFINE_TYPE (EvPageAction, ev_page_action, GTK_TYPE_ACTION)
+G_DEFINE_TYPE_WITH_PRIVATE (EvPageAction, ev_page_action, GTK_TYPE_ACTION)
G_GNUC_END_IGNORE_DEPRECATIONS;
-#define EV_PAGE_ACTION_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_PAGE_ACTION, EvPageActionPrivate))
-
enum {
PROP_0,
PROP_MODEL
@@ -207,7 +205,7 @@ ev_page_action_grab_focus (EvPageAction *page_action)
static void
ev_page_action_init (EvPageAction *page)
{
- page->priv = EV_PAGE_ACTION_GET_PRIVATE (page);
+ page->priv = ev_page_action_get_instance_private (page);
}
static void
@@ -242,6 +240,4 @@ ev_page_action_class_init (EvPageActionClass *class)
"Current Links Model",
GTK_TYPE_TREE_MODEL,
G_PARAM_READWRITE));
-
- g_type_class_add_private (object_class, sizeof (EvPageActionPrivate));
}