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.
This commit is contained in:
@ -217,22 +217,6 @@ add_window_clicked (GtkWidget *button,
|
|||||||
update_store ();
|
update_store ();
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
static void
|
||||||
remove_window_clicked (GtkWidget *button,
|
remove_window_clicked (GtkWidget *button,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
@ -1047,16 +1031,6 @@ main (int argc, char **argv)
|
|||||||
3, 4);
|
3, 4);
|
||||||
gtk_widget_show (button);
|
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");
|
button = gtk_button_new_with_label ("Add window");
|
||||||
gtk_box_pack_start (GTK_BOX (vbox),
|
gtk_box_pack_start (GTK_BOX (vbox),
|
||||||
button,
|
button,
|
||||||
|
|||||||
Reference in New Issue
Block a user