diff --git a/tests/testgtk.c b/tests/testgtk.c index 166ea93d10..11d72949e7 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -3891,8 +3891,6 @@ create_cursors (GtkWidget *widget) if (cursor_demo) { - guint w, h; - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); gtk_box_pack_start (GTK_BOX (vbox), hbox); @@ -3905,8 +3903,7 @@ create_cursors (GtkWidget *widget) gtk_entry_set_text (GTK_ENTRY (entry), "default"); gtk_box_pack_start (GTK_BOX (hbox), entry); - gdk_display_get_maximal_cursor_size (gtk_widget_get_display (vbox), &w, &h); - size = gtk_spin_button_new_with_range (1.0, MIN (w, h), 1.0); + size = gtk_spin_button_new_with_range (1.0, 128.0, 1.0); gtk_spin_button_set_value (GTK_SPIN_BUTTON (size), 24.0); gtk_box_pack_start (GTK_BOX (hbox), size);