aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-search-bar.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-03-01 08:55:12 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-03-01 08:55:12 +0800
commiteab717a2ec5594feb514efb487a33018b9a64fe2 (patch)
treeff97ca4ffadd570596232ebd31afda9ccac90838 /widgets/misc/e-search-bar.h
parent1b995212bd98536449d763031654c410200dbdd0 (diff)
downloadgsoc2013-evolution-eab717a2ec5594feb514efb487a33018b9a64fe2.tar.gz
gsoc2013-evolution-eab717a2ec5594feb514efb487a33018b9a64fe2.tar.zst
gsoc2013-evolution-eab717a2ec5594feb514efb487a33018b9a64fe2.zip
New type of search bar that interacts with filter contexts to save filters
2001-03-01 Not Zed <NotZed@Ximian.com> * e-filter-bar.c: New type of search bar that interacts with filter contexts to save filters etc. Still probably needs a little cleanpu. 2001-02-28 Not Zed <NotZed@Ximian.com> * e-search-bar.c (add_dropdown): Save the dropdown menu in the struct too. Sigh, this is only so we can scan its content later, ick. (e_search_bar_set_menu_sensitive): New function to se tthe sentisitivty of menyu items based on id. (find_id): New function to find the row and widget for a specific id. (add_option): Renamed to set_option. (add_dropdown): Renamed to set_dropdown. (add_dropdown): ?New function to add a single item. (set_dropdown): Call add_dropdown to add each item. (e_search_bar_add_menu): New public function to add a single item. 2001-02-27 Not Zed <NotZed@Ximian.com> * Makefile.am (libemiscwidgets_a_SOURCES): Added filter-bar.[ch]. * e-search-bar.c (class_init): Init virtual functions. (e_search_bar_set_option): (e_search_bar_set_menu): virtualise calling. (e_search_bar_construct): Call virtual functions to setup menus. * e-search-bar.h (struct _ESearchBarClass): Virtualise add_dropdown/add_option, so certain base options can be created. svn path=/trunk/; revision=8436
Diffstat (limited to 'widgets/misc/e-search-bar.h')
-rw-r--r--widgets/misc/e-search-bar.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/widgets/misc/e-search-bar.h b/widgets/misc/e-search-bar.h
index 222501d2fe..36b80fafc2 100644
--- a/widgets/misc/e-search-bar.h
+++ b/widgets/misc/e-search-bar.h
@@ -63,7 +63,8 @@ struct _ESearchBar
/* PRIVATE */
GtkWidget *dropdown_holder; /* holds the dropdown */
- GtkWidget *menu;
+ GtkWidget *option_menu;
+ GtkWidget *dropdown_menu;
int option_choice;
};
@@ -72,6 +73,9 @@ struct _ESearchBarClass
{
GtkHBoxClass parent_class;
+ void (*set_menu) (ESearchBar *, ESearchBarItem *);
+ void (*set_option) (ESearchBar *, ESearchBarItem *);
+
void (*query_changed) (ESearchBar *search);
void (*menu_activated) (ESearchBar *search, int item);
};
@@ -79,6 +83,8 @@ struct _ESearchBarClass
GtkType e_search_bar_get_type (void);
void e_search_bar_set_menu (ESearchBar *search_bar, ESearchBarItem *menu_items);
+void e_search_bar_add_menu (ESearchBar *search_bar, ESearchBarItem *menu_item);
+
void e_search_bar_set_option (ESearchBar *search_bar, ESearchBarItem *option_items);
void e_search_bar_construct (ESearchBar *search_bar,
ESearchBarItem *menu_items,
@@ -86,6 +92,8 @@ void e_search_bar_construct (ESearchBar *search_bar,
GtkWidget *e_search_bar_new (ESearchBarItem *menu_items,
ESearchBarItem *option_items);
+void e_search_bar_set_menu_sensitive(ESearchBar *search_bar, int id, gboolean state);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */