[gtk+/gtk-2-90: 103/146] Don't use GtkInputDialog in testinput
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-90: 103/146] Don't use GtkInputDialog in testinput
- Date: Wed, 9 Dec 2009 07:43:38 +0000 (UTC)
commit c4d9b5a400bd81241ae26b8516fd2651b7545ae0
Author: Christian Dywan <christian twotoasts de>
Date: Fri Oct 16 16:48:11 2009 +0200
Don't use GtkInputDialog in testinput
tests/testinput.c | 41 -----------------------------------------
1 files changed, 0 insertions(+), 41 deletions(-)
---
diff --git a/tests/testinput.c b/tests/testinput.c
index 96b66f4..620f11f 100644
--- a/tests/testinput.c
+++ b/tests/testinput.c
@@ -269,40 +269,6 @@ leave_notify_event (GtkWidget *widget, GdkEventCrossing *event)
}
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_MAPPED(inputd))
- gtk_widget_show(inputd);
- else
- gdk_window_raise(inputd->window);
- }
-}
-
-void
quit (void)
{
gtk_main_quit ();
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]