mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
testoffscreen: Remove unused code
This commit is contained in:
parent
ca8a835874
commit
039e0c273a
@ -373,21 +373,6 @@ main (int argc,
|
||||
G_CALLBACK (remove_clicked),
|
||||
widget);
|
||||
|
||||
/* redirect */
|
||||
if (0)
|
||||
{
|
||||
GtkWidget *redirect_win;
|
||||
|
||||
redirect_win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||
gtk_window_set_default_size (GTK_WINDOW (redirect_win), 400,400);
|
||||
gtk_widget_show (redirect_win);
|
||||
gtk_widget_realize (redirect_win);
|
||||
gtk_widget_realize (window);
|
||||
gdk_window_redirect_to_drawable (gtk_widget_get_window (window),
|
||||
GDK_DRAWABLE (gtk_widget_get_window (redirect_win)),
|
||||
0, 0, 0, 0, -1, -1);
|
||||
}
|
||||
|
||||
gtk_main ();
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user