[gtk+/refactor: 31/106] gtkcomboboxentry: unseal private pointer



commit 5fd442eda2ebacf107a94e260664167f02e8110c
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Jun 2 05:23:43 2010 +0200

    gtkcomboboxentry: unseal private pointer

 gtk/gtkcomboboxentry.c |    6 ++++--
 gtk/gtkcomboboxentry.h |    2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcomboboxentry.c b/gtk/gtkcomboboxentry.c
index f119f8b..34a2f49 100644
--- a/gtk/gtkcomboboxentry.c
+++ b/gtk/gtkcomboboxentry.c
@@ -29,7 +29,6 @@
 #include "gtkintl.h"
 #include "gtkbuildable.h"
 
-#define GTK_COMBO_BOX_ENTRY_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_COMBO_BOX_ENTRY, GtkComboBoxEntryPrivate))
 
 struct _GtkComboBoxEntryPrivate
 {
@@ -118,7 +117,10 @@ gtk_combo_box_entry_init (GtkComboBoxEntry *entry_box)
 {
   GtkWidget *entry;
 
-  entry_box->priv = GTK_COMBO_BOX_ENTRY_GET_PRIVATE (entry_box);
+  entry_box->priv = G_TYPE_INSTANCE_GET_PRIVATE (entry_box,
+                                                 GTK_TYPE_COMBO_BOX_ENTRY,
+                                                 GtkComboBoxEntryPrivate);
+
   entry_box->priv->text_column = -1;
 
   entry = gtk_entry_new ();
diff --git a/gtk/gtkcomboboxentry.h b/gtk/gtkcomboboxentry.h
index c8820c5..5c6168d 100644
--- a/gtk/gtkcomboboxentry.h
+++ b/gtk/gtkcomboboxentry.h
@@ -45,7 +45,7 @@ struct _GtkComboBoxEntry
   GtkComboBox parent_instance;
 
   /*< private >*/
-  GtkComboBoxEntryPrivate *GSEAL (priv);
+  GtkComboBoxEntryPrivate *priv;
 };
 
 struct _GtkComboBoxEntryClass



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