diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-07-26 08:41:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-07-26 08:41:09 -0400 |
commit | a8e84545d15abb477d6d97f56adb046b70befa48 (patch) | |
tree | ac06aad5ee6a6f053841f6af79b3074b150be35f /gtk/gtkfontbutton.c | |
parent | 45d2f677bef40d32b17da7856119babeabf4438c (diff) | |
download | gtk+-a8e84545d15abb477d6d97f56adb046b70befa48.tar.gz |
widget: Use a real offset in gtk_widget_class_automate_child
Using an offset from the struct means you can have children in
both the public and private (via G_PRIVATE_OFFSET) parts of the
instance. It also matches the new private macros nicer.
https://bugzilla.gnome.org/show_bug.cgi?id=702563
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
Diffstat (limited to 'gtk/gtkfontbutton.c')
-rw-r--r-- | gtk/gtkfontbutton.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c index 529a13dcc3..793130d789 100644 --- a/gtk/gtkfontbutton.c +++ b/gtk/gtkfontbutton.c @@ -545,9 +545,9 @@ gtk_font_button_class_init (GtkFontButtonClass *klass) /* Bind class to template */ gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/gtkfontbutton.ui"); - gtk_widget_class_bind_child (widget_class, GtkFontButtonPrivate, font_label); - gtk_widget_class_bind_child (widget_class, GtkFontButtonPrivate, size_label); - gtk_widget_class_bind_child (widget_class, GtkFontButtonPrivate, font_size_box); + gtk_widget_class_bind_child (widget_class, GtkFontButton, font_label); + gtk_widget_class_bind_child (widget_class, GtkFontButton, size_label); + gtk_widget_class_bind_child (widget_class, GtkFontButton, font_size_box); } static void |