[gtk+/refactor: 76/106] gtkpagesetupunixdialog: unseal private pointer
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 76/106] gtkpagesetupunixdialog: unseal private pointer
- Date: Tue, 13 Jul 2010 17:36:23 +0000 (UTC)
commit 58abd96e5ed7ce943d8dfe10767423a73ecaed01
Author: Javier Jardón <jjardon gnome org>
Date: Mon Jul 5 05:24:59 2010 +0200
gtkpagesetupunixdialog: unseal private pointer
gtk/gtkpagesetupunixdialog.c | 9 ++++-----
gtk/gtkpagesetupunixdialog.h | 4 ++--
2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkpagesetupunixdialog.c b/gtk/gtkpagesetupunixdialog.c
index ff0ed19..49a24d3 100644
--- a/gtk/gtkpagesetupunixdialog.c
+++ b/gtk/gtkpagesetupunixdialog.c
@@ -70,7 +70,7 @@
*/
-struct GtkPageSetupUnixDialogPrivate
+struct _GtkPageSetupUnixDialogPrivate
{
GtkListStore *printer_list;
GtkListStore *page_setup_list;
@@ -112,9 +112,6 @@ enum {
G_DEFINE_TYPE (GtkPageSetupUnixDialog, gtk_page_setup_unix_dialog, GTK_TYPE_DIALOG)
-#define GTK_PAGE_SETUP_UNIX_DIALOG_GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_PAGE_SETUP_UNIX_DIALOG, GtkPageSetupUnixDialogPrivate))
-
static void gtk_page_setup_unix_dialog_finalize (GObject *object);
static void populate_dialog (GtkPageSetupUnixDialog *dialog);
static void fill_paper_sizes_from_printer (GtkPageSetupUnixDialog *dialog,
@@ -168,7 +165,9 @@ gtk_page_setup_unix_dialog_init (GtkPageSetupUnixDialog *dialog)
GtkTreeIter iter;
gchar *tmp;
- priv = dialog->priv = GTK_PAGE_SETUP_UNIX_DIALOG_GET_PRIVATE (dialog);
+ priv = dialog->priv = G_TYPE_INSTANCE_GET_PRIVATE (dialog,
+ GTK_TYPE_PAGE_SETUP_UNIX_DIALOG,
+ GtkPageSetupUnixDialogPrivate);
priv->print_backends = NULL;
diff --git a/gtk/gtkpagesetupunixdialog.h b/gtk/gtkpagesetupunixdialog.h
index 58d7b61..eb74eca 100644
--- a/gtk/gtkpagesetupunixdialog.h
+++ b/gtk/gtkpagesetupunixdialog.h
@@ -38,13 +38,13 @@ G_BEGIN_DECLS
typedef struct _GtkPageSetupUnixDialog GtkPageSetupUnixDialog;
typedef struct _GtkPageSetupUnixDialogClass GtkPageSetupUnixDialogClass;
-typedef struct GtkPageSetupUnixDialogPrivate GtkPageSetupUnixDialogPrivate;
+typedef struct _GtkPageSetupUnixDialogPrivate GtkPageSetupUnixDialogPrivate;
struct _GtkPageSetupUnixDialog
{
GtkDialog parent_instance;
- GtkPageSetupUnixDialogPrivate *GSEAL (priv);
+ GtkPageSetupUnixDialogPrivate *priv;
};
struct _GtkPageSetupUnixDialogClass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]