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:
Alexander Larsson
2013-07-26 08:41:09 -04:00
committed by Matthias Clasen
parent 45d2f677be
commit a8e84545d1
37 changed files with 283 additions and 288 deletions

View File

@ -331,8 +331,8 @@ gtk_dialog_class_init (GtkDialogClass *class)
/* Bind class to template
*/
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/gtkdialog.ui");
gtk_widget_class_bind_child_internal (widget_class, GtkDialogPrivate, vbox);
gtk_widget_class_bind_child_internal (widget_class, GtkDialogPrivate, action_area);
gtk_widget_class_bind_child_internal (widget_class, GtkDialog, vbox);
gtk_widget_class_bind_child_internal (widget_class, GtkDialog, action_area);
gtk_widget_class_bind_callback (widget_class, gtk_dialog_delete_event_handler);
}