summaryrefslogtreecommitdiff
path: root/src/eom-print-image-setup.c
diff options
context:
space:
mode:
authorFelix Riemann <[email protected]>2013-10-04 14:21:20 +0200
committerraveit65 <[email protected]>2018-07-17 21:53:38 +0200
commitfb7c5396f68f03f634a57654267a67191031e75d (patch)
treef634486c039fa81b6953abc192fffa02dca3d6a4 /src/eom-print-image-setup.c
parent5a5612ab8ec4fb31464fa35e049a4a3b7cb64393 (diff)
downloadeom-fb7c5396f68f03f634a57654267a67191031e75d.tar.bz2
eom-fb7c5396f68f03f634a57654267a67191031e75d.tar.xz
Convert to G_DEFINE_TYPE_WITH_PRIVATE part 2
origin commits: https://gitlab.gnome.org/GNOME/eog/commit/ffc4137 https://gitlab.gnome.org/GNOME/eog/commit/ad8c963 https://gitlab.gnome.org/GNOME/eog/commit/afa0dc8 https://gitlab.gnome.org/GNOME/eog/commit/119a768 https://gitlab.gnome.org/GNOME/eog/commit/7725a55 https://gitlab.gnome.org/GNOME/eog/commit/80cf422
Diffstat (limited to 'src/eom-print-image-setup.c')
-rw-r--r--src/eom-print-image-setup.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/eom-print-image-setup.c b/src/eom-print-image-setup.c
index b396750..588e72c 100644
--- a/src/eom-print-image-setup.c
+++ b/src/eom-print-image-setup.c
@@ -48,11 +48,6 @@
* interactively.
*/
-#define EOM_PRINT_IMAGE_SETUP_GET_PRIVATE(object) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_PRINT_IMAGE_SETUP, EomPrintImageSetupPrivate))
-
-G_DEFINE_TYPE (EomPrintImageSetup, eom_print_image_setup, GTK_TYPE_GRID);
-
struct _EomPrintImageSetupPrivate {
GtkWidget *left;
GtkWidget *right;
@@ -114,6 +109,7 @@ static void on_bottom_value_changed (GtkSpinButton *spinbutton, gpointer user_da
static void on_width_value_changed (GtkSpinButton *spinbutton, gpointer user_data);
static void on_height_value_changed (GtkSpinButton *spinbutton, gpointer user_data);
+G_DEFINE_TYPE_WITH_PRIVATE (EomPrintImageSetup, eom_print_image_setup, GTK_TYPE_GRID);
static void
block_handlers (EomPrintImageSetup *setup)
@@ -836,8 +832,6 @@ eom_print_image_setup_class_init (EomPrintImageSetupClass *class)
_("The information for the page where the image will be printed"),
GTK_TYPE_PAGE_SETUP,
G_PARAM_READWRITE));
-
- g_type_class_add_private (class, sizeof (EomPrintImageSetupPrivate));
}
static void
@@ -854,7 +848,7 @@ eom_print_image_setup_init (EomPrintImageSetup *setup)
gchar *locale_scale = NULL;
#endif
- priv = setup->priv = EOM_PRINT_IMAGE_SETUP_GET_PRIVATE (setup);
+ priv = setup->priv = eom_print_image_setup_get_instance_private (setup);
priv->image = NULL;