summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-03-27 18:51:04 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-03-27 18:51:04 +0000
commite5722367b3e8f6b0a0f2061a17a31c2878da3f21 (patch)
treeadaa8979f490440454517380d2654c39e3c9851f /demos
parent2440e89a724cf631cca85cd82d7af6d8d5058c2b (diff)
parent060e30de3f5affd9a98de7d21c8071d86252ee64 (diff)
downloadgtk+-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.c4
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))
{