diff options
author | Glynn Foster <glynn.foster@sun.com> | 2003-09-12 08:48:06 +0000 |
---|---|---|
committer | Glynn Foster <gman@src.gnome.org> | 2003-09-12 08:48:06 +0000 |
commit | c14af1c42cd52d7bf826e19265272d37a82c9cca (patch) | |
tree | 7c561e4e0fd1b8fd173fb24a88aee704cabb754c /src/entry.c | |
parent | Make zenity compile on solaris. Whoops :) (diff) | |
download | zenity-c14af1c42cd52d7bf826e19265272d37a82c9cca.tar.gz zenity-c14af1c42cd52d7bf826e19265272d37a82c9cca.tar.bz2 zenity-c14af1c42cd52d7bf826e19265272d37a82c9cca.zip |
Better patch from raf@noduck.net to fix the activate on the entry dialog.
2003-09-12 Glynn Foster <glynn.foster@sun.com>
* src/entry.c, src/zenity.glade: Better patch from
raf@noduck.net to fix the activate on the entry dialog.
Diffstat (limited to 'src/entry.c')
-rw-r--r-- | src/entry.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/entry.c b/src/entry.c index 69822823..c2570e0a 100644 --- a/src/entry.c +++ b/src/entry.c @@ -26,7 +26,6 @@ #include "util.h" static void zenity_entry_dialog_response (GtkWidget *widget, int response, gpointer data); -static void zenity_entry_response (GtkWidget *widget, gpointer data); static GtkWidget *entry; @@ -69,9 +68,6 @@ zenity_entry (ZenityData *data, ZenityEntryData *entry_data) entry = glade_xml_get_widget (glade_dialog, "zenity_entry_input"); - g_signal_connect (G_OBJECT (entry), "activate", - G_CALLBACK (zenity_entry_response), data); - if (glade_dialog) g_object_unref (glade_dialog); @@ -88,22 +84,6 @@ zenity_entry (ZenityData *data, ZenityEntryData *entry_data) } static void -zenity_entry_response (GtkWidget *widget, gpointer data) -{ - ZenityData *zen_data = data; - const gchar *text; - - zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK); - - text = gtk_entry_get_text (GTK_ENTRY (entry)); - - if (text != NULL) - g_print ("%s\n", text); - - gtk_main_quit (); -} - -static void zenity_entry_dialog_response (GtkWidget *widget, int response, gpointer data) { ZenityData *zen_data = data; |