summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-07-14 02:07:04 +0200
committerJavier Jardón <jjardon@gnome.org>2010-07-14 02:07:04 +0200
commit9db9c5f247dbe4ca1a62305976d8db2f83f0e099 (patch)
treeebb4069571604efdc97e7a11dd3d40a16a454518 /gtk/gtkprintoperation.c
parent6fae72c419679be63c24790243e28d1cb04d2835 (diff)
downloadgtk+-9db9c5f247dbe4ca1a62305976d8db2f83f0e099.tar.gz
GtkPrintOperation: unseal private pointer
Diffstat (limited to 'gtk/gtkprintoperation.c')
-rw-r--r--gtk/gtkprintoperation.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c
index 60a2df2c68..85ecf0ef29 100644
--- a/gtk/gtkprintoperation.c
+++ b/gtk/gtkprintoperation.c
@@ -34,7 +34,6 @@
#define SHOW_PROGRESS_TIME 1200
-#define GTK_PRINT_OPERATION_GET_PRIVATE(obj)(G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_PRINT_OPERATION, GtkPrintOperationPrivate))
enum
{
@@ -155,7 +154,9 @@ gtk_print_operation_init (GtkPrintOperation *operation)
GtkPrintOperationPrivate *priv;
const char *appname;
- priv = operation->priv = GTK_PRINT_OPERATION_GET_PRIVATE (operation);
+ priv = operation->priv = G_TYPE_INSTANCE_GET_PRIVATE (operation,
+ GTK_TYPE_PRINT_OPERATION,
+ GtkPrintOperationPrivate);
priv->status = GTK_PRINT_STATUS_INITIAL;
priv->status_string = g_strdup ("");