diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-08-18 21:05:48 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-08-18 21:09:11 +0800 |
commit | e3414564635d607471317f4cecd14898aa1891b2 (patch) | |
tree | dd23349bf083e6d97363899125d48751f77c7b9c /modules/addressbook | |
parent | 6480444d706ddc079bf472a4ef74be31b4e3b954 (diff) | |
download | gsoc2013-evolution-e3414564635d607471317f4cecd14898aa1891b2.tar gsoc2013-evolution-e3414564635d607471317f4cecd14898aa1891b2.tar.gz gsoc2013-evolution-e3414564635d607471317f4cecd14898aa1891b2.tar.bz2 gsoc2013-evolution-e3414564635d607471317f4cecd14898aa1891b2.tar.lz gsoc2013-evolution-e3414564635d607471317f4cecd14898aa1891b2.tar.xz gsoc2013-evolution-e3414564635d607471317f4cecd14898aa1891b2.tar.zst gsoc2013-evolution-e3414564635d607471317f4cecd14898aa1891b2.zip |
Bug 555325 - Delete key should not delete a whole address book
Diffstat (limited to 'modules/addressbook')
-rw-r--r-- | 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 641861284e..ce0de8d960 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); |