summaryrefslogtreecommitdiff
path: root/tests/testimage.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-09-08 22:23:18 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:11:40 +0200
commitdfd0ceab1c6e012dd2aa470d4386af3c08c614db (patch)
treebba74343dd5ac73ca5908d38038be775fd5cdf8d /tests/testimage.c
parentf8b420783da92e17a5cb24fd8900e898853d274c (diff)
downloadgtk+-dfd0ceab1c6e012dd2aa470d4386af3c08c614db.tar.gz
tests: Connect to draw signal in testimage
Diffstat (limited to 'tests/testimage.c')
-rw-r--r--tests/testimage.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/testimage.c b/tests/testimage.c
index e9bd7d748c..375a5b8142 100644
--- a/tests/testimage.c
+++ b/tests/testimage.c
@@ -78,13 +78,13 @@ idle_func (gpointer data)
}
static gboolean
-anim_image_expose (GtkWidget *widget,
- GdkEventExpose *eevent,
- gpointer data)
+anim_image_draw (GtkWidget *widget,
+ cairo_t *cr,
+ gpointer data)
{
g_print ("start busyness\n");
- g_signal_handlers_disconnect_by_func (widget, anim_image_expose, data);
+ g_signal_handlers_disconnect_by_func (widget, anim_image_draw, data);
/* produce high load */
g_idle_add_full (G_PRIORITY_DEFAULT,
@@ -199,8 +199,8 @@ main (int argc, char **argv)
gtk_table_attach_defaults (GTK_TABLE (table), image, 2, 3, 5, 6);
/* produce high load */
- g_signal_connect_after (image, "expose-event",
- G_CALLBACK (anim_image_expose),
+ g_signal_connect_after (image, "draw",
+ G_CALLBACK (anim_image_draw),
NULL);
}