[gtk+/refactor: 89/106] gtkrecentmanager: unseal private pointer
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 89/106] gtkrecentmanager: unseal private pointer
- Date: Tue, 13 Jul 2010 17:49:32 +0000 (UTC)
commit f17a34599804d1c891b75cc35cb9ff030e705e46
Author: Javier Jardón <jjardon gnome org>
Date: Thu Jul 8 02:05:32 2010 +0200
gtkrecentmanager: unseal private pointer
gtk/gtkrecentmanager.c | 8 +++++---
gtk/gtkrecentmanager.h | 4 ++--
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c
index 8364235..7fe3d35 100644
--- a/gtk/gtkrecentmanager.c
+++ b/gtk/gtkrecentmanager.c
@@ -84,7 +84,6 @@ struct _GtkRecentInfo
gint ref_count;
};
-#define GTK_RECENT_MANAGER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_RECENT_MANAGER, GtkRecentManagerPrivate))
struct _GtkRecentManagerPrivate
{
@@ -276,8 +275,11 @@ gtk_recent_manager_init (GtkRecentManager *manager)
{
GtkRecentManagerPrivate *priv;
- manager->priv = priv = GTK_RECENT_MANAGER_GET_PRIVATE (manager);
-
+ manager->priv = G_TYPE_INSTANCE_GET_PRIVATE (manager,
+ GTK_TYPE_RECENT_MANAGER,
+ GtkRecentManagerPrivate);
+ priv = manager->priv;
+
priv->limit = DEFAULT_LIMIT;
priv->size = 0;
diff --git a/gtk/gtkrecentmanager.h b/gtk/gtkrecentmanager.h
index d13fcf4..950e53f 100644
--- a/gtk/gtkrecentmanager.h
+++ b/gtk/gtkrecentmanager.h
@@ -83,10 +83,10 @@ struct _GtkRecentData
struct _GtkRecentManager
{
- /*< private >*/
GObject parent_instance;
- GtkRecentManagerPrivate *GSEAL (priv);
+ /* <private> */
+ GtkRecentManagerPrivate *priv;
};
struct _GtkRecentManagerClass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]