diff options
author | Felix Riemann <[email protected]> | 2013-10-04 12:07:29 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-07-17 21:53:38 +0200 |
commit | 5a5612ab8ec4fb31464fa35e049a4a3b7cb64393 (patch) | |
tree | 0eee4a38e9d5f8f5d39beb5132c57a84c50a0e09 /src/eom-properties-dialog.c | |
parent | a3c97eb293bfff825c43bd10d5584ae5a20f5495 (diff) | |
download | eom-5a5612ab8ec4fb31464fa35e049a4a3b7cb64393.tar.bz2 eom-5a5612ab8ec4fb31464fa35e049a4a3b7cb64393.tar.xz |
Convert to G_DEFINE_TYPE_WITH_PRIVATE part 1
origin commits:
https://gitlab.gnome.org/GNOME/eog/commit/35c3864
https://gitlab.gnome.org/GNOME/eog/commit/842775b
https://gitlab.gnome.org/GNOME/eog/commit/3fe0bd4
https://gitlab.gnome.org/GNOME/eog/commit/2b25632
https://gitlab.gnome.org/GNOME/eog/commit/f0c977d
https://gitlab.gnome.org/GNOME/eog/commit/5cdb1b8
https://gitlab.gnome.org/GNOME/eog/commit/dba0bd4
https://gitlab.gnome.org/GNOME/eog/commit/8e31683
https://gitlab.gnome.org/GNOME/eog/commit/3945bb1
Diffstat (limited to 'src/eom-properties-dialog.c')
-rw-r--r-- | src/eom-properties-dialog.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/eom-properties-dialog.c b/src/eom-properties-dialog.c index 1550971..1999040 100644 --- a/src/eom-properties-dialog.c +++ b/src/eom-properties-dialog.c @@ -51,11 +51,6 @@ #include "eom-exif-details.h" #endif -#define EOM_PROPERTIES_DIALOG_GET_PRIVATE(object) \ - (G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_PROPERTIES_DIALOG, EomPropertiesDialogPrivate)) - -G_DEFINE_TYPE (EomPropertiesDialog, eom_properties_dialog, EOM_TYPE_DIALOG); - enum { PROP_0, PROP_THUMBVIEW, @@ -112,6 +107,8 @@ struct _EomPropertiesDialogPrivate { gboolean netbook_mode; }; +G_DEFINE_TYPE_WITH_PRIVATE (EomPropertiesDialog, eom_properties_dialog, EOM_TYPE_DIALOG); + static void pd_update_general_tab (EomPropertiesDialog *prop_dlg, EomImage *image) @@ -594,8 +591,6 @@ eom_properties_dialog_class_init (EomPropertiesDialogClass *class) FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - - g_type_class_add_private (g_object_class, sizeof (EomPropertiesDialogPrivate)); } static void @@ -610,7 +605,7 @@ eom_properties_dialog_init (EomPropertiesDialog *prop_dlg) GtkWidget *sw; #endif - prop_dlg->priv = EOM_PROPERTIES_DIALOG_GET_PRIVATE (prop_dlg); + prop_dlg->priv = eom_properties_dialog_get_instance_private (prop_dlg); priv = prop_dlg->priv; |