summaryrefslogtreecommitdiff
path: root/gtk/gtkpathbar.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/gtkpathbar.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/gtkpathbar.c')
-rw-r--r--gtk/gtkpathbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 02083d9db0..e93e381bcd 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -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_child (widget_class, GtkPathBarPrivate, up_slider_button);
- gtk_widget_class_bind_child (widget_class, GtkPathBarPrivate, down_slider_button);
+ 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_callback (widget_class, gtk_path_bar_slider_button_press);
gtk_widget_class_bind_callback (widget_class, gtk_path_bar_slider_button_release);