diff options
author | Benjamin Otte <otte@redhat.com> | 2019-11-28 02:32:12 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-30 19:26:46 -0400 |
commit | b43c8ae6469d0a52bc281d7beff43bca4b03bd80 (patch) | |
tree | 66c7ab433ab250edc0cf1b3ae23be0667e0a7286 /demos/gtk-demo | |
parent | 22e6fa3a64024aef798138db7b6e9a3e0ccd1565 (diff) | |
download | gtk+-b43c8ae6469d0a52bc281d7beff43bca4b03bd80.tar.gz |
expression: Allow passing a this object to bind()
This gives a bit more control over the arguments passed to expressions.
Diffstat (limited to 'demos/gtk-demo')
-rw-r--r-- | demos/gtk-demo/listview_clocks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/gtk-demo/listview_clocks.c b/demos/gtk-demo/listview_clocks.c index 3254428d7b..95d45dadd7 100644 --- a/demos/gtk-demo/listview_clocks.c +++ b/demos/gtk-demo/listview_clocks.c @@ -401,7 +401,7 @@ setup_listitem_cb (GtkListItemFactory *factory, "location"); /* Now create the label and bind the expression to it. */ location_label = gtk_label_new (NULL); - gtk_expression_bind (expression, location_label, "label"); + gtk_expression_bind (expression, location_label, "label", location_label); gtk_box_append (GTK_BOX (box), location_label); @@ -411,7 +411,7 @@ setup_listitem_cb (GtkListItemFactory *factory, expression = gtk_expression_ref (clock_expression); /* Now create the widget and bind the expression to it. */ picture = gtk_picture_new (); - gtk_expression_bind (expression, picture, "paintable"); + gtk_expression_bind (expression, picture, "paintable", picture); gtk_box_append (GTK_BOX (box), picture); @@ -430,7 +430,7 @@ setup_listitem_cb (GtkListItemFactory *factory, NULL, NULL); /* Now create the label and bind the expression to it. */ time_label = gtk_label_new (NULL); - gtk_expression_bind (expression, time_label, "label"); + gtk_expression_bind (expression, time_label, "label", time_label); gtk_box_append (GTK_BOX (box), time_label); gtk_expression_unref (clock_expression); |