summaryrefslogtreecommitdiff
path: root/gtk/gtksearchbar.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-07-26 08:41:09 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-07-26 08:41:09 -0400
commita8e84545d15abb477d6d97f56adb046b70befa48 (patch)
treeac06aad5ee6a6f053841f6af79b3074b150be35f /gtk/gtksearchbar.c
parent45d2f677bef40d32b17da7856119babeabf4438c (diff)
downloadgtk+-a8e84545d15abb477d6d97f56adb046b70befa48.tar.gz
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 <ebassi@gnome.org>
Diffstat (limited to 'gtk/gtksearchbar.c')
-rw-r--r--gtk/gtksearchbar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c
index caee68ed24..99c0631984 100644
--- a/gtk/gtksearchbar.c
+++ b/gtk/gtksearchbar.c
@@ -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_child_internal (widget_class, GtkSearchBarPrivate, toolbar);
- gtk_widget_class_bind_child_internal (widget_class, GtkSearchBarPrivate, revealer);
- gtk_widget_class_bind_child_internal (widget_class, GtkSearchBarPrivate, box_center);
- gtk_widget_class_bind_child_internal (widget_class, GtkSearchBarPrivate, close_button);
+ gtk_widget_class_bind_child_internal (widget_class, GtkSearchBar, toolbar);
+ gtk_widget_class_bind_child_internal (widget_class, GtkSearchBar, revealer);
+ gtk_widget_class_bind_child_internal (widget_class, GtkSearchBar, box_center);
+ gtk_widget_class_bind_child_internal (widget_class, GtkSearchBar, close_button);
}
static void