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>
This commit is contained in:
committed by
Matthias Clasen
parent
45d2f677be
commit
a8e84545d1
@ -136,9 +136,9 @@ gtk_font_chooser_dialog_class_init (GtkFontChooserDialogClass *klass)
|
||||
gtk_widget_class_set_template_from_resource (widget_class,
|
||||
"/org/gtk/libgtk/gtkfontchooserdialog.ui");
|
||||
|
||||
gtk_widget_class_bind_child (widget_class, GtkFontChooserDialogPrivate, fontchooser);
|
||||
gtk_widget_class_bind_child (widget_class, GtkFontChooserDialogPrivate, select_button);
|
||||
gtk_widget_class_bind_child (widget_class, GtkFontChooserDialogPrivate, cancel_button);
|
||||
gtk_widget_class_bind_child (widget_class, GtkFontChooserDialog, fontchooser);
|
||||
gtk_widget_class_bind_child (widget_class, GtkFontChooserDialog, select_button);
|
||||
gtk_widget_class_bind_child (widget_class, GtkFontChooserDialog, cancel_button);
|
||||
gtk_widget_class_bind_callback (widget_class, font_activated_cb);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user