[evolution] Bug 555325 - Delete key should not delete a whole address book
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 555325 - Delete key should not delete a whole address book
- Date: Sat, 18 Aug 2012 13:09:32 +0000 (UTC)
commit e3414564635d607471317f4cecd14898aa1891b2
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Aug 18 09:05:48 2012 -0400
Bug 555325 - Delete key should not delete a whole address book
modules/addressbook/e-book-shell-view-private.c | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/modules/addressbook/e-book-shell-view-private.c b/modules/addressbook/e-book-shell-view-private.c
index 6418612..ce0de8d 100644
--- a/modules/addressbook/e-book-shell-view-private.c
+++ b/modules/addressbook/e-book-shell-view-private.c
@@ -412,23 +412,6 @@ book_shell_view_selector_popup_menu_cb (EShellView *shell_view)
return book_shell_view_show_popup_menu (NULL, shell_view);
}
-static gboolean
-book_shell_view_selector_key_press_event_cb (EShellView *shell_view,
- GdkEventKey *event)
-{
- EShellWindow *shell_window;
-
- /* Needed for the ACTION() macro. */
- shell_window = e_shell_view_get_shell_window (shell_view);
-
- if (event->keyval == GDK_KEY_Delete) {
- gtk_action_activate (ACTION (ADDRESS_BOOK_DELETE));
- return TRUE;
- }
-
- return FALSE;
-}
-
static void
book_shell_view_source_removed_cb (ESourceRegistry *registry,
ESource *source,
@@ -576,11 +559,6 @@ e_book_shell_view_private_constructed (EBookShellView *book_shell_view)
book_shell_view, G_CONNECT_SWAPPED);
g_signal_connect_object (
- selector, "key-press-event",
- G_CALLBACK (book_shell_view_selector_key_press_event_cb),
- book_shell_view, G_CONNECT_SWAPPED);
-
- g_signal_connect_object (
selector, "popup-menu",
G_CALLBACK (book_shell_view_selector_popup_menu_cb),
book_shell_view, G_CONNECT_SWAPPED);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]