From 46b170ba0ef8a02ae606236ee143ffb72de3c5f4 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 16 Oct 2009 16:48:11 +0200 Subject: [PATCH] Don't use GtkInputDialog in testinput --- tests/testinput.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/tests/testinput.c b/tests/testinput.c index b1df354faf..c334944b4d 100644 --- a/tests/testinput.c +++ b/tests/testinput.c @@ -268,40 +268,6 @@ leave_notify_event (GtkWidget *widget, GdkEventCrossing *event) return TRUE; } -void -input_dialog_destroy (GtkWidget *w, gpointer data) -{ - *((GtkWidget **)data) = NULL; -} - -void -create_input_dialog (void) -{ - static GtkWidget *inputd = NULL; - - if (!inputd) - { - inputd = gtk_input_dialog_new (); - - g_signal_connect (inputd, "destroy", - G_CALLBACK (input_dialog_destroy), &inputd); - g_signal_connect_swapped (GTK_INPUT_DIALOG (inputd)->close_button, - "clicked", - G_CALLBACK (gtk_widget_hide), - inputd); - gtk_widget_hide (GTK_INPUT_DIALOG (inputd)->save_button); - - gtk_widget_show (inputd); - } - else - { - if (!gtk_widget_get_mapped(inputd)) - gtk_widget_show(inputd); - else - gdk_window_raise(inputd->window); - } -} - void quit (void) { @@ -376,13 +342,6 @@ main (int argc, char *argv[]) gtk_widget_grab_focus (drawing_area); /* .. And create some buttons */ - button = gtk_button_new_with_label ("Input Dialog"); - gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); - - g_signal_connect (button, "clicked", - G_CALLBACK (create_input_dialog), NULL); - gtk_widget_show (button); - button = gtk_button_new_with_label ("Quit"); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);