diff options
author | Pablo Barciela <[email protected]> | 2019-07-23 11:32:22 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-07-25 00:13:04 +0200 |
commit | ae12101a41e464b9b9904cb99cc38808591a0ca0 (patch) | |
tree | 58f2c4e8156e9a0d6733022c3b36fba813ddf2a6 | |
parent | 70221d573704e30585b30e553ea213b8089d377e (diff) | |
download | pluma-ae12101a41e464b9b9904cb99cc38808591a0ca0.tar.bz2 pluma-ae12101a41e464b9b9904cb99cc38808591a0ca0.tar.xz |
pluma-print-preview: avoid 'g_type_class_add_private'
-rw-r--r-- | pluma/pluma-print-preview.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pluma/pluma-print-preview.c b/pluma/pluma-print-preview.c index 4fb7c561..cfa710c8 100644 --- a/pluma/pluma-print-preview.c +++ b/pluma/pluma-print-preview.c @@ -83,7 +83,7 @@ struct _PlumaPrintPreviewPrivate guint cur_page; }; -G_DEFINE_TYPE (PlumaPrintPreview, pluma_print_preview, GTK_TYPE_BOX) +G_DEFINE_TYPE_WITH_PRIVATE (PlumaPrintPreview, pluma_print_preview, GTK_TYPE_BOX) static void pluma_print_preview_get_property (GObject *object, @@ -149,8 +149,6 @@ pluma_print_preview_class_init (PlumaPrintPreviewClass *klass) object_class->finalize = pluma_print_preview_finalize; widget_class->grab_focus = pluma_print_preview_grab_focus; - - g_type_class_add_private (object_class, sizeof(PlumaPrintPreviewPrivate)); } static void @@ -1007,9 +1005,7 @@ pluma_print_preview_init (PlumaPrintPreview *preview) { PlumaPrintPreviewPrivate *priv; - priv = G_TYPE_INSTANCE_GET_PRIVATE (preview, - PLUMA_TYPE_PRINT_PREVIEW, - PlumaPrintPreviewPrivate); + priv = pluma_print_preview_get_instance_private (preview); preview->priv = priv; |