[gtk+] GtkTreeModelFilter: unseal private pointer
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkTreeModelFilter: unseal private pointer
- Date: Wed, 14 Jul 2010 00:31:22 +0000 (UTC)
commit 66c0673a416a1482edce3eee45d7dde51147f489
Author: Javier Jardón <jjardon gnome org>
Date: Wed Jul 14 02:19:36 2010 +0200
GtkTreeModelFilter: unseal private pointer
gtk/gtktreemodelfilter.c | 5 +++--
gtk/gtktreemodelfilter.h | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktreemodelfilter.c b/gtk/gtktreemodelfilter.c
index c60ac06..5530443 100644
--- a/gtk/gtktreemodelfilter.c
+++ b/gtk/gtktreemodelfilter.c
@@ -76,7 +76,6 @@ struct _FilterLevel
FilterLevel *parent_level;
};
-#define GTK_TREE_MODEL_FILTER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_TREE_MODEL_FILTER, GtkTreeModelFilterPrivate))
struct _GtkTreeModelFilterPrivate
{
@@ -296,7 +295,9 @@ G_DEFINE_TYPE_WITH_CODE (GtkTreeModelFilter, gtk_tree_model_filter, G_TYPE_OBJEC
static void
gtk_tree_model_filter_init (GtkTreeModelFilter *filter)
{
- filter->priv = GTK_TREE_MODEL_FILTER_GET_PRIVATE (filter);
+ filter->priv = G_TYPE_INSTANCE_GET_PRIVATE (filter,
+ GTK_TYPE_TREE_MODEL_FILTER,
+ GtkTreeModelFilterPrivate);
filter->priv->visible_column = -1;
filter->priv->zero_ref_count = 0;
diff --git a/gtk/gtktreemodelfilter.h b/gtk/gtktreemodelfilter.h
index 653e395..fcb03e4 100644
--- a/gtk/gtktreemodelfilter.h
+++ b/gtk/gtktreemodelfilter.h
@@ -55,7 +55,7 @@ struct _GtkTreeModelFilter
GObject parent;
/*< private >*/
- GtkTreeModelFilterPrivate *GSEAL (priv);
+ GtkTreeModelFilterPrivate *priv;
};
struct _GtkTreeModelFilterClass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]