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:
Matthias Clasen 2013-07-26 16:29:12 -04:00
parent 3358c544da
commit cda60c3c40
38 changed files with 327 additions and 274 deletions

View File

@ -253,19 +253,19 @@ gtk_message_row_class_init (GtkMessageRowClass *klass)
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
gtk_widget_class_set_template_from_resource (widget_class, "/listbox/listbox.ui");
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, content_label);
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, source_name);
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, source_nick);
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, short_time_label);
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, detailed_time_label);
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, extra_buttons_box);
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, details_revealer);
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, avatar_image);
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, resent_box);
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, resent_by_button);
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, n_reshares_label);
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, n_favorites_label);
gtk_widget_class_bind_template_child (widget_class, GtkMessageRow, expand_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, content_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, source_name);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, source_nick);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, short_time_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, detailed_time_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, extra_buttons_box);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, details_revealer);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, avatar_image);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, resent_box);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, resent_by_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, n_reshares_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, n_favorites_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageRow, expand_button);
gtk_widget_class_bind_template_callback (widget_class, expand_clicked);
gtk_widget_class_bind_template_callback (widget_class, reshare_clicked);
gtk_widget_class_bind_template_callback (widget_class, favorite_clicked);

View File

@ -5516,9 +5516,11 @@ gtk_widget_class_set_template_from_resource
gtk_widget_get_template_child
gtk_widget_class_bind_template_child
gtk_widget_class_bind_template_child_internal
gtk_widget_class_bind_template_child_private
gtk_widget_class_bind_template_child_internal_private
gtk_widget_class_bind_template_child_full
gtk_widget_class_bind_callback
gtk_widget_class_declare_callback
gtk_widget_class_bind_template_callback
gtk_widget_class_bind_template_callback_full
gtk_widget_class_set_connect_func
<SUBSECTION Standard>

View File

@ -32,7 +32,7 @@ example_app_window_class_init (ExampleAppWindowClass *class)
{
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
"/org/gtk/exampleapp/window.ui");
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
}
ExampleAppWindow *

View File

@ -32,7 +32,7 @@ example_app_window_class_init (ExampleAppWindowClass *class)
{
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
"/org/gtk/exampleapp/window.ui");
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
}
ExampleAppWindow *

View File

@ -57,7 +57,7 @@ example_app_window_class_init (ExampleAppWindowClass *class)
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
"/org/gtk/exampleapp/window.ui");
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
}
ExampleAppWindow *

View File

@ -59,9 +59,9 @@ example_app_prefs_class_init (ExampleAppPrefsClass *class)
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
"/org/gtk/exampleapp/prefs.ui");
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, font);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, close);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppPrefs, font);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppPrefs, close);
}
ExampleAppPrefs *

View File

@ -54,7 +54,7 @@ example_app_window_class_init (ExampleAppWindowClass *class)
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
"/org/gtk/exampleapp/window.ui");
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
}
ExampleAppWindow *

View File

@ -63,9 +63,9 @@ example_app_prefs_class_init (ExampleAppPrefsClass *class)
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
"/org/gtk/exampleapp/prefs.ui");
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, font);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, close);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppPrefs, font);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppPrefs, close);
}
ExampleAppPrefs *

View File

@ -116,10 +116,10 @@ example_app_window_class_init (ExampleAppWindowClass *class)
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
"/org/gtk/exampleapp/window.ui");
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, search);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchbar);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchentry);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, search);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchbar);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchentry);
}
ExampleAppWindow *

View File

@ -63,9 +63,9 @@ example_app_prefs_class_init (ExampleAppPrefsClass *class)
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
"/org/gtk/exampleapp/prefs.ui");
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, font);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, close);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppPrefs, font);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppPrefs, close);
}
ExampleAppPrefs *

View File

@ -219,13 +219,13 @@ example_app_window_class_init (ExampleAppWindowClass *class)
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
"/org/gtk/exampleapp/window.ui");
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, search);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchbar);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchentry);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, gears);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, words);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, sidebar);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, search);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchbar);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchentry);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, gears);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, words);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, sidebar);
}
ExampleAppWindow *

View File

@ -63,9 +63,9 @@ example_app_prefs_class_init (ExampleAppPrefsClass *class)
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
"/org/gtk/exampleapp/prefs.ui");
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, font);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, close);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppPrefs, font);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppPrefs, close);
}
ExampleAppPrefs *

View File

@ -265,15 +265,15 @@ example_app_window_class_init (ExampleAppWindowClass *class)
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
"/org/gtk/exampleapp/window.ui");
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, search);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchbar);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchentry);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, gears);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, words);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, sidebar);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, lines);
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, lines_label);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, search);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchbar);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchentry);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, gears);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, words);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, sidebar);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, lines);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, lines_label);
}
ExampleAppWindow *

View File

@ -557,18 +557,18 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkaboutdialog.ui");
gtk_widget_class_bind_template_child (widget_class, GtkAboutDialog, notebook);
gtk_widget_class_bind_template_child (widget_class, GtkAboutDialog, logo_image);
gtk_widget_class_bind_template_child (widget_class, GtkAboutDialog, name_label);
gtk_widget_class_bind_template_child (widget_class, GtkAboutDialog, version_label);
gtk_widget_class_bind_template_child (widget_class, GtkAboutDialog, comments_label);
gtk_widget_class_bind_template_child (widget_class, GtkAboutDialog, copyright_label);
gtk_widget_class_bind_template_child (widget_class, GtkAboutDialog, license_label);
gtk_widget_class_bind_template_child (widget_class, GtkAboutDialog, website_label);
gtk_widget_class_bind_template_child (widget_class, GtkAboutDialog, credits_button);
gtk_widget_class_bind_template_child (widget_class, GtkAboutDialog, license_button);
gtk_widget_class_bind_template_child (widget_class, GtkAboutDialog, credits_grid);
gtk_widget_class_bind_template_child (widget_class, GtkAboutDialog, license_view);
gtk_widget_class_bind_template_child_private (widget_class, GtkAboutDialog, notebook);
gtk_widget_class_bind_template_child_private (widget_class, GtkAboutDialog, logo_image);
gtk_widget_class_bind_template_child_private (widget_class, GtkAboutDialog, name_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkAboutDialog, version_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkAboutDialog, comments_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkAboutDialog, copyright_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkAboutDialog, license_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkAboutDialog, website_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkAboutDialog, credits_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkAboutDialog, license_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkAboutDialog, credits_grid);
gtk_widget_class_bind_template_child_private (widget_class, GtkAboutDialog, license_view);
gtk_widget_class_bind_template_callback (widget_class, credits_button_clicked);
gtk_widget_class_bind_template_callback (widget_class, license_button_clicked);

View File

@ -660,10 +660,10 @@ gtk_app_chooser_dialog_class_init (GtkAppChooserDialogClass *klass)
widget_class = GTK_WIDGET_CLASS (klass);
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkappchooserdialog.ui");
gtk_widget_class_bind_template_child (widget_class, GtkAppChooserDialog, label);
gtk_widget_class_bind_template_child (widget_class, GtkAppChooserDialog, button);
gtk_widget_class_bind_template_child (widget_class, GtkAppChooserDialog, show_more_button);
gtk_widget_class_bind_template_child (widget_class, GtkAppChooserDialog, inner_box);
gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserDialog, label);
gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserDialog, button);
gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserDialog, show_more_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserDialog, inner_box);
gtk_widget_class_bind_template_callback (widget_class, show_more_button_clicked_cb);
}

View File

@ -1086,11 +1086,11 @@ gtk_app_chooser_widget_class_init (GtkAppChooserWidgetClass *klass)
widget_class = GTK_WIDGET_CLASS (klass);
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkappchooserwidget.ui");
gtk_widget_class_bind_template_child (widget_class, GtkAppChooserWidget, program_list);
gtk_widget_class_bind_template_child (widget_class, GtkAppChooserWidget, program_list_store);
gtk_widget_class_bind_template_child (widget_class, GtkAppChooserWidget, column);
gtk_widget_class_bind_template_child (widget_class, GtkAppChooserWidget, padding_renderer);
gtk_widget_class_bind_template_child (widget_class, GtkAppChooserWidget, secondary_padding);
gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserWidget, program_list);
gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserWidget, program_list_store);
gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserWidget, column);
gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserWidget, padding_renderer);
gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserWidget, secondary_padding);
gtk_widget_class_bind_template_callback (widget_class, refresh_and_emit_app_selected);
gtk_widget_class_bind_template_callback (widget_class, program_list_selection_activated);
gtk_widget_class_bind_template_callback (widget_class, widget_button_press_event_cb);

View File

@ -431,17 +431,17 @@ gtk_assistant_class_init (GtkAssistantClass *class)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkassistant.ui");
gtk_widget_class_bind_template_child_internal (widget_class, GtkAssistant, action_area);
gtk_widget_class_bind_template_child (widget_class, GtkAssistant, content);
gtk_widget_class_bind_template_child (widget_class, GtkAssistant, cancel);
gtk_widget_class_bind_template_child (widget_class, GtkAssistant, forward);
gtk_widget_class_bind_template_child (widget_class, GtkAssistant, back);
gtk_widget_class_bind_template_child (widget_class, GtkAssistant, apply);
gtk_widget_class_bind_template_child (widget_class, GtkAssistant, close);
gtk_widget_class_bind_template_child (widget_class, GtkAssistant, last);
gtk_widget_class_bind_template_child (widget_class, GtkAssistant, sidebar);
gtk_widget_class_bind_template_child (widget_class, GtkAssistant, button_size_group);
gtk_widget_class_bind_template_child (widget_class, GtkAssistant, title_size_group);
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkAssistant, action_area);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, content);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, cancel);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, forward);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, back);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, apply);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, close);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, last);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, sidebar);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, button_size_group);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, title_size_group);
gtk_widget_class_bind_template_callback (widget_class, assistant_sidebar_draw_cb);
gtk_widget_class_bind_template_callback (widget_class, assistant_remove_page_cb);

View File

@ -202,9 +202,9 @@ gtk_color_chooser_dialog_class_init (GtkColorChooserDialogClass *class)
*/
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkcolorchooserdialog.ui");
gtk_widget_class_bind_template_child (widget_class, GtkColorChooserDialog, chooser);
gtk_widget_class_bind_template_child (widget_class, GtkColorChooserDialog, cancel_button);
gtk_widget_class_bind_template_child (widget_class, GtkColorChooserDialog, select_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorChooserDialog, chooser);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorChooserDialog, cancel_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorChooserDialog, select_button);
gtk_widget_class_bind_template_callback (widget_class, selected_cb);
gtk_widget_class_bind_template_callback (widget_class, propagate_notify);
gtk_widget_class_bind_template_callback (widget_class, color_activated_cb);

View File

@ -464,24 +464,24 @@ gtk_color_editor_class_init (GtkColorEditorClass *class)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkcoloreditor.ui");
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, overlay);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, grid);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, swatch);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, entry);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, h_slider);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, h_popup);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, h_entry);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, a_slider);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, a_popup);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, a_entry);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, sv_plane);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, sv_popup);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, s_entry);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, v_entry);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, h_adj);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, s_adj);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, v_adj);
gtk_widget_class_bind_template_child (widget_class, GtkColorEditor, a_adj);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, overlay);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, grid);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, swatch);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, entry);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, h_slider);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, h_popup);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, h_entry);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, a_slider);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, a_popup);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, a_entry);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, sv_plane);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, sv_popup);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, s_entry);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, v_entry);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, h_adj);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, s_adj);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, v_adj);
gtk_widget_class_bind_template_child_private (widget_class, GtkColorEditor, a_adj);
gtk_widget_class_bind_template_callback (widget_class, hsv_changed);
gtk_widget_class_bind_template_callback (widget_class, popup_draw);

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_template_child_internal (widget_class, GtkDialog, vbox);
gtk_widget_class_bind_template_child_internal (widget_class, GtkDialog, action_area);
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkDialog, vbox);
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkDialog, action_area);
gtk_widget_class_bind_template_callback (widget_class, gtk_dialog_delete_event_handler);
}

View File

@ -472,13 +472,13 @@ gtk_file_chooser_button_class_init (GtkFileChooserButtonClass * class)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkfilechooserbutton.ui");
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserButton, model);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserButton, button);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserButton, image);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserButton, label);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserButton, combo_box);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserButton, icon_cell);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserButton, name_cell);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserButton, model);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserButton, button);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserButton, image);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserButton, label);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserButton, combo_box);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserButton, icon_cell);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserButton, name_cell);
gtk_widget_class_bind_template_callback (widget_class, button_clicked_cb);
gtk_widget_class_bind_template_callback (widget_class, combo_box_changed_cb);

View File

@ -7464,33 +7464,33 @@ _gtk_file_chooser_default_class_init (GtkFileChooserDefaultClass *class)
"/org/gtk/libgtk/gtkfilechooserdefault.ui");
/* A *lot* of widgets that we need to handle .... */
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_widgets_box);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_widgets_hpaned);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_header_box);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_widgets_box);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, places_sidebar);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_files_tree_view);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_new_folder_button);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_path_bar_hbox);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_path_bar_size_group);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_path_bar);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_special_mode_icon);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_special_mode_label);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_select_a_folder_info_bar);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_select_a_folder_label);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, browse_select_a_folder_icon);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, filter_combo_hbox);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, filter_combo);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, preview_box);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, extra_align);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, location_button);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, location_entry_box);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, location_label);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, list_name_column);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, list_pixbuf_renderer);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, list_name_renderer);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, list_mtime_column);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDefault, list_size_column);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_widgets_box);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_widgets_hpaned);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_header_box);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_widgets_box);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, places_sidebar);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_files_tree_view);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_new_folder_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_path_bar_hbox);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_path_bar_size_group);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_path_bar);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_special_mode_icon);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_special_mode_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_select_a_folder_info_bar);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_select_a_folder_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, browse_select_a_folder_icon);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, filter_combo_hbox);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, filter_combo);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, preview_box);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, extra_align);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, location_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, location_entry_box);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, location_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, list_name_column);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, list_pixbuf_renderer);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, list_name_renderer);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, list_mtime_column);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDefault, list_size_column);
/* And a *lot* of callbacks to bind ... */
gtk_widget_class_bind_template_callback (widget_class, browse_files_key_press_event_cb);

View File

@ -248,7 +248,7 @@ gtk_file_chooser_dialog_class_init (GtkFileChooserDialogClass *class)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkfilechooserdialog.ui");
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserDialog, widget);
gtk_widget_class_bind_template_child_private (widget_class, GtkFileChooserDialog, widget);
gtk_widget_class_bind_template_callback (widget_class, response_cb);
gtk_widget_class_bind_template_callback (widget_class, file_chooser_widget_file_activated);
gtk_widget_class_bind_template_callback (widget_class, file_chooser_widget_default_size_changed);

View File

@ -545,9 +545,9 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
/* Bind class to template
*/
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/gtkfontbutton.ui");
gtk_widget_class_bind_template_child (widget_class, GtkFontButton, font_label);
gtk_widget_class_bind_template_child (widget_class, GtkFontButton, size_label);
gtk_widget_class_bind_template_child (widget_class, GtkFontButton, font_size_box);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontButton, font_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontButton, size_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontButton, font_size_box);
}
static void

View File

@ -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_template_child (widget_class, GtkFontChooserDialog, fontchooser);
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserDialog, select_button);
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserDialog, cancel_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserDialog, fontchooser);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserDialog, select_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserDialog, cancel_button);
gtk_widget_class_bind_template_callback (widget_class, font_activated_cb);
}

View File

@ -482,17 +482,17 @@ gtk_font_chooser_widget_class_init (GtkFontChooserWidgetClass *klass)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkfontchooserwidget.ui");
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserWidget, search_entry);
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserWidget, family_face_list);
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserWidget, family_face_column);
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserWidget, family_face_cell);
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserWidget, list_scrolled_window);
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserWidget, list_notebook);
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserWidget, model);
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserWidget, filter_model);
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserWidget, preview);
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserWidget, size_spin);
gtk_widget_class_bind_template_child (widget_class, GtkFontChooserWidget, size_slider);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserWidget, search_entry);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserWidget, family_face_list);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserWidget, family_face_column);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserWidget, family_face_cell);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserWidget, list_scrolled_window);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserWidget, list_notebook);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserWidget, model);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserWidget, filter_model);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserWidget, preview);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserWidget, size_spin);
gtk_widget_class_bind_template_child_private (widget_class, GtkFontChooserWidget, size_slider);
gtk_widget_class_bind_template_callback (widget_class, text_changed_cb);
gtk_widget_class_bind_template_callback (widget_class, cursor_changed_cb);

View File

@ -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

View File

@ -307,11 +307,11 @@ gtk_lock_button_class_init (GtkLockButtonClass *klass)
/* Bind class to template
*/
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/gtklockbutton.ui");
gtk_widget_class_bind_template_child (widget_class, GtkLockButton, box);
gtk_widget_class_bind_template_child (widget_class, GtkLockButton, image);
gtk_widget_class_bind_template_child (widget_class, GtkLockButton, label_lock);
gtk_widget_class_bind_template_child (widget_class, GtkLockButton, label_unlock);
gtk_widget_class_bind_template_child (widget_class, GtkLockButton, label_group);
gtk_widget_class_bind_template_child_private (widget_class, GtkLockButton, box);
gtk_widget_class_bind_template_child_private (widget_class, GtkLockButton, image);
gtk_widget_class_bind_template_child_private (widget_class, GtkLockButton, label_lock);
gtk_widget_class_bind_template_child_private (widget_class, GtkLockButton, label_unlock);
gtk_widget_class_bind_template_child_private (widget_class, GtkLockButton, label_group);
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_LOCK_BUTTON_ACCESSIBLE);
}

View File

@ -295,10 +295,10 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
/* Setup Composite data */
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/gtkmessagedialog.ui");
gtk_widget_class_bind_template_child (widget_class, GtkMessageDialog, image);
gtk_widget_class_bind_template_child (widget_class, GtkMessageDialog, label);
gtk_widget_class_bind_template_child (widget_class, GtkMessageDialog, secondary_label);
gtk_widget_class_bind_template_child_internal (widget_class, GtkMessageDialog, message_area);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageDialog, image);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageDialog, label);
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageDialog, secondary_label);
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkMessageDialog, message_area);
}
static void

View File

@ -162,17 +162,17 @@ gtk_page_setup_unix_dialog_class_init (GtkPageSetupUnixDialogClass *class)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkpagesetupunixdialog.ui");
gtk_widget_class_bind_template_child (widget_class, GtkPageSetupUnixDialog, printer_list);
gtk_widget_class_bind_template_child (widget_class, GtkPageSetupUnixDialog, page_setup_list);
gtk_widget_class_bind_template_child (widget_class, GtkPageSetupUnixDialog, custom_paper_list);
gtk_widget_class_bind_template_child (widget_class, GtkPageSetupUnixDialog, printer_combo);
gtk_widget_class_bind_template_child (widget_class, GtkPageSetupUnixDialog, paper_size_combo);
gtk_widget_class_bind_template_child (widget_class, GtkPageSetupUnixDialog, paper_size_label);
gtk_widget_class_bind_template_child (widget_class, GtkPageSetupUnixDialog, paper_size_cell);
gtk_widget_class_bind_template_child (widget_class, GtkPageSetupUnixDialog, portrait_radio);
gtk_widget_class_bind_template_child (widget_class, GtkPageSetupUnixDialog, reverse_portrait_radio);
gtk_widget_class_bind_template_child (widget_class, GtkPageSetupUnixDialog, landscape_radio);
gtk_widget_class_bind_template_child (widget_class, GtkPageSetupUnixDialog, reverse_landscape_radio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPageSetupUnixDialog, printer_list);
gtk_widget_class_bind_template_child_private (widget_class, GtkPageSetupUnixDialog, page_setup_list);
gtk_widget_class_bind_template_child_private (widget_class, GtkPageSetupUnixDialog, custom_paper_list);
gtk_widget_class_bind_template_child_private (widget_class, GtkPageSetupUnixDialog, printer_combo);
gtk_widget_class_bind_template_child_private (widget_class, GtkPageSetupUnixDialog, paper_size_combo);
gtk_widget_class_bind_template_child_private (widget_class, GtkPageSetupUnixDialog, paper_size_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkPageSetupUnixDialog, paper_size_cell);
gtk_widget_class_bind_template_child_private (widget_class, GtkPageSetupUnixDialog, portrait_radio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPageSetupUnixDialog, reverse_portrait_radio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPageSetupUnixDialog, landscape_radio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPageSetupUnixDialog, reverse_landscape_radio);
gtk_widget_class_bind_template_callback (widget_class, printer_changed_callback);
gtk_widget_class_bind_template_callback (widget_class, paper_size_changed);

View File

@ -259,8 +259,8 @@ 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_template_child (widget_class, GtkPathBar, up_slider_button);
gtk_widget_class_bind_template_child (widget_class, GtkPathBar, down_slider_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkPathBar, up_slider_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkPathBar, down_slider_button);
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);

View File

@ -480,69 +480,69 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class)
"/org/gtk/libgtk/gtkprintunixdialog.ui");
/* GtkTreeView / GtkTreeModel */
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, printer_treeview);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, printer_list);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, printer_list_filter);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, page_setup_list);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, custom_paper_list);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, printer_icon_column);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, printer_name_column);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, printer_location_column);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, printer_status_column);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, printer_icon_renderer);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, printer_name_renderer);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, printer_location_renderer);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, printer_status_renderer);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, printer_treeview);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, printer_list);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, printer_list_filter);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, page_setup_list);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, custom_paper_list);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, printer_icon_column);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, printer_name_column);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, printer_location_column);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, printer_status_column);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, printer_icon_renderer);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, printer_name_renderer);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, printer_location_renderer);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, printer_status_renderer);
/* General Widgetry */
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, notebook);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, all_pages_radio);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, all_pages_radio);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, current_page_radio);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, selection_radio);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, range_table);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, page_range_radio);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, page_range_entry);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, copies_spin);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, collate_check);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, reverse_check);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, collate_image);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, page_layout_preview);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, scale_spin);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, page_set_combo);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, print_now_radio);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, print_at_radio);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, print_at_entry);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, print_hold_radio);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, preview_button);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, paper_size_combo);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, paper_size_combo_label);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, paper_size_renderer);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, orientation_combo);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, orientation_combo_label);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, conflicts_widget);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, job_page);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, finishing_table);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, finishing_page);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, image_quality_table);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, image_quality_page);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, color_table);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, color_page);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, advanced_vbox);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, advanced_page);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, extension_point);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, notebook);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, all_pages_radio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, all_pages_radio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, current_page_radio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, selection_radio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, range_table);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, page_range_radio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, page_range_entry);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, copies_spin);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, collate_check);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, reverse_check);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, collate_image);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, page_layout_preview);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, scale_spin);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, page_set_combo);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, print_now_radio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, print_at_radio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, print_at_entry);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, print_hold_radio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, preview_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, paper_size_combo);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, paper_size_combo_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, paper_size_renderer);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, orientation_combo);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, orientation_combo_label);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, conflicts_widget);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, job_page);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, finishing_table);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, finishing_page);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, image_quality_table);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, image_quality_page);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, color_table);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, color_page);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, advanced_vbox);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, advanced_page);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, extension_point);
/* GtkPrinterOptionWidgets... */
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, pages_per_sheet);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, duplex);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, paper_type);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, paper_source);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, output_tray);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, job_prio);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, billing_info);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, cover_before);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, cover_after);
gtk_widget_class_bind_template_child (widget_class, GtkPrintUnixDialog, number_up_layout);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, pages_per_sheet);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, duplex);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, paper_type);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, paper_source);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, output_tray);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, job_prio);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, billing_info);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, cover_before);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, cover_after);
gtk_widget_class_bind_template_child_private (widget_class, GtkPrintUnixDialog, number_up_layout);
/* Callbacks handled in the UI */
gtk_widget_class_bind_template_callback (widget_class, gtk_print_unix_dialog_destroy);

View File

@ -348,15 +348,15 @@ _gtk_recent_chooser_default_class_init (GtkRecentChooserDefaultClass *klass)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkrecentchooserdefault.ui");
gtk_widget_class_bind_template_child (widget_class, GtkRecentChooserDefault, filter_combo_hbox);
gtk_widget_class_bind_template_child (widget_class, GtkRecentChooserDefault, filter_combo);
gtk_widget_class_bind_template_child (widget_class, GtkRecentChooserDefault, recent_view);
gtk_widget_class_bind_template_child (widget_class, GtkRecentChooserDefault, recent_store);
gtk_widget_class_bind_template_child (widget_class, GtkRecentChooserDefault, icon_column);
gtk_widget_class_bind_template_child (widget_class, GtkRecentChooserDefault, meta_column);
gtk_widget_class_bind_template_child (widget_class, GtkRecentChooserDefault, icon_renderer);
gtk_widget_class_bind_template_child (widget_class, GtkRecentChooserDefault, meta_renderer);
gtk_widget_class_bind_template_child (widget_class, GtkRecentChooserDefault, selection);
gtk_widget_class_bind_template_child_private (widget_class, GtkRecentChooserDefault, filter_combo_hbox);
gtk_widget_class_bind_template_child_private (widget_class, GtkRecentChooserDefault, filter_combo);
gtk_widget_class_bind_template_child_private (widget_class, GtkRecentChooserDefault, recent_view);
gtk_widget_class_bind_template_child_private (widget_class, GtkRecentChooserDefault, recent_store);
gtk_widget_class_bind_template_child_private (widget_class, GtkRecentChooserDefault, icon_column);
gtk_widget_class_bind_template_child_private (widget_class, GtkRecentChooserDefault, meta_column);
gtk_widget_class_bind_template_child_private (widget_class, GtkRecentChooserDefault, icon_renderer);
gtk_widget_class_bind_template_child_private (widget_class, GtkRecentChooserDefault, meta_renderer);
gtk_widget_class_bind_template_child_private (widget_class, GtkRecentChooserDefault, selection);
gtk_widget_class_bind_template_callback (widget_class, selection_changed_cb);
gtk_widget_class_bind_template_callback (widget_class, row_activated_cb);

View File

@ -360,13 +360,13 @@ gtk_scale_button_class_init (GtkScaleButtonClass *klass)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gtk/libgtk/gtkscalebutton.ui");
gtk_widget_class_bind_template_child_internal (widget_class, GtkScaleButton, plus_button);
gtk_widget_class_bind_template_child_internal (widget_class, GtkScaleButton, minus_button);
gtk_widget_class_bind_template_child (widget_class, GtkScaleButton, dock);
gtk_widget_class_bind_template_child (widget_class, GtkScaleButton, box);
gtk_widget_class_bind_template_child (widget_class, GtkScaleButton, scale);
gtk_widget_class_bind_template_child (widget_class, GtkScaleButton, image);
gtk_widget_class_bind_template_child (widget_class, GtkScaleButton, adjustment);
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkScaleButton, plus_button);
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkScaleButton, minus_button);
gtk_widget_class_bind_template_child_private (widget_class, GtkScaleButton, dock);
gtk_widget_class_bind_template_child_private (widget_class, GtkScaleButton, box);
gtk_widget_class_bind_template_child_private (widget_class, GtkScaleButton, scale);
gtk_widget_class_bind_template_child_private (widget_class, GtkScaleButton, image);
gtk_widget_class_bind_template_child_private (widget_class, GtkScaleButton, adjustment);
gtk_widget_class_bind_template_callback (widget_class, cb_dock_button_press);
gtk_widget_class_bind_template_callback (widget_class, cb_dock_key_release);

View File

@ -413,10 +413,10 @@ gtk_search_bar_class_init (GtkSearchBarClass *klass)
g_object_class_install_properties (object_class, LAST_PROPERTY, widget_props);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/gtksearchbar.ui");
gtk_widget_class_bind_template_child_internal (widget_class, GtkSearchBar, toolbar);
gtk_widget_class_bind_template_child_internal (widget_class, GtkSearchBar, revealer);
gtk_widget_class_bind_template_child_internal (widget_class, GtkSearchBar, box_center);
gtk_widget_class_bind_template_child_internal (widget_class, GtkSearchBar, close_button);
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkSearchBar, toolbar);
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkSearchBar, revealer);
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkSearchBar, box_center);
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkSearchBar, close_button);
}
static void

View File

@ -180,9 +180,9 @@ gtk_statusbar_class_init (GtkStatusbarClass *class)
/* Bind class to template
*/
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/gtkstatusbar.ui");
gtk_widget_class_bind_template_child_internal (widget_class, GtkStatusbar, message_area);
gtk_widget_class_bind_template_child (widget_class, GtkStatusbar, frame);
gtk_widget_class_bind_template_child (widget_class, GtkStatusbar, label);
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkStatusbar, message_area);
gtk_widget_class_bind_template_child_private (widget_class, GtkStatusbar, frame);
gtk_widget_class_bind_template_child_private (widget_class, GtkStatusbar, label);
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_STATUSBAR_ACCESSIBLE);
}

View File

@ -15907,7 +15907,7 @@ gtk_widget_class_set_connect_func (GtkWidgetClass *widget_class,
}
/**
* gtk_widget_class_bind_template_child_full:
* gtk_widget_class_bind_template_child_private_full:
* @widget_class: A #GtkWidgetClass
* @name: The "id" of the child defined in the template XML
* @internal_child: Whether the child should be accessible as an "internal-child"
@ -15931,6 +15931,10 @@ gtk_widget_class_set_connect_func (GtkWidgetClass *widget_class,
* If @internal_child is specified, #GtkBuildableIface.get_internal_child() will be automatically
* implemented by the #GtkWidget class so there is no need to implement it manually.
*
* The wrapper macros gtk_widget_class_bind_template_child(), gtk_widget_class_bind_template_child_internal(),
* gtk_widget_class_bind_template_child_private() and gtk_widget_class_bind_private_template_child_internal()
* might be more convenient to use.
*
* <note><para>This must be called from a composite widget classes class
* initializer after calling gtk_widget_class_set_template()</para></note>
*
@ -15963,7 +15967,7 @@ gtk_widget_class_bind_template_child_full (GtkWidgetClass *widget_class,
*
* Fetch an object build from the template XML for @widget_type in this @widget instance.
*
* This will only report children which were previously declared with gtk_widget_class_bind_template_child_full() or one of its variants.
* This will only report children which were previously declared with gtk_widget_class_bind_template_child_private_full() or one of its variants.
*
* This function is only meant to be called for code which is private to the @widget_type which
* declared the child and is meant for language bindings which cannot easily make use

View File

@ -1180,8 +1180,53 @@ void gtk_widget_remove_tick_callback (GtkWidget *widget,
* gtk_widget_class_bind_template_child:
* @widget_class: a #GtkWidgetClass
* @TypeName: the type name of this widget
* @member_name: name of the instance private member on the
* private struct for @data_type
* @member_name: name of the instance member in the instance struct for @data_type
*
* Binds a child widget defined in a template to the @widget_class.
*
* This macro is a convenience wrapper around the
* gtk_widget_class_bind_template_child_full() function.
*
* This macro will use the offset of the @member_name inside the @TypeName
* instance structure.
*
* Since: 3.10
*/
#define gtk_widget_class_bind_template_child(widget_class, TypeName, member_name) \
gtk_widget_class_bind_template_child_full (widget_class, \
#member_name, \
FALSE, \
G_STRUCT_OFFSET (TypeName, member_name))
/**
* gtk_widget_class_bind_template_child_internal:
* @widget_class: a #GtkWidgetClass
* @TypeName: the type name, in CamelCase
* @member_name: name of the instance member in the instance struct for @data_type
*
* Binds a child widget defined in a template to the @widget_class, and
* also makes it available as an internal child in GtkBuilder, under the
* name @member_name.
*
* This macro is a convenience wrapper around the
* gtk_widget_class_bind_template_child_full() function.
*
* This macro will use the offset of the @member_name inside the @TypeName
* instance structure.
*
* Since: 3.10
*/
#define gtk_widget_class_bind_template_child_internal(widget_class, TypeName, member_name) \
gtk_widget_class_bind_template_child_full (widget_class, \
#member_name, \
TRUE, \
G_STRUCT_OFFSET (TypeName, member_name))
/**
* gtk_widget_class_bind_template_child_private:
* @widget_class: a #GtkWidgetClass
* @TypeName: the type name of this widget
* @member_name: name of the instance private member in the private struct for @data_type
*
* Binds a child widget defined in a template to the @widget_class.
*
@ -1194,19 +1239,21 @@ void gtk_widget_remove_tick_callback (GtkWidget *widget,
*
* Since: 3.10
*/
#define gtk_widget_class_bind_template_child(widget_class, TypeName, member_name) \
#define gtk_widget_class_bind_template_child_private(widget_class, TypeName, member_name) \
gtk_widget_class_bind_template_child_full (widget_class, \
#member_name, \
FALSE, \
G_PRIVATE_OFFSET (TypeName, member_name))
/**
* gtk_widget_class_bind_template_child_internal:
* gtk_widget_class_bind_template_child_internal_private:
* @widget_class: a #GtkWidgetClass
* @TypeName: the type name, in CamelCase
* @member_name: name of the instance private member on @private_data_type
* @member_name: name of the instance private member on the private struct for @data_type
*
* Binds a child widget defined in a template to the @widget_class.
* Binds a child widget defined in a template to the @widget_class, and
* also makes it available as an internal child in GtkBuilder, under the
* name @member_name.
*
* This macro is a convenience wrapper around the
* gtk_widget_class_bind_template_child_full() function.
@ -1216,7 +1263,7 @@ void gtk_widget_remove_tick_callback (GtkWidget *widget,
*
* Since: 3.10
*/
#define gtk_widget_class_bind_template_child_internal(widget_class, TypeName, member_name) \
#define gtk_widget_class_bind_template_child_internal_private(widget_class, TypeName, member_name) \
gtk_widget_class_bind_template_child_full (widget_class, \
#member_name, \
TRUE, \