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:
Emmanuele Bassi
2013-07-26 13:49:49 -04:00
committed by Matthias Clasen
parent 62aa54f536
commit 89ae3524a3
39 changed files with 472 additions and 459 deletions

View File

@ -259,16 +259,16 @@ gtk_path_bar_class_init (GtkPathBarClass *path_bar_class)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkpathbar.ui");
gtk_widget_class_bind_child (widget_class, GtkPathBar, up_slider_button);
gtk_widget_class_bind_child (widget_class, GtkPathBar, down_slider_button);
gtk_widget_class_bind_template_child (widget_class, GtkPathBar, up_slider_button);
gtk_widget_class_bind_template_child (widget_class, GtkPathBar, down_slider_button);
gtk_widget_class_bind_callback (widget_class, gtk_path_bar_slider_button_press);
gtk_widget_class_bind_callback (widget_class, gtk_path_bar_slider_button_release);
gtk_widget_class_bind_callback (widget_class, gtk_path_bar_slider_up_defocus);
gtk_widget_class_bind_callback (widget_class, gtk_path_bar_slider_down_defocus);
gtk_widget_class_bind_callback (widget_class, gtk_path_bar_scroll_up);
gtk_widget_class_bind_callback (widget_class, gtk_path_bar_scroll_down);
gtk_widget_class_bind_callback (widget_class, on_slider_unmap);
gtk_widget_class_bind_template_callback (widget_class, gtk_path_bar_slider_button_press);
gtk_widget_class_bind_template_callback (widget_class, gtk_path_bar_slider_button_release);
gtk_widget_class_bind_template_callback (widget_class, gtk_path_bar_slider_up_defocus);
gtk_widget_class_bind_template_callback (widget_class, gtk_path_bar_slider_down_defocus);
gtk_widget_class_bind_template_callback (widget_class, gtk_path_bar_scroll_up);
gtk_widget_class_bind_template_callback (widget_class, gtk_path_bar_scroll_down);
gtk_widget_class_bind_template_callback (widget_class, on_slider_unmap);
}