[gtk] range: Use standard padding
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] range: Use standard padding
- Date: Mon, 27 May 2019 03:19:08 +0000 (UTC)
commit a2d2c8afc4509967e53dc5a840735e83876cada1
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 26 23:18:38 2019 -0400
range: Use standard padding
gtk/gtkrange.c | 1 +
gtk/gtkrange.h | 8 +++-----
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 06a0559b47..55ad3c37ee 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -69,6 +69,7 @@
typedef struct _GtkRangeStepTimer GtkRangeStepTimer;
+typedef struct _GtkRangePrivate GtkRangePrivate;
struct _GtkRangePrivate
{
GtkWidget *grab_location; /* "grabbed" mouse location, NULL for no grab */
diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h
index 60787e195a..13136cadde 100644
--- a/gtk/gtkrange.h
+++ b/gtk/gtkrange.h
@@ -44,7 +44,6 @@ G_BEGIN_DECLS
#define GTK_RANGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RANGE, GtkRangeClass))
typedef struct _GtkRange GtkRange;
-typedef struct _GtkRangePrivate GtkRangePrivate;
typedef struct _GtkRangeClass GtkRangeClass;
struct _GtkRange
@@ -77,10 +76,9 @@ struct _GtkRangeClass
gint *minimum,
gint *natural);
- /* Padding for future expansion */
- void (*_gtk_reserved1) (void);
- void (*_gtk_reserved2) (void);
- void (*_gtk_reserved3) (void);
+ /*< private > */
+
+ gpointer padding[8];
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]