mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 19:30:10 +00:00
gtkcolorbutton: unseal private pointer
This commit is contained in:
parent
06dfffa132
commit
ad45f1ce9d
@ -50,7 +50,6 @@
|
||||
#define CHECK_DARK 21845 /* 65535 / 3 */
|
||||
#define CHECK_LIGHT 43690
|
||||
|
||||
#define GTK_COLOR_BUTTON_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_COLOR_BUTTON, GtkColorButtonPrivate))
|
||||
|
||||
struct _GtkColorButtonPrivate
|
||||
{
|
||||
@ -528,7 +527,9 @@ gtk_color_button_init (GtkColorButton *color_button)
|
||||
PangoRectangle rect;
|
||||
|
||||
/* Create the widgets */
|
||||
color_button->priv = GTK_COLOR_BUTTON_GET_PRIVATE (color_button);
|
||||
color_button->priv = G_TYPE_INSTANCE_GET_PRIVATE (color_button,
|
||||
GTK_TYPE_COLOR_BUTTON,
|
||||
GtkColorButtonPrivate);
|
||||
|
||||
gtk_widget_push_composite_child ();
|
||||
|
||||
|
@ -63,8 +63,7 @@ struct _GtkColorButton {
|
||||
GtkButton button;
|
||||
|
||||
/*< private >*/
|
||||
|
||||
GtkColorButtonPrivate *GSEAL (priv);
|
||||
GtkColorButtonPrivate *priv;
|
||||
};
|
||||
|
||||
struct _GtkColorButtonClass {
|
||||
|
Loading…
Reference in New Issue
Block a user