[gtk+/refactor: 57/106] GtkIconView: Unseal private pointer
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 57/106] GtkIconView: Unseal private pointer
- Date: Tue, 13 Jul 2010 17:34:47 +0000 (UTC)
commit 6cf97b678028a772fa5f79252e3064dac67170de
Author: Javier Jardón <jjardon gnome org>
Date: Wed Jun 23 20:00:42 2010 +0200
GtkIconView: Unseal private pointer
gtk/gtkiconview.c | 8 ++++----
gtk/gtkiconview.h | 3 ++-
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 6245ffa..c62df31 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -59,8 +59,6 @@
#define SCROLL_EDGE_SIZE 15
-#define GTK_ICON_VIEW_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_ICON_VIEW, GtkIconViewPrivate))
-
typedef struct _GtkIconViewItem GtkIconViewItem;
struct _GtkIconViewItem
{
@@ -1105,8 +1103,10 @@ gtk_icon_view_cell_layout_init (GtkCellLayoutIface *iface)
static void
gtk_icon_view_init (GtkIconView *icon_view)
{
- icon_view->priv = GTK_ICON_VIEW_GET_PRIVATE (icon_view);
-
+ icon_view->priv = G_TYPE_INSTANCE_GET_PRIVATE (icon_view,
+ GTK_TYPE_ICON_VIEW,
+ GtkIconViewPrivate);
+
icon_view->priv->width = 0;
icon_view->priv->height = 0;
icon_view->priv->selection_mode = GTK_SELECTION_SINGLE;
diff --git a/gtk/gtkiconview.h b/gtk/gtkiconview.h
index dfb7688..5e85fc1 100644
--- a/gtk/gtkiconview.h
+++ b/gtk/gtkiconview.h
@@ -81,7 +81,8 @@ struct _GtkIconView
{
GtkContainer parent;
- GtkIconViewPrivate *GSEAL (priv);
+ /* <private> */
+ GtkIconViewPrivate *priv;
};
struct _GtkIconViewClass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]