aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/e-shell-view.c5
-rw-r--r--shell/e-shell-view.h1
2 files changed, 5 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;
diff --git a/shell/e-shell-view.h b/shell/e-shell-view.h
index 6f5912d6f8..ad311ec7aa 100644
--- a/shell/e-shell-view.h
+++ b/shell/e-shell-view.h
@@ -165,6 +165,7 @@ struct _EShellViewClass {
GtkWidget * (*new_shell_content) (EShellView *shell_view);
GtkWidget * (*new_shell_sidebar) (EShellView *shell_view);
GtkWidget * (*new_shell_taskbar) (EShellView *shell_view);
+ GtkWidget * (*new_shell_searchbar) (EShellView *shell_view);
/* Create, configure and pack a search bar widget. */
GtkWidget * (*construct_searchbar) (EShellView *shell_view);