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*