[gtk+/refactor: 101/106] gtkspinner: Remove GET_PRIVATE macro
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 101/106] gtkspinner: Remove GET_PRIVATE macro
- Date: Tue, 13 Jul 2010 17:38:30 +0000 (UTC)
commit da368290943f13dc59e7c55abb213b53db7076fb
Author: Javier Jardón <jjardon gnome org>
Date: Tue Jul 13 01:09:28 2010 +0200
gtkspinner: Remove GET_PRIVATE macro
gtk/gtkspinner.c | 6 +++---
gtk/gtkspinner.h | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c
index f3fbfff..a4ab26a 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -53,8 +53,6 @@
*/
-#define GTK_SPINNER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_SPINNER, GtkSpinnerPrivate))
-
G_DEFINE_TYPE (GtkSpinner, gtk_spinner, GTK_TYPE_DRAWING_AREA);
enum {
@@ -204,7 +202,9 @@ gtk_spinner_init (GtkSpinner *spinner)
{
GtkSpinnerPrivate *priv;
- priv = GTK_SPINNER_GET_PRIVATE (spinner);
+ priv = G_TYPE_INSTANCE_GET_PRIVATE (spinner,
+ GTK_TYPE_SPINNER,
+ GtkSpinnerPrivate);
priv->current = 0;
priv->timeout = 0;
diff --git a/gtk/gtkspinner.h b/gtk/gtkspinner.h
index 6f9aa72..5e8fb37 100644
--- a/gtk/gtkspinner.h
+++ b/gtk/gtkspinner.h
@@ -47,6 +47,8 @@ typedef struct _GtkSpinnerPrivate GtkSpinnerPrivate;
struct _GtkSpinner
{
GtkDrawingArea parent;
+
+ /* <private> */
GtkSpinnerPrivate *priv;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]