Index: pan/task-manager.c =================================================================== RCS file: /cvs/gnome/pan/pan/task-manager.c,v retrieving revision 1.96 diff -u -r1.96 task-manager.c --- pan/task-manager.c 26 Jan 2003 20:02:58 -0000 1.96 +++ pan/task-manager.c 17 Apr 2003 08:07:57 -0000 @@ -25,6 +25,7 @@ #include #include +#include #include #include @@ -692,6 +693,16 @@ manager_ui = NULL; } + +static gboolean +ui_key_pressed( GtkWidget*widget, GdkEventKey *event, gpointer data ) +{ + ManagerUI* ui = data; + if (event->keyval == GDK_Escape) + gtk_widget_destroy (GTK_WIDGET(ui->window)); +} + + /** *** **/ @@ -837,6 +848,7 @@ ui->timeout_id = pan_timeout_add (2000, periodic_update_timer, ui); ui->top = vbox; g_signal_connect (ui->top, "destroy", G_CALLBACK(ui_destroy_cb), ui); + g_signal_connect (ui->window, "key-release-event", G_CALLBACK (ui_key_pressed), ui); return ui; }