Another round of template binding api changes
We rename the gtk_widget_class_bind_template_child{_internal}
macros by appending a _private to their name. Otherwise, it
would be too magic to pass the 'public' names as arguments,
but affect a member of the Private struct. At the same time,
Add two new macros with the old names,
gtk_widget_class_bind_template_child{_internal} that operate
on members of the instance struct.
This commit is contained in:
@ -546,9 +546,9 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
|
||||
/* Bind class to template
|
||||
*/
|
||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/gtkinfobar.ui");
|
||||
gtk_widget_class_bind_template_child_internal (widget_class, GtkInfoBar, content_area);
|
||||
gtk_widget_class_bind_template_child_internal (widget_class, GtkInfoBar, action_area);
|
||||
gtk_widget_class_bind_template_child_internal (widget_class, GtkInfoBar, close_button);
|
||||
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkInfoBar, content_area);
|
||||
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkInfoBar, action_area);
|
||||
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkInfoBar, close_button);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user