[gtk+/refactor: 22/106] gtkcellview: unseal private pointer
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 22/106] gtkcellview: unseal private pointer
- Date: Tue, 13 Jul 2010 17:31:51 +0000 (UTC)
commit b616a27e9750dde0841066ccb63105ea5da1e6f3
Author: Javier Jardón <jjardon gnome org>
Date: Tue Jun 1 23:38:52 2010 +0200
gtkcellview: unseal private pointer
gtk/gtkcellview.c | 10 +++++++---
gtk/gtkcellview.h | 2 +-
2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index ec51f1e..a02fc72 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -122,7 +122,6 @@ static void gtk_cell_view_buildable_custom_tag_end (GtkBuildable
static GtkBuildableIface *parent_buildable_iface;
-#define GTK_CELL_VIEW_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_CELL_VIEW, GtkCellViewPrivate))
enum
{
@@ -288,9 +287,14 @@ gtk_cell_view_set_property (GObject *object,
static void
gtk_cell_view_init (GtkCellView *cellview)
{
- gtk_widget_set_has_window (GTK_WIDGET (cellview), FALSE);
+ GtkCellViewPrivate *priv;
+
+ cellview->priv = G_TYPE_INSTANCE_GET_PRIVATE (cellview,
+ GTK_TYPE_CELL_VIEW,
+ GtkCellViewPrivate);
+ priv = cellview->priv;
- cellview->priv = GTK_CELL_VIEW_GET_PRIVATE (cellview);
+ gtk_widget_set_has_window (GTK_WIDGET (cellview), FALSE);
}
static void
diff --git a/gtk/gtkcellview.h b/gtk/gtkcellview.h
index 06305f9..a58f97e 100644
--- a/gtk/gtkcellview.h
+++ b/gtk/gtkcellview.h
@@ -46,7 +46,7 @@ struct _GtkCellView
GtkWidget parent_instance;
/*< private >*/
- GtkCellViewPrivate *GSEAL (priv);
+ GtkCellViewPrivate *priv;
};
struct _GtkCellViewClass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]