tests/testgtk: Remove 'Resize' button

The gtk_window_resize() API is going away, so remove this test.
This commit is contained in:
Jonas Ådahl 2020-12-02 10:21:12 +01:00
parent 98fffe6f23
commit 2854d0339c

View File

@ -4775,17 +4775,6 @@ get_ints (GtkWidget *window,
*b = gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spin2));
}
static void
set_size_callback (GtkWidget *widget,
gpointer data)
{
int w, h;
get_ints (data, &w, &h);
gtk_window_resize (GTK_WINDOW (g_object_get_data (data, "target")), w, h);
}
static void
unset_default_size_callback (GtkWidget *widget,
gpointer data)
@ -4891,13 +4880,6 @@ window_controls (GtkWidget *window)
G_CONNECT_SWAPPED);
gtk_box_append (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Resize");
g_signal_connect (button,
"clicked",
G_CALLBACK (set_size_callback),
control_window);
gtk_box_append (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Set default size");
g_signal_connect (button,
"clicked",