aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-search-bar.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't unref the old dropdown, we don't "own" it.Jeffrey Stedfast2001-09-141-3/+0
| | | | | | | | | 2001-09-13 Jeffrey Stedfast <fejj@ximian.com> * e-search-bar.c (set_dropdown): Don't unref the old dropdown, we don't "own" it. svn path=/trunk/; revision=12805
* unref the old dropdown_menu if there is one.Larry Ewing2001-09-131-0/+3
| | | | | | | | | 2001-09-13 Larry Ewing <lewing@ximian.com> * e-search-bar.c (set_dropdown): unref the old dropdown_menu if there is one. svn path=/trunk/; revision=12796
* added a wee bit of padding around the find now label in response to bugAnna Marie Dirks2001-09-061-0/+1
| | | | | | | | | 001-09-05 Anna Marie Dirks <anna@ximian.com> * e-search-bar.c (add_activate_button): added a wee bit of padding around the find now label in response to bug #7049. svn path=/trunk/; revision=12627
* New prototype here.Ettore Perazzoli2001-08-291-0/+33
| | | | | | | | | 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
* Set the horizontal usize of the entry to 4.Ettore Perazzoli2001-08-171-0/+1
| | | | | | | * e-search-bar.c (activate_by_subitems): Set the horizontal usize of the entry to 4. svn path=/trunk/; revision=12132
* Boost scoring on an exact nickname match. Manually addressify match.Jon Trowbridge2001-08-161-41/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Correctness fixes for when the entry and submenu must be interchanged.Federico Mena Quintero2001-08-151-24/+45
| | | | | | | | | 2001-08-14 Federico Mena Quintero <federico@ximian.com> * e-search-bar.c (activate_by_subitems): Correctness fixes for when the entry and submenu must be interchanged. svn path=/trunk/; revision=12019
* *Please* add accessor functions instead of just object arguments!Federico Mena Quintero2001-08-151-41/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add "Any Category" option for category searches.Jon Trowbridge2001-08-141-1/+1
| | | | | | | | | | | | | | | | 2001-08-14 Jon Trowbridge <trow@ximian.com> * gui/component/addressbook.c (addressbook_factory_new_control): Add "Any Category" option for category searches. (addressbook_query_changed): Do the right thing on an "Any Category" search. 2001-08-14 Jon Trowbridge <trow@ximian.com> * e-search-bar.c (activate_by_subitems): Oops... initial suboption_choice should be subitems[0].id, not 0. svn path=/trunk/; revision=12013
* Oops, we didn't need to unref all of the widgets, just a few.Jeffrey Stedfast2001-08-111-11/+3
| | | | | | | | | 2001-08-10 Jeffrey Stedfast <fejj@ximian.com> * e-search-bar.c (impl_destroy): Oops, we didn't need to unref all of the widgets, just a few. svn path=/trunk/; revision=11907
* Removed comment about the need to resolve nicknames properly, because weJon Trowbridge2001-08-111-25/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Don't forget to unref stuff here too.Jeffrey Stedfast2001-08-101-88/+97
| | | | | | | | | | | | | 2001-08-10 Jeffrey Stedfast <fejj@ximian.com> * e-search-bar.c (impl_destroy): Don't forget to unref stuff here too. * e-filter-bar.c (destroy): Free all the goodies that we allocate at construct time and unref the rule context. (class_init): Override the destroy method. svn path=/trunk/; revision=11871
* Re-labeled the "Activate" button "Find Now".Anna Marie Dirks2001-08-091-1/+1
| | | | | | | 2001-08-08 Anna Marie Dirks <anna@ximian.com> * e-search-bar.c: Re-labeled the "Activate" button "Find Now". svn path=/trunk/; revision=11804
* [Added an "Activate" button to the search bar.]Ettore Perazzoli2001-08-051-17/+50
| | | | | | | | | | | | | | | * 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
* *** empty log message ***Jacob Berkman2001-07-161-1/+0
| | | | svn path=/trunk/; revision=11126
* my computer crashed while commiting this first time.Gediminas Paulauskas2001-05-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 2001-05-12 Gediminas Paulauskas <menesis@delfi.lt> * folder-browser-factory.c: load pixmaps for MessageCopy and MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu> for a patch. 2001-05-12 Gediminas Paulauskas <menesis@delfi.lt> * evolution-mail.xml: add pixmaps for MessageCopy and MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu> for a patch. 2001-05-12 Gediminas Paulauskas <menesis@delfi.lt> * po/POTFILES.in: update with new/moved files. also: Removed duplicated DATADIR in mail/Makefile.am fixed warning in e-search-bar.c in my recent code there svn path=/trunk/; revision=9783
* Fix for #2253 (search names not translated), mail-search i18n fixes.Gediminas Paulauskas2001-05-081-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * searches.xml: replace title> with _title>. Part of fix to #2253. 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * mail-search.c: convert search entry to utf8. * mail-local.c: d() debugging message. * mail-send-recv.c: replace " ..." with "..." * Makefile.am: removed EVOLUTION_VERSION. 2001-05-07 Gediminas Paulauskas <menesis@delfi.lt> * POTFILES.in: add mail/mail-search.c 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * misc/e-search-bar.c (add_dropdown), (set_option): first try to translate, then if not suceeded -- convert from utf8. This handles cases when menuitem needs to be translated (it is passed as N_()), or is utf8 search title. However you cannot have a search like "Folders" -- it is translated. Part of fix for #2253. * misc/e-filter-bar.c: d() debugging strings. Use E_FILTERBAR_ADVANCED macro instead of own "Advanced ..." for consistency. 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * filter-rule.c (xml_decode): allow "_title" in user rules. translate them and encode to utf8. (get_rule_part_widget): do not call gettext on part->title. It is always translated already. svn path=/trunk/; revision=9706
* New function, because it is ridiculous to have to hunt down objectFederico Mena Quintero2001-04-161-2/+36
| | | | | | | | | | | | | 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
* i18n fixes, added missing includes.Gediminas Paulauskas2001-04-111-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-10 Gediminas Paulauskas <menesis@delfi.lt> * AUTHORS: /me is a translator. * configure.in (EVO_CHECK_LIB): fail with AC_MSG_ERROR, not echo && exit 1. 2001-04-10 Gediminas Paulauskas <menesis@delfi.lt> * backend/ebook/evolution-gnomecard-importer.c: added missing #include. * contact-editor/e-contact-editor.c (_arrow_pressed): popup menu items were not translated after selecting one of them. * gui/widgets/e-addressbook-view.c: mark popup menu items with N_(). Updated list[] for translators. * gui/widgets/e-minicard.c: same. * gui/widgets/e-minicard-view-widget.c (e_minicard_view_widget_set_arg): fix warning for "editable" arg. * gui/widgets/e-minicard-view.c: convert "empty_message" to utf8. 2001-04-10 Gediminas Paulauskas <menesis@delfi.lt> * widgets/e-summary-subwindow.c: added some missing includes. * widgets/e-summary-title-button.h: same. 2001-04-10 Gediminas Paulauskas <menesis@delfi.lt> * menus/gal-view-menus.c: convert label to utf8. svn path=/trunk/; revision=9215
* More header fixes. Same. Same. Same here. More header fixes. Same here.Kjartan Maraas2001-04-051-0/+4
| | | | | | | | | | | | | 2001-04-04 Kjartan Maraas <kmaraas@gnome.org> * e-calendar.c: More header fixes. * e-cell-date-edit.c: Same. * e-dateedit.[ch]: Same. * e-title-bar.c: Same here. * e-search-bar.c: More header fixes. * test-calendar.c: Same here. svn path=/trunk/; revision=9178
* Replace #include <gtk/gtk.h> Remove #include <gnome.h> Replace #includeKjartan Maraas2001-03-301-1/+4
| | | | | | | | | | | | | | | | | | | | 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-28/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-16/+51
| | | | | | | | | | | | | | 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
* Update copyright and add myself as the author.Ettore Perazzoli2001-01-281-2/+6
| | | | svn path=/trunk/; revision=7877
* Make the ESearchBar pretty by using the same border for the dropdownEttore Perazzoli2001-01-281-3/+24
| | | | | | | | button as the option menu, and adding the right amount of empty space on the right, to match the size of a scrollbar. (The latter is just a dirty ugly bad hack, but it's fine for now.) svn path=/trunk/; revision=7876
* Make the ESearchBar use the new EDropdownButton widget.Ettore Perazzoli2001-01-271-144/+180
| | | | svn path=/trunk/; revision=7855
* Fixed some warnings.Christopher James Lahey2000-12-121-1/+2
| | | | | | | | 2000-12-12 Christopher James Lahey <clahey@helixcode.com> * e-search-bar.c (esb_pack_menubar): Fixed some warnings. svn path=/trunk/; revision=6940
* Made the underline show up properly in the main menu bar.Christopher James Lahey2000-11-111-3/+23
| | | | | | | | | 2000-11-10 Christopher James Lahey <clahey@helixcode.com> * e-search-bar.c: Made the underline show up properly in the main menu bar. svn path=/trunk/; revision=6532
* Switched from using gtk_menu_item_new_with_label for the menu header toChristopher James Lahey2000-11-101-1/+1
| | | | | | | | | 2000-11-10 Christopher James Lahey <clahey@helixcode.com> * e-search-bar.c: Switched from using gtk_menu_item_new_with_label for the menu header to using gnome_stock_menu_item. svn path=/trunk/; revision=6530
* Fixed two spacing problems: first, changed the spacing around the end ofAnna Marie Dirks2000-11-101-2/+4
| | | | | | | | | | 2000-11-08 Anna Marie Dirks <anna@helixcode.com> * e-search-bar.c: Fixed two spacing problems: first, changed the spacing around the end of the text-entry widget so that the text entry is always aligned with the beginning of the scrollbar; second, trimmed down the space between the widgets in the search bar. svn path=/trunk/; revision=6522
* Added e-search-bar.c and e-search-bar.h.Christopher James Lahey2000-11-071-0/+296
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