From 0b7a29c7edd2282b0715283e75fb9161bc36ba5c Mon Sep 17 00:00:00 2001 From: mdb Date: Sat, 10 Mar 2001 20:43:57 +0000 Subject: [PATCH] Exit after launching unless we're being compiled in applet mode (which isn't fully reinstated yet anyway). git-svn-id: https://samskivert.googlecode.com/svn/trunk@95 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- projects/lookuplet/src/c/querybox.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/projects/lookuplet/src/c/querybox.c b/projects/lookuplet/src/c/querybox.c index aaa74388..a1d6c7aa 100644 --- a/projects/lookuplet/src/c/querybox.c +++ b/projects/lookuplet/src/c/querybox.c @@ -1,5 +1,5 @@ /** - * $Id: querybox.c,v 1.4 2001/03/10 20:30:58 mdb Exp $ + * $Id: querybox.c,v 1.5 2001/03/10 20:43:57 mdb Exp $ */ #include @@ -71,8 +71,12 @@ key_pressed (GtkWidget* widget, GdkEvent* event, gpointer callback_data) /* launch the appropriate thing */ lk_launcher_launch(binding, search_text); g_free(search_text); +#ifdef APPLET_MODE /* clear out the contents of the entry box */ gtk_entry_set_text(GTK_ENTRY(widget), ""); +#else + gtk_exit(0); +#endif handled = TRUE; break; } @@ -99,8 +103,12 @@ launch (GtkWidget* widget, gpointer data) lk_launcher_launch(NULL, search_text); g_free(search_text); +#ifdef APPLET_MODE /* clear out the contents of the entry box */ gtk_entry_set_text(GTK_ENTRY(widget), ""); +#else + gtk_exit(0); +#endif } GtkWidget*