[eog] EogPropertiesDialog: Convert to G_DEFINE_TYPE_WITH_PRIVATE
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogPropertiesDialog: Convert to G_DEFINE_TYPE_WITH_PRIVATE
- Date: Fri, 4 Oct 2013 13:27:11 +0000 (UTC)
commit 3945bb1933e3a1c395ccc55ecec2422e8df01f62
Author: Felix Riemann <friemann gnome org>
Date: Fri Oct 4 13:49:39 2013 +0200
EogPropertiesDialog: Convert to G_DEFINE_TYPE_WITH_PRIVATE
src/eog-properties-dialog.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/eog-properties-dialog.c b/src/eog-properties-dialog.c
index abcbd8f..d4cc7ca 100644
--- a/src/eog-properties-dialog.c
+++ b/src/eog-properties-dialog.c
@@ -51,11 +51,6 @@
#include "eog-exif-details.h"
#endif
-#define EOG_PROPERTIES_DIALOG_GET_PRIVATE(object) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((object), EOG_TYPE_PROPERTIES_DIALOG, EogPropertiesDialogPrivate))
-
-G_DEFINE_TYPE (EogPropertiesDialog, eog_properties_dialog, EOG_TYPE_DIALOG);
-
enum {
PROP_0,
PROP_THUMBVIEW,
@@ -112,6 +107,8 @@ struct _EogPropertiesDialogPrivate {
gboolean netbook_mode;
};
+G_DEFINE_TYPE_WITH_PRIVATE (EogPropertiesDialog, eog_properties_dialog, EOG_TYPE_DIALOG);
+
static void
pd_update_general_tab (EogPropertiesDialog *prop_dlg,
EogImage *image)
@@ -582,8 +579,6 @@ eog_properties_dialog_class_init (EogPropertiesDialogClass *class)
FALSE,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
-
- g_type_class_add_private (g_object_class, sizeof (EogPropertiesDialogPrivate));
}
static void
@@ -598,7 +593,7 @@ eog_properties_dialog_init (EogPropertiesDialog *prop_dlg)
GtkWidget *sw;
#endif
- prop_dlg->priv = EOG_PROPERTIES_DIALOG_GET_PRIVATE (prop_dlg);
+ prop_dlg->priv = eog_properties_dialog_get_instance_private (prop_dlg);
priv = prop_dlg->priv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]