aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2006-04-07 14:54:55 +0800
committerLi Yuan <liyuan@src.gnome.org>2006-04-07 14:54:55 +0800
commit6a73d9a74369a68a52e6bfb55c7f22c1f5216751 (patch)
treefa258eba417b750fba2ff090c53f2a7dec60dc37 /addressbook/gui
parent9d82014a943e687782d046a4276a0cb6d2a8503c (diff)
downloadgsoc2013-evolution-6a73d9a74369a68a52e6bfb55c7f22c1f5216751.tar
gsoc2013-evolution-6a73d9a74369a68a52e6bfb55c7f22c1f5216751.tar.gz
gsoc2013-evolution-6a73d9a74369a68a52e6bfb55c7f22c1f5216751.tar.bz2
gsoc2013-evolution-6a73d9a74369a68a52e6bfb55c7f22c1f5216751.tar.lz
gsoc2013-evolution-6a73d9a74369a68a52e6bfb55c7f22c1f5216751.tar.xz
gsoc2013-evolution-6a73d9a74369a68a52e6bfb55c7f22c1f5216751.tar.zst
gsoc2013-evolution-6a73d9a74369a68a52e6bfb55c7f22c1f5216751.zip
Fix for bug #336454 we should return false if it is not a del event to
2006-03-29 Li Yuan <li.yuan@sun.com> Fix for bug #336454 * gui/component/addressbook-view.c: (source_selector_key_press_event_callback): we should return false if it is not a del event to make gtktreeview deal the rest of keys. svn path=/trunk/; revision=31781
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/addressbook-view.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/addressbook/gui/component/addressbook-view.c b/addressbook/gui/component/addressbook-view.c
index a3f71da707..82c4c50f2b 100644
--- a/addressbook/gui/component/addressbook-view.c
+++ b/addressbook/gui/component/addressbook-view.c
@@ -1276,13 +1276,14 @@ addressbook_view_class_init (AddressbookViewClass *klass)
parent_class = g_type_class_peek_parent (klass);
}
-static void
+static gboolean
source_selector_key_press_event_callback (GtkWidget *widget, GdkEventKey *event, AddressbookView *view)
{
if (event->keyval == GDK_Delete) {
- delete_addressbook_folder (view);
+ delete_addressbook_folder (view);
+ return TRUE;
}
- return;
+ return FALSE;
}
static void