aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-search-bar.h
Commit message (Collapse)AuthorAgeFilesLines
* Fixes a lot of search issues.Srinivasa Ragavan2006-09-291-1/+5
| | | | svn path=/trunk/; revision=32821
* fixes a lot of search issues.Srinivasa Ragavan2006-08-211-1/+2
| | | | svn path=/trunk/; revision=32605
* Committed Johnny's string changes for searchSrinivasa Ragavan2006-08-051-1/+2
| | | | svn path=/trunk/; revision=32474
* Fix compile error in solarisHarry Lu2006-07-031-0/+2
| | | | | | | | | | | 2006-07-03 Harry Lu <harry.lu@sun.com> Fix compile error in solaris * e-filter-bar.h: E_FILTERBAR_SEPARATOR should have 3 members. * e-search-bar.h: add the declaration of e_search_bar_set_viewitem_id. svn path=/trunk/; revision=32221
* Enhanced search functionality. patch submitted by Johnny Jacob ReviewedHarish Krishnaswamy2006-06-301-15/+45
| | | | | | | | | 2006-06-30 Harish Krishnaswamy <kharish@novell.com> Enhanced search functionality. patch submitted by Johnny Jacob Reviewed and committed by Harish. svn path=/trunk/; revision=32207
* ignore the generated marshal source.Chris Toshok2002-11-071-12/+7
| | | | | | | | | | | | | | 2002-11-06 Chris Toshok <toshok@ximian.com> * .cvsignore: ignore the generated marshal source. * Makefile.am: add marshal stuff. * e-util-marshal.list: marshaller list. * e-search-bar.[ch]: gobjectify this. svn path=/trunk/; revision=18627
* If the clear button was pressed, we want the entry to be sensitive (notJeffrey Stedfast2002-10-241-2/+2
| | | | | | | | | | | | | | | | | 2002-10-23 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (option_changed): If the clear button was pressed, we want the entry to be sensitive (not insensitive). * e-search-bar.c (e_search_bar_set_item_id): If the item id is CLEAR_ID, we want to select the first item (0) but still set the esb->item_id to CLEAR_ID. (set_find_now_sensitive): Don't bother getting the GtkEntry text, we don't even use it? (clear_search): Set the item id as E_SEARCHBAR_CLEAR_ID rather than 0 so that it can be checked for. svn path=/trunk/; revision=18421
* Add missing cast. (e_calendar_item_signal_emission_idle_cb): Likewise.Ettore Perazzoli2002-07-241-1/+0
| | | | | | | | | | | | | | * e-calendar-item.c (e_calendar_item_signal_emission_idle_cb): Add missing cast. (e_calendar_item_signal_emission_idle_cb): Likewise. * e-search-bar.c (init): Don't initialize dropdown_menu here anymore since we got rid of it. * e-search-bar.h (struct _ESearchBar): Removed member dropdown_menu. svn path=/trunk/; revision=17567
* Also perform a search on the query_changed signal, which is what getsPeter Williams2002-07-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-22 Peter Williams <peterw@ximian.com> * folder-browser.c (folder_browser_gui_init): Also perform a search on the query_changed signal, which is what gets emitted when the Search menu is used. 2002-07-22 Peter Williams <peterw@ximian.com> * e-filter-bar.c (do_advanced): Break out the code for creating the advanced rule editor into a separate function, so that... (menubar_activated): ... can also create an Advanced dialog; needed when the Search menu's advanced button is used. (option_changed): Change this to call the function instead of having all the code to itself. * e-search-bar.h: Add id's for the FIND_NOW and CLEAR actions so that other code (eg, EFilterBar) doesn't get confused by an old id being used when the search-activated signal gets emitted. * e-search-bar.c (clear_search): Set the item_id to CLEAR before emitting the signal. (search_now_verb_cb): Just make this emit query_changed, as the button in the toolbar does. svn path=/trunk/; revision=17550
* Add accelerators for "Find Now" and "Clear".Ettore Perazzoli2002-03-211-3/+3
| | | | | | | | | | | | | * e-search-bar.c (update_bonobo_menus): Add accelerators for "Find Now" and "Clear". * e-filter-bar.h: Change search labels as suggested in Anna's redesign [#16246]. * folder-browser.c: Reorder folder_browser_search_menu_items according to #16246. svn path=/trunk/; revision=16219
* Init clear_button to NULL. (add_button): New helper function to add aEttore Perazzoli2002-03-191-0/+1
| | | | | | | | | | | | | | | | * e-search-bar.c (init): Init clear_button to NULL. (add_button): New helper function to add a button to the search bar with the right spacing etc. (clear_search): New helper function. (add_activate_button): Removed. (clear_button_clicked_cb): New. (e_search_bar_construct): Just add the button here using `add_button'. Also add a clear_button. (clear_verb_cb): Rewritten by means of `clear_search()'. * e-search-bar.h (ESearchBar): Add clear_button. svn path=/trunk/; revision=16198
* [Start implementing the new Search Bar design.]Ettore Perazzoli2002-03-161-27/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-search-bar.c (init): Init various members to NULL. (set_dropdown): Removed. (add_dropdown): Removed. (set_menu): New. (add_menu_items): New. (set_option): No need to setup the dropdown size here anymore. (verb_cb): Function implementing the search menu verbs. (update_bonobo_menus): New. (e_search_bar_set_ui_component): New. * e-search-bar.h: Remove the dropdown button stuff from struct ESearchBar. Add `uic' and `items' members. * e-filter-bar.c (e_filter_bar_new): Get a @uic arg. * folder-browser-factory.c (control_activate): Set the UI component on the search bar. * gui/tasks-control.c (tasks_control_activate): Call `e_tasks_set_ui_component()' here to give it the BonoboUIComponent. (tasks_control_deactivate): Likewise, call it here to unset the BonoboUIComponent. * gui/e-tasks.c (e_tasks_set_ui_component): New. * gui/calendar-commands.c (calendar_control_activate): Call gnome_calendar_set_ui_component() here. (calendar_control_deactivate): ...And here, with a NULL BonoboUIComponent. * gui/gnome-cal.c (gnome_calendar_set_ui_component): New. * gui/component/addressbook.c (control_activate): Call `e_search_bar_set_ui_component()' to set the BonoboUIComponent for the search bar. * gui/component/GNOME_Evolution_Addressbook.oaf.in: Add an icon for the LDAP sources configuration control. svn path=/trunk/; revision=16178
* preserve behavior - hook search_activated signal to the same function asChris Toshok2002-02-251-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-24 Chris Toshok <toshok@ximian.com> * e-filter-bar.c (init): preserve behavior - hook search_activated signal to the same function as query_changed. * e-search-bar.c (emit_search_activated): new function. (entry_activated_cb): use emit_search_activated instead of emit_query_changed. (subitem_activated_cb): same. (activate_button_clicked_cb): same. (class_init): add the search_activated signal. (idle_activate_hack): rename idle_change_hack to this, and emit_search_activated. (e_search_bar_construct): idle_change_hack -> idle_activate_hack. (e_search_bar_set_subitem_id): emit_search_activated instead of emit_query_changed. (e_search_bar_set_text): same. * e-search-bar.h (struct _ESearchBarClass): add a search_activated signal. svn path=/trunk/; revision=15827
* Fixing the license text.Ettore Perazzoli2001-10-281-1/+0
| | | | svn path=/trunk/; revision=14212
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* New prototype here.Ettore Perazzoli2001-08-291-0/+2
| | | | | | | | | 2001-08-27 Ettore Perazzoli <ettore@ximian.com> * e-timezone-dialog/e-timezone-dialog.h (e_timezone_dialog_reparent): New prototype here. svn path=/trunk/; revision=12511
* Boost scoring on an exact nickname match. Manually addressify match.Jon Trowbridge2001-08-161-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-16 Jon Trowbridge <trow@ximian.com> * gui/component/select-names/e-select-names-completion.c (match_nickname): Boost scoring on an exact nickname match. Manually addressify match. (match_name): Manually addressify matches. (book_query_score): Remove automatic addressification. * gui/component/addressbook.c (addressbook_query_changed): Minor tweak to avoid a crash if we have a negative subid with id ESB_CATEGORY. This should never happen. (addressbook_menu_activated): Reset the entry/option when we select "Clear". Some changes to reflect renaming in ESearchBar. * gui/component/select-names/e-select-names-bonobo.c (entry_set_property_fn): Cardify after importing destinations. This might fix a problem that Damon is having. 2001-08-16 Jon Trowbridge <trow@ximian.com> * e-filter-bar.c (option_changed): Adjusted for renamed ESearchBar functions. (menubar_activated): Adjusted for renamed ESearchBar functions. * e-search-bar.c: Renames some of the horrible function names: s/option_choice/item_id/, s/suboption_choice/subitem_id/. 2001-08-16 Jon Trowbridge <trow@ximian.com> * gui/cal-search-bar.c: Changed to reflect my renaming of some of the more hideously-named functions in the ESearchBar API. svn path=/trunk/; revision=12081
* *Please* add accessor functions instead of just object arguments!Federico Mena Quintero2001-08-151-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-14 Federico Mena Quintero <federico@ximian.com> *Please* add accessor functions instead of just object arguments! * e-search-bar.c (e_search_bar_set_option_choice): New function. (e_search_bar_set_suboption_choice): New function. (e_search_bar_set_text): New function. (impl_set_arg): Use the functions above instead of setting things directly. (add_dropdown): If the item is a separator, set it as insensitive. (activate_by_subitems): Handle the translate field in the subitem structure. Also, allow the creation of separators by having NULL text strings in the subitems. (set_option): If the item is a separator, set it as insensitive. (set_option): Do not use the subitem_garbage hack. Do proper memory management instead. (e_search_bar_set_suboption): New function to change the suboption items in a search bar. * e-search-bar.h (ESearchBarSubitem): Added a `translate' field. This API sucks so much it is not funny. (ESearchBar): Removed the subitem_garbage hack. Please do proper memory management. svn path=/trunk/; revision=12014
* Removed comment about the need to resolve nicknames properly, because weJon Trowbridge2001-08-111-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-10 Jon Trowbridge <trow@ximian.com> * e-msg-composer-hdrs.c (set_recipients): Removed comment about the need to resolve nicknames properly, because we now do that. 2001-08-10 Jon Trowbridge <trow@ximian.com> * e-filter-bar.h: Set the subitems to NULL in the pre-defined ESearchBarItems. * e-filter-bar.c (rule_editor_clicked): Set the ESearchBarItem's subitems to NULL. (build_items): Set the ESearchBarItem's subitems to NULL. (e_filter_bar_new): Set the ESearchBarItem's subitems to NULL. * e-search-bar.c: Added support for subitems, so that a search option can key off of another option menu rather than just an entry. 2001-08-10 Jon Trowbridge <trow@ximian.com> * gui/component/addressbook.c: Set the ESearchBarItem subitems explicitly to NULL. 2001-08-10 Jon Trowbridge <trow@ximian.com> * gui/cal-search-bar.c: Where we have ESearchBarItems, set their subitems to NULL. 2001-08-10 Jon Trowbridge <trow@ximian.com> * folder-browser.c: Set our ESearchBarItems subitems to NULL. svn path=/trunk/; revision=11904
* [Added an "Activate" button to the search bar.]Ettore Perazzoli2001-08-051-0/+1
| | | | | | | | | | | | | | | * e-search-bar.c (submit_button_clicked_cb): Callback for the "clicked" signal on the activate button. (add_submit): New function to add a "Activate" button on the right of the entry. (e_search_bar_construct): Call it. (add_spacer): Removed. (e_search_bar_construct): Don't call it. (find_id): Remove debugging message. (put_in_spacer_widget): New utility function to create a GtkEventBox with a border width of one and put a widget into it. svn path=/trunk/; revision=11690
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-231-2/+2
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* New function, because it is ridiculous to have to hunt down objectFederico Mena Quintero2001-04-161-0/+3
| | | | | | | | | | | | | 2001-04-15 Federico Mena Quintero <federico@ximian.com> * e-search-bar.c (e_search_bar_get_option_choice): New function, because it is ridiculous to have to hunt down object arguments to fetch values. (e_search_bar_get_text): Likewise. (impl_get_arg): Use the functions above so that we have to maintain only one version of the getters. svn path=/trunk/; revision=9339
* Replace #include <gtk/gtk.h> Remove #include <gnome.h> Replace #includeKjartan Maraas2001-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | 2001-03-29 Kjartan Maraas <kmaraas@gnome.org> * e-dropdown-button.c: Replace #include <gtk/gtk.h> * e-dropdown-button.h: Remove #include <gnome.h> * e-filter-bar.c: Replace #include <gtk/gtk.h> * e-filter-bar.h: Replace #include <gtk/gtk.h> * e-messagebox.c: Add #includes to count for removed <gnome.h> in e-messagebox.h: * e-messagebox.h: Replace #include <gnome.h> * e-search-bar.c: Replace #include <gnome.h> * e-search-bar.h: Same here * test-calendar.c: Remove #include <gnome.h> * test-dateedit.c: Replace #include <gnome.h> * test-dropdown-button.c: Same here. * test-title-bar.c: Same here. svn path=/trunk/; revision=9018
* New type of search bar that interacts with filter contexts to save filtersNot Zed2001-03-011-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Move the event box into the esb->dropdown_holder. Changed so it can beNot Zed2001-02-241-0/+7
| | | | | | | | | | | | | | 2001-02-24 Not Zed <NotZed@Ximian.com> * e-search-bar.c (add_dropdown): Move the event box into the esb->dropdown_holder. Changed so it can be called again on the same esb, to rebuild the menu. (e_search_bar_set_menu): New function to (re)set the menu. (add_option): Setup so it can be re-called to rebuild the option list. (e_search_bar_set_option): New function to build the menu's. svn path=/trunk/; revision=8373
* Make the ESearchBar use the new EDropdownButton widget.Ettore Perazzoli2001-01-271-2/+6
| | | | svn path=/trunk/; revision=7855
* Fixed the argument comment. Removed an old enum that's not used here.Christopher James Lahey2000-11-071-9/+4
| | | | | | | | | 2000-11-06 Christopher James Lahey <clahey@helixcode.com> * e-search-bar.h: Fixed the argument comment. Removed an old enum that's not used here. svn path=/trunk/; revision=6457
* Added e-search-bar.c and e-search-bar.h.Christopher James Lahey2000-11-071-0/+88
2000-11-06 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added e-search-bar.c and e-search-bar.h. * e-search-bar.c, e-search-bar.h: Moved this from e-addressbook-search. svn path=/trunk/; revision=6454