diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-08-03 00:45:48 +0800 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-08-03 00:47:14 +0800 |
commit | b5299135f67ca5cf5f2bf12cad51049b90287776 (patch) | |
tree | 9b8ae23a017d4d0257fc6ccd07c21edb222992a4 /modules/addressbook/e-book-shell-view.c | |
parent | 378e41dad13b50fb300a206cbaf461cda8903713 (diff) | |
download | gsoc2013-evolution-b5299135f67ca5cf5f2bf12cad51049b90287776.tar.gz gsoc2013-evolution-b5299135f67ca5cf5f2bf12cad51049b90287776.tar.zst gsoc2013-evolution-b5299135f67ca5cf5f2bf12cad51049b90287776.zip |
fix lifecycle nasties bgo#625852
Diffstat (limited to 'modules/addressbook/e-book-shell-view.c')
-rw-r--r-- | modules/addressbook/e-book-shell-view.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/addressbook/e-book-shell-view.c b/modules/addressbook/e-book-shell-view.c index e7b1c7b0b0..2ac5d98968 100644 --- a/modules/addressbook/e-book-shell-view.c +++ b/modules/addressbook/e-book-shell-view.c @@ -33,6 +33,9 @@ book_shell_view_source_list_changed_cb (EBookShellView *book_shell_view, EShellView *shell_view; GList *keys, *iter; + g_return_if_fail (E_IS_SHELL_VIEW (book_shell_view)); + g_return_if_fail (book_shell_view->priv != NULL); + shell_view = E_SHELL_VIEW (book_shell_view); book_shell_content = book_shell_view->priv->book_shell_content; @@ -114,10 +117,10 @@ book_shell_view_constructed (GObject *object) book_shell_backend = book_shell_view->priv->book_shell_backend; source_list = e_book_shell_backend_get_source_list (book_shell_backend); - g_signal_connect_swapped ( + g_signal_connect_object ( source_list, "changed", G_CALLBACK (book_shell_view_source_list_changed_cb), - book_shell_view); + book_shell_view, G_CONNECT_SWAPPED); } static void |