Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
gtk
Commits
f86456cc
Commit
f86456cc
authored
Jun 04, 2010
by
Javier Jardón
Browse files
gtkfontbutton: unseal private pointer
parent
0991115a
Changes
2
Hide whitespace changes
Inline
Side-by-side
gtk/gtkfontbutton.c
View file @
f86456cc
...
...
@@ -44,7 +44,6 @@
#include
<string.h>
#include
<stdio.h>
#define GTK_FONT_BUTTON_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_FONT_BUTTON, GtkFontButtonPrivate))
struct
_GtkFontButtonPrivate
{
...
...
@@ -253,7 +252,9 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
static
void
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 */
font_button
->
priv
->
fontname
=
g_strdup
(
_
(
"Sans 12"
));
...
...
gtk/gtkfontbutton.h
View file @
f86456cc
...
...
@@ -54,7 +54,7 @@ struct _GtkFontButton {
GtkButton
button
;
/*< private >*/
GtkFontButtonPrivate
*
GSEAL
(
priv
)
;
GtkFontButtonPrivate
*
priv
;
};
struct
_GtkFontButtonClass
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment