diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-03-27 18:51:04 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-03-27 18:51:04 +0000 |
commit | e5722367b3e8f6b0a0f2061a17a31c2878da3f21 (patch) | |
tree | adaa8979f490440454517380d2654c39e3c9851f /demos | |
parent | 2440e89a724cf631cca85cd82d7af6d8d5058c2b (diff) | |
parent | 060e30de3f5affd9a98de7d21c8071d86252ee64 (diff) | |
download | gtk+-e5722367b3e8f6b0a0f2061a17a31c2878da3f21.tar.gz |
Merge branch 'fixed-layout' into 'master'
Add GtkFixedLayout
See merge request GNOME/gtk!668
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/dnd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/gtk-demo/dnd.c b/demos/gtk-demo/dnd.c index 4c28e17676..cb21d2f25b 100644 --- a/demos/gtk-demo/dnd.c +++ b/demos/gtk-demo/dnd.c @@ -196,7 +196,7 @@ edit_label_done (GtkWidget *entry, gpointer data) GtkWidget *label; int x, y; - gtk_container_child_get (GTK_CONTAINER (fixed), entry, "x", &x, "y", &y, NULL); + gtk_fixed_get_child_position (GTK_FIXED (fixed), entry, &x, &y); label = GTK_WIDGET (g_object_get_data (G_OBJECT (entry), "label")); gtk_label_set_text (GTK_LABEL (label), gtk_editable_get_text (GTK_EDITABLE (entry))); @@ -210,7 +210,7 @@ edit_cb (GtkWidget *child) GtkWidget *fixed = gtk_widget_get_parent (child); int x, y; - gtk_container_child_get (GTK_CONTAINER (fixed), child, "x", &x, "y", &y, NULL); + gtk_fixed_get_child_position (GTK_FIXED (fixed), child, &x, &y); if (GTK_IS_LABEL (child)) { |