gtkfontbutton: unseal private pointer

This commit is contained in:
Javier Jardón 2010-06-04 23:57:59 +02:00
parent 0991115ada
commit f86456ccb5
2 changed files with 4 additions and 3 deletions

View File

@ -44,7 +44,6 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#define GTK_FONT_BUTTON_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_FONT_BUTTON, GtkFontButtonPrivate))
struct _GtkFontButtonPrivate struct _GtkFontButtonPrivate
{ {
@ -253,7 +252,9 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
static void static void
gtk_font_button_init (GtkFontButton *font_button) gtk_font_button_init (GtkFontButton *font_button)
{ {
font_button->priv = GTK_FONT_BUTTON_GET_PRIVATE (font_button); font_button->priv = G_TYPE_INSTANCE_GET_PRIVATE (font_button,
GTK_TYPE_FONT_BUTTON,
GtkFontButtonPrivate);
/* Initialize fields */ /* Initialize fields */
font_button->priv->fontname = g_strdup (_("Sans 12")); font_button->priv->fontname = g_strdup (_("Sans 12"));

View File

@ -54,7 +54,7 @@ struct _GtkFontButton {
GtkButton button; GtkButton button;
/*< private >*/ /*< private >*/
GtkFontButtonPrivate *GSEAL (priv); GtkFontButtonPrivate *priv;
}; };
struct _GtkFontButtonClass { struct _GtkFontButtonClass {