summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-06-02 05:31:23 +0200
committerJavier Jardón <jjardon@gnome.org>2010-07-13 19:40:46 +0200
commit009acc263e883923fd7c528c401f9d39756788aa (patch)
tree7cd9e0c67b05e167f0898579e23f4af1d9d92c30 /gtk
parent5fd442eda2ebacf107a94e260664167f02e8110c (diff)
downloadgtk+-009acc263e883923fd7c528c401f9d39756788aa.tar.gz
gtkcustompaperunixdialog: unseal private pointer
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkcustompaperunixdialog.c10
-rw-r--r--gtk/gtkcustompaperunixdialog.h4
2 files changed, 8 insertions, 6 deletions
diff --git a/gtk/gtkcustompaperunixdialog.c b/gtk/gtkcustompaperunixdialog.c
index 28120b1e82..cc95bec46a 100644
--- a/gtk/gtkcustompaperunixdialog.c
+++ b/gtk/gtkcustompaperunixdialog.c
@@ -49,7 +49,7 @@ typedef struct
GtkWidget *spin_button;
} UnitWidget;
-struct GtkCustomPaperUnixDialogPrivate
+struct _GtkCustomPaperUnixDialogPrivate
{
GtkWidget *treeview;
@@ -86,10 +86,9 @@ enum {
PRINTER_LIST_N_COLS
};
+
G_DEFINE_TYPE (GtkCustomPaperUnixDialog, gtk_custom_paper_unix_dialog, GTK_TYPE_DIALOG)
-#define GTK_CUSTOM_PAPER_UNIX_DIALOG_GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_CUSTOM_PAPER_UNIX_DIALOG, GtkCustomPaperUnixDialogPrivate))
static void gtk_custom_paper_unix_dialog_finalize (GObject *object);
static void populate_dialog (GtkCustomPaperUnixDialog *dialog);
@@ -272,7 +271,10 @@ gtk_custom_paper_unix_dialog_init (GtkCustomPaperUnixDialog *dialog)
GtkCustomPaperUnixDialogPrivate *priv;
GtkTreeIter iter;
- priv = dialog->priv = GTK_CUSTOM_PAPER_UNIX_DIALOG_GET_PRIVATE (dialog);
+ dialog->priv = G_TYPE_INSTANCE_GET_PRIVATE (dialog,
+ GTK_TYPE_CUSTOM_PAPER_UNIX_DIALOG,
+ GtkCustomPaperUnixDialogPrivate);
+ priv = dialog->priv;
priv->print_backends = NULL;
diff --git a/gtk/gtkcustompaperunixdialog.h b/gtk/gtkcustompaperunixdialog.h
index 0ff3af165d..acb31634f7 100644
--- a/gtk/gtkcustompaperunixdialog.h
+++ b/gtk/gtkcustompaperunixdialog.h
@@ -34,13 +34,13 @@ G_BEGIN_DECLS
typedef struct _GtkCustomPaperUnixDialog GtkCustomPaperUnixDialog;
typedef struct _GtkCustomPaperUnixDialogClass GtkCustomPaperUnixDialogClass;
-typedef struct GtkCustomPaperUnixDialogPrivate GtkCustomPaperUnixDialogPrivate;
+typedef struct _GtkCustomPaperUnixDialogPrivate GtkCustomPaperUnixDialogPrivate;
struct _GtkCustomPaperUnixDialog
{
GtkDialog parent_instance;
- GtkCustomPaperUnixDialogPrivate *GSEAL (priv);
+ GtkCustomPaperUnixDialogPrivate *priv;
};
struct _GtkCustomPaperUnixDialogClass