Commit a8e84545 authored by Alexander Larsson's avatar Alexander Larsson Committed by Matthias Clasen
Browse files

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's avatarEmmanuele Bassi <ebassi@gnome.org>
parent 45d2f677
......@@ -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_child(widget_class, GtkMessageRowPrivate, content_label);
gtk_widget_class_bind_child(widget_class, GtkMessageRowPrivate, source_name);
gtk_widget_class_bind_child(widget_class, GtkMessageRowPrivate, source_nick);
gtk_widget_class_bind_child(widget_class, GtkMessageRowPrivate, short_time_label);
gtk_widget_class_bind_child(widget_class, GtkMessageRowPrivate, detailed_time_label);
gtk_widget_class_bind_child(widget_class, GtkMessageRowPrivate, extra_buttons_box);
gtk_widget_class_bind_child(widget_class, GtkMessageRowPrivate, details_revealer);
gtk_widget_class_bind_child(widget_class, GtkMessageRowPrivate, avatar_image);
gtk_widget_class_bind_child(widget_class, GtkMessageRowPrivate, resent_box);
gtk_widget_class_bind_child(widget_class, GtkMessageRowPrivate, resent_by_button);
gtk_widget_class_bind_child(widget_class, GtkMessageRowPrivate, n_reshares_label);
gtk_widget_class_bind_child(widget_class, GtkMessageRowPrivate, n_favorites_label);
gtk_widget_class_bind_child(widget_class, GtkMessageRowPrivate, expand_button);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, content_label);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, source_name);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, source_nick);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, short_time_label);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, detailed_time_label);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, extra_buttons_box);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, details_revealer);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, avatar_image);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, resent_box);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, resent_by_button);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, n_reshares_label);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, n_favorites_label);
gtk_widget_class_bind_child (widget_class, GtkMessageRow, expand_button);
gtk_widget_class_bind_callback (widget_class, expand_clicked);
gtk_widget_class_bind_callback (widget_class, reshare_clicked);
gtk_widget_class_bind_callback (widget_class, favorite_clicked);
......
......@@ -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_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, stack);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
}
ExampleAppWindow *
......
......@@ -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_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, stack);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
}
ExampleAppWindow *
......
......@@ -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_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, stack);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
}
ExampleAppWindow *
......
......@@ -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_child (GTK_WIDGET_CLASS (class), ExampleAppPrefsPrivate, font);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefsPrivate, transition);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefsPrivate, close);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, font);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, close);
}
ExampleAppPrefs *
......
......@@ -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_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, stack);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
}
ExampleAppWindow *
......
......@@ -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_child (GTK_WIDGET_CLASS (class), ExampleAppPrefsPrivate, font);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefsPrivate, transition);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefsPrivate, close);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, font);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, close);
}
ExampleAppPrefs *
......
......@@ -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_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, stack);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, search);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, searchbar);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, searchentry);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, search);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchbar);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchentry);
}
ExampleAppWindow *
......
......@@ -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_child (GTK_WIDGET_CLASS (class), ExampleAppPrefsPrivate, font);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefsPrivate, transition);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefsPrivate, close);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, font);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, close);
}
ExampleAppPrefs *
......
......@@ -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_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, stack);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, search);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, searchbar);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, searchentry);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, gears);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, words);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, sidebar);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, search);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchbar);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchentry);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, gears);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, words);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, sidebar);
}
ExampleAppWindow *
......
......@@ -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_child (GTK_WIDGET_CLASS (class), ExampleAppPrefsPrivate, font);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefsPrivate, transition);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefsPrivate, close);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, font);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, close);
}
ExampleAppPrefs *
......
......@@ -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_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, stack);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, search);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, searchbar);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, searchentry);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, gears);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, words);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, sidebar);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, lines);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, lines_label);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, search);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchbar);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, searchentry);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, gears);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, words);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, sidebar);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, lines);
gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindow, lines_label);
}
ExampleAppWindow *
......
......@@ -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_child (widget_class, GtkAboutDialogPrivate, notebook);
gtk_widget_class_bind_child (widget_class, GtkAboutDialogPrivate, logo_image);
gtk_widget_class_bind_child (widget_class, GtkAboutDialogPrivate, name_label);
gtk_widget_class_bind_child (widget_class, GtkAboutDialogPrivate, version_label);
gtk_widget_class_bind_child (widget_class, GtkAboutDialogPrivate, comments_label);
gtk_widget_class_bind_child (widget_class, GtkAboutDialogPrivate, copyright_label);
gtk_widget_class_bind_child (widget_class, GtkAboutDialogPrivate, license_label);
gtk_widget_class_bind_child (widget_class, GtkAboutDialogPrivate, website_label);
gtk_widget_class_bind_child (widget_class, GtkAboutDialogPrivate, credits_button);
gtk_widget_class_bind_child (widget_class, GtkAboutDialogPrivate, license_button);
gtk_widget_class_bind_child (widget_class, GtkAboutDialogPrivate, credits_grid);
gtk_widget_class_bind_child (widget_class, GtkAboutDialogPrivate, license_view);
gtk_widget_class_bind_child (widget_class, GtkAboutDialog, notebook);
gtk_widget_class_bind_child (widget_class, GtkAboutDialog, logo_image);
gtk_widget_class_bind_child (widget_class, GtkAboutDialog, name_label);
gtk_widget_class_bind_child (widget_class, GtkAboutDialog, version_label);
gtk_widget_class_bind_child (widget_class, GtkAboutDialog, comments_label);
gtk_widget_class_bind_child (widget_class, GtkAboutDialog, copyright_label);
gtk_widget_class_bind_child (widget_class, GtkAboutDialog, license_label);
gtk_widget_class_bind_child (widget_class, GtkAboutDialog, website_label);
gtk_widget_class_bind_child (widget_class, GtkAboutDialog, credits_button);
gtk_widget_class_bind_child (widget_class, GtkAboutDialog, license_button);
gtk_widget_class_bind_child (widget_class, GtkAboutDialog, credits_grid);
gtk_widget_class_bind_child (widget_class, GtkAboutDialog, license_view);
gtk_widget_class_bind_callback (widget_class, credits_button_clicked);
gtk_widget_class_bind_callback (widget_class, license_button_clicked);
......
......@@ -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_child (widget_class, GtkAppChooserDialogPrivate, label);
gtk_widget_class_bind_child (widget_class, GtkAppChooserDialogPrivate, button);
gtk_widget_class_bind_child (widget_class, GtkAppChooserDialogPrivate, show_more_button);
gtk_widget_class_bind_child (widget_class, GtkAppChooserDialogPrivate, inner_box);
gtk_widget_class_bind_child (widget_class, GtkAppChooserDialog, label);
gtk_widget_class_bind_child (widget_class, GtkAppChooserDialog, button);
gtk_widget_class_bind_child (widget_class, GtkAppChooserDialog, show_more_button);
gtk_widget_class_bind_child (widget_class, GtkAppChooserDialog, inner_box);
gtk_widget_class_bind_callback (widget_class, show_more_button_clicked_cb);
}
......
......@@ -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_child (widget_class, GtkAppChooserWidgetPrivate, program_list);
gtk_widget_class_bind_child (widget_class, GtkAppChooserWidgetPrivate, program_list_store);
gtk_widget_class_bind_child (widget_class, GtkAppChooserWidgetPrivate, column);
gtk_widget_class_bind_child (widget_class, GtkAppChooserWidgetPrivate, padding_renderer);
gtk_widget_class_bind_child (widget_class, GtkAppChooserWidgetPrivate, secondary_padding);
gtk_widget_class_bind_child (widget_class, GtkAppChooserWidget, program_list);
gtk_widget_class_bind_child (widget_class, GtkAppChooserWidget, program_list_store);
gtk_widget_class_bind_child (widget_class, GtkAppChooserWidget, column);
gtk_widget_class_bind_child (widget_class, GtkAppChooserWidget, padding_renderer);
gtk_widget_class_bind_child (widget_class, GtkAppChooserWidget, secondary_padding);
gtk_widget_class_bind_callback (widget_class, refresh_and_emit_app_selected);
gtk_widget_class_bind_callback (widget_class, program_list_selection_activated);
gtk_widget_class_bind_callback (widget_class, widget_button_press_event_cb);
......
......@@ -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_child_internal (widget_class, GtkAssistantPrivate, action_area);
gtk_widget_class_bind_child (widget_class, GtkAssistantPrivate, content);
gtk_widget_class_bind_child (widget_class, GtkAssistantPrivate, cancel);
gtk_widget_class_bind_child (widget_class, GtkAssistantPrivate, forward);
gtk_widget_class_bind_child (widget_class, GtkAssistantPrivate, back);
gtk_widget_class_bind_child (widget_class, GtkAssistantPrivate, apply);
gtk_widget_class_bind_child (widget_class, GtkAssistantPrivate, close);
gtk_widget_class_bind_child (widget_class, GtkAssistantPrivate, last);
gtk_widget_class_bind_child (widget_class, GtkAssistantPrivate, sidebar);
gtk_widget_class_bind_child (widget_class, GtkAssistantPrivate, button_size_group);
gtk_widget_class_bind_child (widget_class, GtkAssistantPrivate, title_size_group);
gtk_widget_class_bind_child_internal (widget_class, GtkAssistant, action_area);
gtk_widget_class_bind_child (widget_class, GtkAssistant, content);
gtk_widget_class_bind_child (widget_class, GtkAssistant, cancel);
gtk_widget_class_bind_child (widget_class, GtkAssistant, forward);
gtk_widget_class_bind_child (widget_class, GtkAssistant, back);
gtk_widget_class_bind_child (widget_class, GtkAssistant, apply);
gtk_widget_class_bind_child (widget_class, GtkAssistant, close);
gtk_widget_class_bind_child (widget_class, GtkAssistant, last);
gtk_widget_class_bind_child (widget_class, GtkAssistant, sidebar);
gtk_widget_class_bind_child (widget_class, GtkAssistant, button_size_group);
gtk_widget_class_bind_child (widget_class, GtkAssistant, title_size_group);
gtk_widget_class_bind_callback (widget_class, assistant_sidebar_draw_cb);
gtk_widget_class_bind_callback (widget_class, assistant_remove_page_cb);
......
......@@ -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_child (widget_class, GtkColorChooserDialogPrivate, chooser);
gtk_widget_class_bind_child (widget_class, GtkColorChooserDialogPrivate, cancel_button);
gtk_widget_class_bind_child (widget_class, GtkColorChooserDialogPrivate, select_button);
gtk_widget_class_bind_child (widget_class, GtkColorChooserDialog, chooser);
gtk_widget_class_bind_child (widget_class, GtkColorChooserDialog, cancel_button);
gtk_widget_class_bind_child (widget_class, GtkColorChooserDialog, select_button);
gtk_widget_class_bind_callback (widget_class, selected_cb);
gtk_widget_class_bind_callback (widget_class, propagate_notify);
gtk_widget_class_bind_callback (widget_class, color_activated_cb);
......
......@@ -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_child (widget_class, GtkColorEditorPrivate, overlay);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, grid);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, swatch);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, entry);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, h_slider);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, h_popup);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, h_entry);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, a_slider);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, a_popup);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, a_entry);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, sv_plane);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, sv_popup);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, s_entry);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, v_entry);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, h_adj);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, s_adj);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, v_adj);
gtk_widget_class_bind_child (widget_class, GtkColorEditorPrivate, a_adj);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, overlay);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, grid);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, swatch);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, entry);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, h_slider);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, h_popup);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, h_entry);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, a_slider);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, a_popup);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, a_entry);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, sv_plane);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, sv_popup);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, s_entry);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, v_entry);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, h_adj);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, s_adj);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, v_adj);
gtk_widget_class_bind_child (widget_class, GtkColorEditor, a_adj);
gtk_widget_class_bind_callback (widget_class, hsv_changed);
gtk_widget_class_bind_callback (widget_class, popup_draw);
......
......@@ -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);
}
......
......@@ -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_child (widget_class, GtkFileChooserButtonPrivate, model);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButtonPrivate, button);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButtonPrivate, image);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButtonPrivate, label);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButtonPrivate, combo_box);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButtonPrivate, icon_cell);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButtonPrivate, name_cell);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButton, model);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButton, button);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButton, image);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButton, label);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButton, combo_box);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButton, icon_cell);
gtk_widget_class_bind_child (widget_class, GtkFileChooserButton, name_cell);
gtk_widget_class_bind_callback (widget_class, button_clicked_cb);
gtk_widget_class_bind_callback (widget_class, combo_box_changed_cb);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment