[gtk+/refactor: 69/106] GtkLinkButton: unseal private pointer
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 69/106] GtkLinkButton: unseal private pointer
- Date: Tue, 13 Jul 2010 17:35:48 +0000 (UTC)
commit 93b93775592331827a805d87c0b764e42a40f866
Author: Javier Jardón <jjardon gnome org>
Date: Mon Jun 28 06:10:15 2010 +0200
GtkLinkButton: unseal private pointer
gtk/gtklinkbutton.c | 7 ++++---
gtk/gtklinkbutton.h | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c
index 0370d03..7bca09e 100644
--- a/gtk/gtklinkbutton.c
+++ b/gtk/gtklinkbutton.c
@@ -58,7 +58,6 @@ enum
PROP_VISITED
};
-#define GTK_LINK_BUTTON_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_LINK_BUTTON, GtkLinkButtonPrivate))
static void gtk_link_button_finalize (GObject *object);
static void gtk_link_button_get_property (GObject *object,
@@ -167,8 +166,10 @@ gtk_link_button_class_init (GtkLinkButtonClass *klass)
static void
gtk_link_button_init (GtkLinkButton *link_button)
{
- link_button->priv = GTK_LINK_BUTTON_GET_PRIVATE (link_button),
-
+ link_button->priv = G_TYPE_INSTANCE_GET_PRIVATE (link_button,
+ GTK_TYPE_LINK_BUTTON,
+ GtkLinkButtonPrivate);
+
gtk_button_set_relief (GTK_BUTTON (link_button), GTK_RELIEF_NONE);
g_signal_connect (link_button, "enter-notify-event",
diff --git a/gtk/gtklinkbutton.h b/gtk/gtklinkbutton.h
index a5e987e..a60c6bb 100644
--- a/gtk/gtklinkbutton.h
+++ b/gtk/gtklinkbutton.h
@@ -52,7 +52,7 @@ struct _GtkLinkButton
{
GtkButton parent_instance;
- GtkLinkButtonPrivate *GSEAL (priv);
+ GtkLinkButtonPrivate *priv;
};
struct _GtkLinkButtonClass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]