[gtk+] GtkPrintOperation: unseal private pointer



commit 9db9c5f247dbe4ca1a62305976d8db2f83f0e099
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Jul 14 02:07:04 2010 +0200

    GtkPrintOperation: unseal private pointer

 gtk/gtkprintoperation.c |    5 +++--
 gtk/gtkprintoperation.h |    3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c
index 60a2df2..85ecf0e 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 ("");
diff --git a/gtk/gtkprintoperation.h b/gtk/gtkprintoperation.h
index fed196a..267a90c 100644
--- a/gtk/gtkprintoperation.h
+++ b/gtk/gtkprintoperation.h
@@ -79,7 +79,8 @@ struct _GtkPrintOperation
 {
   GObject parent_instance;
 
-  GtkPrintOperationPrivate *GSEAL (priv);
+  /* <private> */
+  GtkPrintOperationPrivate *priv;
 };
 
 struct _GtkPrintOperationClass



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]