aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-12-08 03:57:15 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-02-20 23:04:24 +0800
commit49bc4c2d765ee1780c23fdc9f42152850dabb220 (patch)
treeb1b5d5aa16503f4c3bc9a29034a6e1e50a4d22b4 /shell/e-shell-view.c
parent30368e326ba2a435f989d78bcefce872772b58bf (diff)
downloadgsoc2013-evolution-49bc4c2d765ee1780c23fdc9f42152850dabb220.tar.gz
gsoc2013-evolution-49bc4c2d765ee1780c23fdc9f42152850dabb220.tar.zst
gsoc2013-evolution-49bc4c2d765ee1780c23fdc9f42152850dabb220.zip
EShellView: Add new_shell_searchbar() factory method.
Defaults to e_shell_searchbar_new().
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 5d7669cc9c..cdd8a212ed 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -645,6 +645,7 @@ shell_view_construct_searchbar (EShellView *shell_view)
EShellWindow *shell_window;
EShellContent *shell_content;
EShellSearchbar *shell_searchbar;
+ EShellViewClass *shell_view_class;
GtkToolItem *item;
GtkAction *action;
GtkWidget *main_toolbar;
@@ -654,7 +655,8 @@ shell_view_construct_searchbar (EShellView *shell_view)
shell_window = e_shell_view_get_shell_window (shell_view);
shell = e_shell_window_get_shell (shell_window);
- widget = e_shell_searchbar_new (shell_view);
+ shell_view_class = E_SHELL_VIEW_GET_CLASS (shell_view);
+ widget = shell_view_class->new_shell_searchbar (shell_view);
/* In normal mode, we hand the searchbar off to EShellContent. */
if (!e_shell_get_express_mode (shell)) {
@@ -815,6 +817,7 @@ e_shell_view_class_init (EShellViewClass *class)
class->new_shell_content = e_shell_content_new;
class->new_shell_sidebar = e_shell_sidebar_new;
class->new_shell_taskbar = e_shell_taskbar_new;
+ class->new_shell_searchbar = e_shell_searchbar_new;
class->construct_searchbar = shell_view_construct_searchbar;
class->get_search_name = shell_view_get_search_name;