From 4a535bcccc240a69f4db0ba459e548c010ef231a Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 30 May 2002 16:16:04 +0000 Subject: Connect about_box_event_callback() to the "key_press_event" signal as * e-shell-view-menu.c (command_about_box): Connect about_box_event_callback() to the "key_press_event" signal as well. This way the about box is closed when you press a key too. [#25349] svn path=/trunk/; revision=17044 --- shell/e-shell-view-menu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shell/e-shell-view-menu.c') diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c index 38b7cd9586..5c0a463041 100644 --- a/shell/e-shell-view-menu.c +++ b/shell/e-shell-view-menu.c @@ -219,6 +219,8 @@ command_about_box (BonoboUIComponent *uih, about_box_window = gtk_window_new (GTK_WINDOW_DIALOG); gtk_window_set_policy (GTK_WINDOW (about_box_window), FALSE, FALSE, FALSE); + gtk_signal_connect (GTK_OBJECT (about_box_window), "key_press_event", + GTK_SIGNAL_FUNC (about_box_event_callback), &about_box_window); gtk_signal_connect (GTK_OBJECT (about_box_window), "button_press_event", GTK_SIGNAL_FUNC (about_box_event_callback), &about_box_window); gtk_signal_connect (GTK_OBJECT (about_box_window), "delete_event", -- cgit v1.2.3