aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/e-book-shell-view-actions.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2008-09-18 10:32:04 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-09-18 10:32:04 +0800
commit8d21ab98d99ca43ee7873adba8172b699d8a007f (patch)
treed6a85918167907daf7c4dcf87b8b7feee89f12af /addressbook/gui/component/e-book-shell-view-actions.c
parentbb7cb1d677117a938ae18d9cae7acc7a56678b6f (diff)
downloadgsoc2013-evolution-8d21ab98d99ca43ee7873adba8172b699d8a007f.tar
gsoc2013-evolution-8d21ab98d99ca43ee7873adba8172b699d8a007f.tar.gz
gsoc2013-evolution-8d21ab98d99ca43ee7873adba8172b699d8a007f.tar.bz2
gsoc2013-evolution-8d21ab98d99ca43ee7873adba8172b699d8a007f.tar.lz
gsoc2013-evolution-8d21ab98d99ca43ee7873adba8172b699d8a007f.tar.xz
gsoc2013-evolution-8d21ab98d99ca43ee7873adba8172b699d8a007f.tar.zst
gsoc2013-evolution-8d21ab98d99ca43ee7873adba8172b699d8a007f.zip
Progress update:
- Get context menus working in the contact preview pane. - Kill EABPopup. - Yet more code refactoring. - Add a handy utility function: e_shell_window_show_popup_menu() Takes a widget path in the shell window's UI definition. svn path=/branches/kill-bonobo/; revision=36366
Diffstat (limited to 'addressbook/gui/component/e-book-shell-view-actions.c')
-rw-r--r--addressbook/gui/component/e-book-shell-view-actions.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/addressbook/gui/component/e-book-shell-view-actions.c b/addressbook/gui/component/e-book-shell-view-actions.c
index a6a97d9229..814b69d82c 100644
--- a/addressbook/gui/component/e-book-shell-view-actions.c
+++ b/addressbook/gui/component/e-book-shell-view-actions.c
@@ -393,6 +393,7 @@ action_search_execute_cb (GtkAction *action,
EShellContent *shell_content;
GString *string;
EAddressbookView *view;
+ EABContactDisplay *display;
const gchar *search_format;
const gchar *search_text;
gchar *search_query;
@@ -463,10 +464,8 @@ action_search_execute_cb (GtkAction *action,
g_object_set (view, "query", search_query, NULL);
g_free (search_query);
- /* FIXME view->displayed_contact = -1; */
- eab_contact_display_render (
- EAB_CONTACT_DISPLAY (book_shell_view->priv->preview),
- NULL, EAB_CONTACT_DISPLAY_RENDER_NORMAL);
+ display = EAB_CONTACT_DISPLAY (book_shell_view->priv->preview);
+ eab_contact_display_set_contact (display, NULL);
}
static GtkActionEntry contact_entries[] = {
@@ -747,12 +746,12 @@ e_book_shell_view_actions_init (EBookShellView *book_shell_view)
}
void
-e_book_shell_view_actions_update (EBookShellView *book_shell_view,
- EAddressbookView *view)
+e_book_shell_view_actions_update (EBookShellView *book_shell_view)
{
EShellView *shell_view;
EShellWindow *shell_window;
EAddressbookModel *model;
+ EAddressbookView *view;
EBookShellSidebar *book_shell_sidebar;
ESelectionModel *selection_model;
ESourceSelector *selector;
@@ -764,11 +763,9 @@ e_book_shell_view_actions_update (EBookShellView *book_shell_view,
gint n_contacts;
gint n_selected;
- if (e_book_shell_view_get_current_view (book_shell_view) != view)
- return;
-
shell_view = E_SHELL_VIEW (book_shell_view);
shell_window = e_shell_view_get_shell_window (shell_view);
+ view = e_book_shell_view_get_current_view (book_shell_view);
book_shell_sidebar = e_shell_view_get_shell_sidebar (shell_view);
selector = e_book_shell_sidebar_get_selector (book_shell_sidebar);