aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-searchbar.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-10-26 23:53:16 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-10-27 00:04:39 +0800
commit40b868004c9267a77daefc6f3eee4979ebe3a376 (patch)
tree281da6ab517752aaebbdc0305ca5ed0c711dff94 /shell/e-shell-searchbar.h
parent22fb5d5f21d9ad8cb0f04cdfafdbe2d079c6d2f8 (diff)
downloadgsoc2013-evolution-40b868004c9267a77daefc6f3eee4979ebe3a376.tar
gsoc2013-evolution-40b868004c9267a77daefc6f3eee4979ebe3a376.tar.gz
gsoc2013-evolution-40b868004c9267a77daefc6f3eee4979ebe3a376.tar.bz2
gsoc2013-evolution-40b868004c9267a77daefc6f3eee4979ebe3a376.tar.lz
gsoc2013-evolution-40b868004c9267a77daefc6f3eee4979ebe3a376.tar.xz
gsoc2013-evolution-40b868004c9267a77daefc6f3eee4979ebe3a376.tar.zst
gsoc2013-evolution-40b868004c9267a77daefc6f3eee4979ebe3a376.zip
Bug 709428 - Searchbar widgets should not wrap
Instead of wrapping the searchbar for small screens (which looks ugly and breaks the initial window size on large screens), hide the filter combo box in views that would otherwise be too wide for the screen. There's no loss of functionality when hiding the filter combo box. It's just a set of convenient pre-defined searches, all of which can be reproduced through the Advanced Search interface. New functions: e_shell_searchbar_get_filter_visible() e_shell_searchbar_set_filter_visible()
Diffstat (limited to 'shell/e-shell-searchbar.h')
-rw-r--r--shell/e-shell-searchbar.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/shell/e-shell-searchbar.h b/shell/e-shell-searchbar.h
index f8b34c2f9c..2d4ada5397 100644
--- a/shell/e-shell-searchbar.h
+++ b/shell/e-shell-searchbar.h
@@ -57,12 +57,12 @@ typedef struct _EShellSearchbarPrivate EShellSearchbarPrivate;
* functions below.
**/
struct _EShellSearchbar {
- GtkGrid parent;
+ GtkBox parent;
EShellSearchbarPrivate *priv;
};
struct _EShellSearchbarClass {
- GtkGridClass parent_class;
+ GtkBoxClass parent_class;
};
GType e_shell_searchbar_get_type (void);
@@ -72,6 +72,11 @@ EShellView * e_shell_searchbar_get_shell_view
EActionComboBox *
e_shell_searchbar_get_filter_combo_box
(EShellSearchbar *searchbar);
+gboolean e_shell_searchbar_get_filter_visible
+ (EShellSearchbar *searchbar);
+void e_shell_searchbar_set_filter_visible
+ (EShellSearchbar *searchbar,
+ gboolean filter_visible);
const gchar * e_shell_searchbar_get_search_hint
(EShellSearchbar *searchbar);
void e_shell_searchbar_set_search_hint