Rename the widget template API
The macros and functions are inconsistently named, and are not tied to the "template" concept - to the point that it seems plausible to use them without setting the template. The new naming scheme is as follows: gtk_widget_class_bind_template_child_full gtk_widget_class_bind_template_callback_full With the convenience macros: gtk_widget_class_bind_template_child gtk_widget_class_bind_template_child_internal gtk_widget_class_bind_template_callback https://bugzilla.gnome.org/show_bug.cgi?id=700898 https://bugzilla.gnome.org/show_bug.cgi?id=700896
This commit is contained in:
committed by
Matthias Clasen
parent
62aa54f536
commit
89ae3524a3
@ -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_child_internal (widget_class, GtkInfoBar, content_area);
|
||||
gtk_widget_class_bind_child_internal (widget_class, GtkInfoBar, action_area);
|
||||
gtk_widget_class_bind_child_internal (widget_class, GtkInfoBar, close_button);
|
||||
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);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user