gtkprinter: unseal private pointer

This commit is contained in:
Javier Jardón 2010-07-07 03:54:48 +02:00
parent 168fbac7f6
commit e3a4dfe0e1
2 changed files with 5 additions and 5 deletions

View File

@ -48,9 +48,6 @@
*/
#define GTK_PRINTER_GET_PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_PRINTER, GtkPrinterPrivate))
static void gtk_printer_finalize (GObject *object);
struct _GtkPrinterPrivate
@ -245,7 +242,9 @@ gtk_printer_init (GtkPrinter *printer)
{
GtkPrinterPrivate *priv;
priv = printer->priv = GTK_PRINTER_GET_PRIVATE (printer);
priv = printer->priv = G_TYPE_INSTANCE_GET_PRIVATE (printer,
GTK_TYPE_PRINTER,
GtkPrinterPrivate);
priv->name = NULL;
priv->location = NULL;

View File

@ -68,7 +68,8 @@ struct _GtkPrinter
{
GObject parent_instance;
GtkPrinterPrivate *GSEAL (priv);
/* <private> */
GtkPrinterPrivate *priv;
};
struct _GtkPrinterClass