From 28de5cf05a31122a72c4c4fe49d958f8ba952c1f Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 20 Sep 2009 22:32:33 -0400 Subject: Bug 595119 - Crash while trying to add a new category in contact --- modules/addressbook/e-book-shell-view-private.c | 4 ++-- modules/addressbook/e-book-shell-view-private.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/addressbook') diff --git a/modules/addressbook/e-book-shell-view-private.c b/modules/addressbook/e-book-shell-view-private.c index 55a2e8c433..279cf87cf6 100644 --- a/modules/addressbook/e-book-shell-view-private.c +++ b/modules/addressbook/e-book-shell-view-private.c @@ -484,8 +484,8 @@ e_book_shell_view_private_constructed (EBookShellView *book_shell_view) G_CALLBACK (book_shell_view_activate_selected_source), book_shell_view); - e_categories_register_change_listener ( - G_CALLBACK (e_book_shell_view_update_search_filter), + e_categories_add_change_hook ( + (GHookFunc) e_book_shell_view_update_search_filter, book_shell_view); e_book_shell_view_actions_init (book_shell_view); diff --git a/modules/addressbook/e-book-shell-view-private.h b/modules/addressbook/e-book-shell-view-private.h index 8b8da3f4c6..fa8624692a 100644 --- a/modules/addressbook/e-book-shell-view-private.h +++ b/modules/addressbook/e-book-shell-view-private.h @@ -32,6 +32,7 @@ #include #include +#include "e-util/e-util.h" #include "e-util/e-binding.h" #include "e-util/gconf-bridge.h" #include "shell/e-shell-content.h" -- cgit