forked from AuroraMiddleware/gtk
GtkExpander: unseal private pointer
This commit is contained in:
parent
a2fef51b64
commit
6fae72c419
@ -35,7 +35,6 @@
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#include "gtkdnd.h"
|
||||
|
||||
#define GTK_EXPANDER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_EXPANDER, GtkExpanderPrivate))
|
||||
|
||||
#define DEFAULT_EXPANDER_SIZE 10
|
||||
#define DEFAULT_EXPANDER_SPACING 2
|
||||
@ -263,7 +262,9 @@ gtk_expander_init (GtkExpander *expander)
|
||||
{
|
||||
GtkExpanderPrivate *priv;
|
||||
|
||||
expander->priv = priv = GTK_EXPANDER_GET_PRIVATE (expander);
|
||||
expander->priv = priv = G_TYPE_INSTANCE_GET_PRIVATE (expander,
|
||||
GTK_TYPE_EXPANDER,
|
||||
GtkExpanderPrivate);
|
||||
|
||||
gtk_widget_set_can_focus (GTK_WIDGET (expander), TRUE);
|
||||
gtk_widget_set_has_window (GTK_WIDGET (expander), FALSE);
|
||||
|
@ -47,7 +47,7 @@ struct _GtkExpander
|
||||
{
|
||||
GtkBin bin;
|
||||
|
||||
GtkExpanderPrivate *GSEAL (priv);
|
||||
GtkExpanderPrivate *priv;
|
||||
};
|
||||
|
||||
struct _GtkExpanderClass
|
||||
|
Loading…
Reference in New Issue
Block a user