[gtk+/rendering-cleanup: 55/63] tests: remove "draw drawable" button from testwindows test



commit bce087bc28d08ae2a0c6533421ec1f2ff7927c47
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jul 14 23:12:48 2010 +0200

    tests: remove "draw drawable" button from testwindows test
    
    draw_drawable is gone soon. And testing the proper functioning of
    drawing calls is Cairo's job anyway.

 tests/testwindows.c |   26 --------------------------
 1 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/tests/testwindows.c b/tests/testwindows.c
index 93ca976..48e2b4b 100644
--- a/tests/testwindows.c
+++ b/tests/testwindows.c
@@ -218,22 +218,6 @@ add_window_clicked (GtkWidget *button,
 }
 
 static void
-draw_drawable_clicked (GtkWidget *button, 
-		       gpointer data)
-{
-  GdkGC *gc;
-  gc = gdk_gc_new (darea->window);
-  gdk_draw_drawable (darea->window,
-		     gc,
-		     darea->window,
-		     -15, -15,
-		     40, 70,
-		     100, 100);
-  g_object_unref (gc);
-}
-
-
-static void
 remove_window_clicked (GtkWidget *button, 
 		       gpointer data)
 {
@@ -1047,16 +1031,6 @@ main (int argc, char **argv)
 			     3, 4);
   gtk_widget_show (button);
 
-  button = gtk_button_new_with_label ("draw drawable");
-  gtk_box_pack_start (GTK_BOX (vbox),
-		      button,
-		      FALSE, FALSE,
-		      2);
-  gtk_widget_show (button);
-  g_signal_connect (button, "clicked", 
-		    G_CALLBACK (draw_drawable_clicked), 
-		    NULL);
-
   button = gtk_button_new_with_label ("Add window");
   gtk_box_pack_start (GTK_BOX (vbox),
 		      button,



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