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
This commit is contained in:
Ettore Perazzoli
2002-05-30 16:16:04 +00:00
parent 655bda13be
commit 4a535bcccc
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2002-05-30 Ettore Perazzoli <ettore@ximian.com>
* 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]
2002-05-28 Chris Toshok <toshok@ximian.com>
* e-folder-list.c (e_folder_list_set_items): skip folders that

View File

@ -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",