diff options
author | Pablo Barciela <[email protected]> | 2019-07-09 00:20:56 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-07-12 11:38:31 +0200 |
commit | 27a9d409a74dbec138930a44760be8d5360b6ae2 (patch) | |
tree | e6f376c8225a668bb23624bdc17dcc0b7c827ef0 | |
parent | d225445f010dc660bb18ff775fb1d5d565c76ee3 (diff) | |
download | pluma-27a9d409a74dbec138930a44760be8d5360b6ae2.tar.bz2 pluma-27a9d409a74dbec138930a44760be8d5360b6ae2.tar.xz |
pluma-search-dialog: avoid 'g_type_class_add_private'
-rw-r--r-- | pluma/dialogs/pluma-search-dialog.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/pluma/dialogs/pluma-search-dialog.c b/pluma/dialogs/pluma-search-dialog.c index 4754ab85..57138328 100644 --- a/pluma/dialogs/pluma-search-dialog.c +++ b/pluma/dialogs/pluma-search-dialog.c @@ -43,10 +43,6 @@ #include "pluma-marshal.h" #include "pluma-dirs.h" -#define PLUMA_SEARCH_DIALOG_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), \ - PLUMA_TYPE_SEARCH_DIALOG, \ - PlumaSearchDialogPrivate)) - /* Signals */ enum { @@ -80,7 +76,7 @@ struct _PlumaSearchDialogPrivate gboolean ui_error; }; -G_DEFINE_TYPE(PlumaSearchDialog, pluma_search_dialog, GTK_TYPE_DIALOG) +G_DEFINE_TYPE_WITH_PRIVATE (PlumaSearchDialog, pluma_search_dialog, GTK_TYPE_DIALOG) enum { @@ -173,8 +169,6 @@ pluma_search_dialog_class_init (PlumaSearchDialogClass *klass) FALSE, G_PARAM_READWRITE)); - g_type_class_add_private (object_class, sizeof (PlumaSearchDialogPrivate)); - binding_set = gtk_binding_set_by_class (klass); /* Note: we cannot use the keyval/modifier associated with the @@ -325,7 +319,7 @@ pluma_search_dialog_init (PlumaSearchDialog *dlg) NULL }; - dlg->priv = PLUMA_SEARCH_DIALOG_GET_PRIVATE (dlg); + dlg->priv = pluma_search_dialog_get_instance_private (dlg); gtk_window_set_resizable (GTK_WINDOW (dlg), FALSE); gtk_window_set_destroy_with_parent (GTK_WINDOW (dlg), TRUE); |