[evolution] EShellView: Add new_shell_searchbar() factory method.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EShellView: Add new_shell_searchbar() factory method.
- Date: Mon, 20 Feb 2012 15:04:34 +0000 (UTC)
commit 49bc4c2d765ee1780c23fdc9f42152850dabb220
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Dec 7 14:57:15 2011 -0500
EShellView: Add new_shell_searchbar() factory method.
Defaults to e_shell_searchbar_new().
shell/e-shell-view.c | 5 ++++-
shell/e-shell-view.h | 1 +
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 5d7669c..cdd8a21 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 6f5912d..ad311ec 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]