summaryrefslogtreecommitdiff
path: root/gtk/gtklockbutton.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/gtklockbutton.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/gtklockbutton.c')
-rw-r--r--gtk/gtklockbutton.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtklockbutton.c b/gtk/gtklockbutton.c
index 475bbe6735..ff4a58a7c1 100644
--- a/gtk/gtklockbutton.c
+++ b/gtk/gtklockbutton.c
@@ -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_child (widget_class, GtkLockButtonPrivate, box);
- gtk_widget_class_bind_child (widget_class, GtkLockButtonPrivate, image);
- gtk_widget_class_bind_child (widget_class, GtkLockButtonPrivate, label_lock);
- gtk_widget_class_bind_child (widget_class, GtkLockButtonPrivate, label_unlock);
- gtk_widget_class_bind_child (widget_class, GtkLockButtonPrivate, label_group);
+ gtk_widget_class_bind_child (widget_class, GtkLockButton, box);
+ gtk_widget_class_bind_child (widget_class, GtkLockButton, image);
+ gtk_widget_class_bind_child (widget_class, GtkLockButton, label_lock);
+ gtk_widget_class_bind_child (widget_class, GtkLockButton, label_unlock);
+ gtk_widget_class_bind_child (widget_class, GtkLockButton, label_group);
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_LOCK_BUTTON_ACCESSIBLE);
}