[gtk+/rendering-cleanup-next: 117/154] tests: Connect to draw signal in testimage



commit e02f4c46f9d901032a3ed0f3eb2ec9d615235a55
Author: Benjamin Otte <otte redhat com>
Date:   Wed Sep 8 22:23:18 2010 +0200

    tests: Connect to draw signal in testimage

 tests/testimage.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tests/testimage.c b/tests/testimage.c
index e9bd7d7..375a5b8 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);
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]