summaryrefslogtreecommitdiff
path: root/shell/ev-password-view.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-09 12:05:19 +0200
committerlukefromdc <[email protected]>2019-08-16 20:40:31 +0000
commit5dead5a639d080a6ebd99602966240f89eda335c (patch)
tree8ae142ae1ede359b9603f5f4739431bdfdcc6a7d /shell/ev-password-view.c
parent476d7ba2360a5806c4e670059ed6318f5d36a168 (diff)
downloadatril-5dead5a639d080a6ebd99602966240f89eda335c.tar.bz2
atril-5dead5a639d080a6ebd99602966240f89eda335c.tar.xz
ev-password-view: avoid 'g_type_class_add_private'
Diffstat (limited to 'shell/ev-password-view.c')
-rw-r--r--shell/ev-password-view.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/shell/ev-password-view.c b/shell/ev-password-view.c
index 7f1b98b0..e720a7f5 100644
--- a/shell/ev-password-view.c
+++ b/shell/ev-password-view.c
@@ -45,13 +45,10 @@ struct _EvPasswordViewPrivate {
GFile *uri_file;
};
-#define EV_PASSWORD_VIEW_GET_PRIVATE(object) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_PASSWORD_VIEW, EvPasswordViewPrivate));
-
static guint password_view_signals [LAST_SIGNAL] = { 0 };
-G_DEFINE_TYPE (EvPasswordView, ev_password_view, GTK_TYPE_VIEWPORT)
+G_DEFINE_TYPE_WITH_PRIVATE (EvPasswordView, ev_password_view, GTK_TYPE_VIEWPORT)
static void
ev_password_view_finalize (GObject *object)
@@ -89,8 +86,6 @@ ev_password_view_class_init (EvPasswordViewClass *class)
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
- g_type_class_add_private (g_object_class, sizeof (EvPasswordViewPrivate));
-
g_object_class->finalize = ev_password_view_finalize;
}
@@ -111,7 +106,7 @@ ev_password_view_init (EvPasswordView *password_view)
GtkWidget *label;
gchar *markup;
- password_view->priv = EV_PASSWORD_VIEW_GET_PRIVATE (password_view);
+ password_view->priv = ev_password_view_get_instance_private (password_view);
password_view->priv->password_save = G_PASSWORD_SAVE_NEVER;