aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-filter-bar.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix excessive whitespace.Matthew Barnes2009-07-131-7/+0
|
* More code cleanup.Matthew Barnes2009-06-021-1/+1
|
* Whitespace cleanup.Matthew Barnes2009-05-291-3/+3
|
* Prefer GLib basic types over C types.Matthew Barnes2009-05-291-53/+53
|
* Remove trailing whitespace, again.Matthew Barnes2009-05-291-1/+1
|
* Fix compiler warnings in widgets.Matthew Barnes2009-05-261-1/+1
|
* Filter/Search bar changes for Anjal.Srinivasa Ragavan2009-05-221-0/+16
|
* Bug 580925 – Better search bar for word searchesMatthew Barnes2009-05-211-6/+0
| | | | | | Make the word search bar more like Firefox and get rid of the "Current Message" search scope in the folder search bar. Shift+Ctrl+F now activates the word search bar.
* Fix several types of pedantic compiler warnings.Matthew Barnes2009-05-171-1/+1
|
* ** Remove a bunch of juvenile comments. Source code should lookMatthew Barnes2009-04-121-2/+0
| | | | | | | | | | 2009-04-12 Matthew Barnes <mbarnes@redhat.com> ** Remove a bunch of juvenile comments. Source code should look professional, even if some developers are not. svn path=/trunk/; revision=37514
* ** Fix for bug #404232Milan Crha2009-02-121-1/+2
| | | | | | | | | | | | | | | | 2009-02-12 Milan Crha <mcrha@redhat.com> ** Fix for bug #404232 * addressbook/gui/widgets/e-addressbook-view.c: (search_activated): Rebuild view immediately for an advanced search too. * widgets/misc/e-filter-bar.c: (rule_advanced_response): Emit signal after search bar text is set, thus the text will not be empty, which is considered as "no search" these days. svn path=/trunk/; revision=37253
* Change License from GPL to LGPL. 2nd batch.Sankarasivasubramanian Pasupathilingam2008-09-031-18/+14
| | | | | | More changes to come. svn path=/trunk/; revision=36247
* updated novell copyright notices (left others alone)Jeffrey Stedfast2008-06-211-1/+1
| | | | svn path=/trunk/; revision=35665
* ** Fixes bug #534360Matthew Barnes2008-05-231-20/+23
| | | | | | | | | | | | 2008-05-22 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #534360 Migrate from deprecated GtkObject symbols to GObject equivalents. Touches over 150 files in all components; too many to list. svn path=/trunk/; revision=35526
* ** Fix for bug #528288Milan Crha2008-04-301-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | 2008-04-30 Milan Crha <mcrha@redhat.com> ** Fix for bug #528288 * widgets/misc/e-filter-bar.c: (get_property): Do not return any query with empty text from search bar. * widgets/table/e-tree.h: (e_tree_set_info_message): * widgets/table/e-tree.c: (struct ETreePriv), (et_dispose), (e_tree_init), (tree_size_allocate), (e_tree_set_info_message): Allow setting info message into the tree. It doesn't check whether the tree is empty or not, so take care of that. * mail/em-folder-browser.c: (emfb_init), (em_folder_browser_show_wide): Ensure minimum size for preview and message list. * mail/em-folder-browser.c: (get_view_query): Distinguish between no filter and custom filter. * mail/message-list.c: (regen_list_done): Set info message to tree when no message shown in a list. svn path=/trunk/; revision=35459
* Fix for 467581 : wrap a/c searches in a camel-op for better cancellation.Johnny Jacob2008-01-251-0/+2
| | | | svn path=/trunk/; revision=34892
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-151-114/+114
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-021-2/+2
| | | | | | | | | | 2007-09-02 Matthew Barnes <mbarnes@redhat.com> * Update FSF address in header comments (#469886). Patch from Tobias Mueller. svn path=/trunk/; revision=34151
* ** Fix for bug #263207Srinivasa Ragavan2007-06-181-6/+24
| | | | svn path=/trunk/; revision=33689
* Added construct function.Chenthill Palanisamy2007-06-041-3/+16
| | | | svn path=/trunk/; revision=33649
* Fix compilation warnings in widgets folder (#441014).Matthew Barnes2007-06-031-26/+27
| | | | svn path=/trunk/; revision=33626
* Massive code cleanup (bug #429422)Matthew Barnes2007-04-201-2/+2
| | | | svn path=/trunk/; revision=33432
* Fix build breakage due to poorly placed preprocessor condition.Matthew Barnes2007-03-271-1/+1
| | | | | | | | | | 2007-03-27 Matthew Barnes <mbarnes@redhat.com> * widgets/misc/e-filter-bar.c (menubar_activated): Fix build breakage due to poorly placed preprocessor condition. svn path=/trunk/; revision=33326
* Don't mix declarations and code (#405495).Matthew Barnes2007-03-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-03-27 Matthew Barnes <mbarnes@redhat.com> * a11y/e-table/gal-a11y-e-cell-text.c: * a11y/e-table/gal-a11y-e-cell-vbox.c: * addressbook/gui/component/addressbook-component.c: * addressbook/gui/component/addressbook-view.c: * addressbook/gui/contact-editor/e-contact-editor.c: * addressbook/gui/contact-editor/e-contact-quick-add.c: * addressbook/gui/widgets/e-addressbook-view.c: * addressbook/gui/widgets/eab-contact-display.c: * addressbook/gui/widgets/gal-view-minicard.c: * calendar/gui/alarm-notify/alarm-queue.c: * calendar/gui/dialogs/comp-editor.c: * calendar/gui/dialogs/event-page.c: * calendar/gui/dialogs/memo-page.c: * calendar/gui/dialogs/task-page.c: * calendar/gui/e-cal-popup.c: * calendar/gui/e-meeting-list-view.c: * calendar/gui/e-tasks.c: * calendar/gui/gnome-cal.c: * composer/e-msg-composer.c: * mail/em-folder-browser.c: * mail/em-format.c: * mail/em-popup.c: * plugins/exchange-operations/exchange-account-setup.c: * plugins/exchange-operations/exchange-calendar.c: * plugins/exchange-operations/exchange-config-listener.c: * plugins/exchange-operations/exchange-contacts.c: * plugins/import-ics-attachments/icsimporter.c: * widgets/misc/e-filter-bar.c: * widgets/misc/e-multi-config-dialog.c: * widgets/table/e-cell-checkbox.c: * widgets/table/e-table-header-item.c: Don't mix declarations and code (#405495). svn path=/trunk/; revision=33324
* ** Fixes bug #419524Matthew Barnes2007-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 2007-03-20 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #419524 * Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>. * e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list): * mail/em-migrate.c (emm_setup_initial): * shell/e-component-registry.c (query_components): * shell/e-shell-settings-dialog.c (load_pages): * shell/e-shell-window-commands.c (command_quick_reference): * tools/killev.c (main): Use g_get_language_names() instead of gnome_i18n_get_language_list(). * e-util/e-util.c: Remove e_gettext(). * e-util/Makefile.am: Remove e-i18n.h. svn path=/trunk/; revision=33319
* Fixes bug #368983Srinivasa Ragavan2007-02-121-1/+11
| | | | svn path=/trunk/; revision=33203
* Initialize ESearchBarItem type to ESB_ITEMTYPE_RADIO. Fixes #382860.Harish Krishnaswamy2007-01-081-2/+2
| | | | | | | | | 2006-12-04 Harish Krishnaswamy <kharish@novell.com> * e-filter-bar.c: (build_items): Initialize ESearchBarItem type to ESB_ITEMTYPE_RADIO. Fixes #382860. svn path=/trunk/; revision=33123
* Fixes bug #357970Matthew Barnes2006-12-041-2/+2
| | | | | | | | | | | | | | | | | 2006-12-04 Matthew Barnes <mbarnes@redhat.com> Fixes bug #357970 * e-calendar-item.c: * e-canvas-background.c: * e-filter-bar.c: * e-search-bar.c: * gal-combo-box.c: Don't call deprecated GLib / GDK functions. * e-colors.c (e_color_alloc): Remove unused function. svn path=/trunk/; revision=33048
* Fix read of uninitialized ESearchBarItems. Partially fixes #381642.Harish Krishnaswamy2006-12-041-2/+2
| | | | | | | | | 2006-12-04 Harish Krishnaswamy <kharish@novell.com> * e-filter-bar.c: (build_items): Fix read of uninitialized ESearchBarItems. Partially fixes #381642. svn path=/trunk/; revision=33042
* type should be initialized to 0, not NULL.Harish Krishnaswamy2006-11-211-1/+1
| | | | | | | | | 2006-11-21 Harish Krishnaswamy <kharish@novell.com> * e-filter-bar.c: (e_filter_bar_new): type should be initialized to 0, not NULL. svn path=/trunk/; revision=33010
* ** Fix for bug #360237 & bug #359236Srinivasa Ragavan2006-10-111-2/+6
| | | | svn path=/trunk/; revision=32865
* Fixes a lot of search issues.Srinivasa Ragavan2006-09-291-28/+96
| | | | svn path=/trunk/; revision=32821
* fixes a lot of search issues.Srinivasa Ragavan2006-08-211-11/+15
| | | | svn path=/trunk/; revision=32605
* Enhanced search functionality. patch submitted by Johnny Jacob ReviewedHarish Krishnaswamy2006-06-301-87/+71
| | | | | | | | | 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
* Tons of cleanups of the following sort: - remove unused vars - removeKjartan Maraas2006-01-301-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-30 Kjartan Maraas <kmaraas@gnome.org> * e-timezone-dialog/e-timezone-dialog.c: (get_zone_from_point): * menus/gal-view-menus.c: * misc/e-attachment-bar.c: (calculate_height_width), (update_remote_file), (e_attachment_bar_get_attachment), (class_init): * misc/e-attachment.c: (async_progress_update_cb), (download_to_local_path): * misc/e-calendar-item.c: (e_calendar_item_get_arg), (e_calendar_item_realize), (e_calendar_item_ensure_days_visible): * misc/e-calendar.c: (e_calendar_drag_motion), (e_calendar_drag_leave), (e_calendar_focus): * misc/e-canvas-background.c: (ecb_get_property): * misc/e-canvas.c: (e_canvas_class_init), (pick_current_item): * misc/e-cell-date-edit.c: (e_cell_date_edit_do_popup), (e_cell_date_edit_show_popup): * misc/e-cell-percent.c: * misc/e-charset-picker.c: (e_charset_picker_bonobo_ui_populate): * misc/e-config-page.c: (e_config_page_class_init): * misc/e-dateedit.c: (e_date_edit_set_date), (e_date_edit_set_date_and_time_of_day), (on_date_popup_date_selected): * misc/e-dropdown-button.c: (e_dropdown_button_class_init): * misc/e-expander.c: (get_expander_bounds), (e_expander_expose), (is_in_expander_panel): * misc/e-filter-bar.c: (option_changed), (build_items): * misc/e-image-chooser.c: (e_image_chooser_init), (image_drag_data_received_cb): * misc/e-map.c: (e_map_size_allocate), (e_map_button_press), (e_map_button_release), (e_map_motion), (e_map_zoom_to_location), (e_map_zoom_out), (update_render_point), (repaint_point), (zoom_in_smooth): * misc/e-multi-config-dialog.c: (impl_response): * misc/e-reflow.c: (e_reflow_realize), (e_reflow_event): * misc/e-search-bar.c: (clear_search), (search_now_verb_cb), (entry_activated_cb), (activate_button_clicked_cb), (clear_button_clicked_cb): * misc/e-selection-model.c: (e_selection_model_key_press): * misc/e-send-options.c: (delay_until_date_changed_cb), (e_sendoptions_get_need_general_options): * misc/e-unicode.c: (e_stripped_char): * table/e-cell-progress.c: (eprog_draw_border), (eprog_draw), (eprog_event): * table/e-cell-spin-button.c: (ecsb_event), (ecsb_focus), (ecsb_unfocus), (ecsb_dispose): * table/e-cell-text.c: (ect_draw), (ect_show_tooltip): * table/e-cell-toggle.c: (etog_draw), (etog_event): * table/e-cell-tree.c: (ect_max_width): * table/e-cell-vbox.c: * table/e-table-click-to-add.c: (etcta_event): * table/e-table-config.c: (create_global_store): * table/e-table-field-chooser-dialog.c: * table/e-table-field-chooser-item.c: (etfci_find_button), (etfci_reflow), (etfci_get_property), (etfci_realize): * table/e-table-field-chooser.c: (e_table_field_chooser_class_init): * table/e-table-group-container.c: (etgc_unrealize): * table/e-table-group.c: (e_table_group_new): * table/e-table-header-item.c: (e_table_header_item_get_height), (ethi_realize), (ethi_event): * table/e-table-header-utils.c: (e_table_draw_elided_string), (e_table_header_draw_button): * table/e-table-item.c: (eti_set_property), (eti_get_property), (eti_draw), (eti_event), (eti_cursor_change): * table/e-table-scrolled.c: (e_table_scrolled_class_init): * table/e-table-search.c: * table/e-table-sort-info.c: (e_table_sort_info_save_to_node): * table/e-table.c: (table_canvas_reflow_idle), (table_canvas_size_allocate), (canvas_vbox_event), (click_to_add_event), (do_drag_motion), (e_table_class_init): * table/e-tree-scrolled.c: (e_tree_scrolled_class_init): * table/e-tree.c: (tree_canvas_reflow_idle), (tree_canvas_size_allocate), (e_tree_drag_get_data), (do_drag_motion), (e_tree_class_init): * text/e-text.c: (e_text_set_property), (e_text_draw), (_do_tooltip), (primary_clear_cb), (_get_position), (e_text_command): Tons of cleanups of the following sort: - remove unused vars - remove extraneous semi-colons - add some comments where assignments were done without using the results later - remove break; statements after return foo; - add casts in some places to be more type correct - rename variables with name clashes - s/if/ifdef in some cases - mark some code static - remove some unused functions - use guint for 1-bit bitfields svn path=/trunk/; revision=31371
* ** See Bug #246233 : Changed "Search Editor" to "Searches"Veerapuram Varadhan2005-12-201-1/+1
| | | | | | | | ** See Bug #246233 * e-filter-bar.c: (member_activated) : Changed "Search Editor" to "Searches" svn path=/trunk/; revision=30902
* Added a visual cue to search bar to indicate search filter active.Srinivasa Ragavan2005-12-151-1/+26
| | | | | | | | | 2005-12-15 Srinivasa Ragavan <sragavan@novell.com> * Added a visual cue to search bar to indicate search filter active. svn path=/trunk/; revision=30781
* revert dobey's last patch here, it completely broke customisation of theNot Zed2005-08-151-11/+11
| | | | | | | | | 2005-08-03 Not Zed <NotZed@Ximian.com> * e-filter-bar.c (build_items): revert dobey's last patch here, it completely broke customisation of the menu. svn path=/trunk/; revision=30116
* Add profiler so that it gets disted properlyRodney Dawes2005-05-141-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-13 Rodney Dawes <dobey@novell.com> * plugins/Makefile.am (DIST_SUBDIRS): Add profiler so that it gets disted properly 2005-05-13 Rodney Dawes <dobey@novell.com> * Makefile.am: Add new em-folder-utils.[ch] abstraction * em-folder-browser.c: Update for new menu layout Add new methods to handle the actions that were previously only available from the context menu when right-clicking on a folder * em-folder-selector.c (emfs_response): Just call emfu_folder_create if the user wants to create a new folder in the selector dialog (em_folder_selector_get_selected_path): Clean up the code to fix a couple potential crashes * em-folder-tree.[ch]: Add methods to get pointers to a CamelFolder or CamelFolderInfo object for the selected item in the tree Add a method to get a pointer to an EMFolderTreeModelStoreInfo object for the selected store in the tree Move folder operations out into em-folder-utils.[ch] so that they are abstracted from the tree and can be used by methods other than the internal context menu * em-folder-utils.[ch]: Move the folder operations code to here * em-folder-view.c: Update for the new menu layout Fix Mark as Read/Unread in the context menu to only show up in the list * mail-component.c (create_item): Just call emfu_folder_create here when the user requests to create a new folder from the New toolbar item 2005-05-13 Rodney Dawes <dobey@novell.com> * org-gnome-mailing-list-actions.xml: Update for the new menu layout 2005-05-13 Rodney Dawes <dobey@novell.com> * org-gnome-plugin-manager.xml: Update for new menu layout 2005-05-13 Rodney Dawes <dobey@novell.com> * org-gnome-save-attachments.xml: Update for new menu layout 2005-05-13 Rodney Dawes <dobey@novell.com> * e-shell-window.c (setup_widgets): Update for the new menu layout by putting the "component" switching items under the "Tools" menu 2005-05-13 Rodney Dawes <dobey@novell.com> * *.xml: Update to the new menu layout 2005-05-13 Rodney Dawes <dobey@novell.com> * e-filter-bar.[ch]: Update for the new menu layout svn path=/trunk/; revision=29354
* Set the border widths on the dialog's vbox and action area to beRodney Dawes2004-04-151-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-09 Rodney Dawes <dobey@ximian.com> * e-timezone-dialog/e-timezone-dialog.c (e_timezone_dialog_construct): Set the border widths on the dialog's vbox and action area to be HIG-complaint Get rid of the timezone preview widget in here Point the internal 'table' to the right widget (on_map_motion): Get rid of the extra-hacky code to set the preview widget's label to the timezone, now that that widget is gone (on_map_leave): Update the comment to not reference the preview widget that is now gone Get rid of the code to set the preview widget's label to empty string * e-timezone-dialog/e-timezone-dialog.glade: Update for HIG-compliance 2004-04-09 Rodney Dawes <dobey@ximian.com> * e-charset-picker.c: Include gtkhbox.h in here to avoid the warnings (activate_other): (e_charset_picker_dialog): Make these dialogs be more HIG-compliant * e-filter-bar.c (do_advanced): (menubar_activated): Make these dialogs be more HIG-compliant svn path=/trunk/; revision=25468
* start the rule editor with the right label.Not Zed2004-03-311-1/+1
| | | | | | | | | 2004-03-31 Not Zed <NotZed@Ximian.com> * e-filter-bar.c (menubar_activated): start the rule editor with the right label. svn path=/trunk/; revision=25258
* Fix for bug #55267.Jeffrey Stedfast2004-03-121-2/+0
| | | | | | | | | | | | | 2004-03-11 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #55267. * e-filter-bar.c (set_property): Use efb->setquery properly (set to TRUE before calling set_item_id and FLASE afterwards). Also setquery to TRUE before emitting the "search-activated" signal so that we don't run the callback for the signal we are emitting. svn path=/trunk/; revision=25032
* Use efb->setquery properly (set to TRUE before calling set_item_id andJeffrey Stedfast2004-03-121-8/+21
| | | | | | | | | | | 2004-03-11 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (set_property): Use efb->setquery properly (set to TRUE before calling set_item_id and FLASE afterwards). Also setquery to TRUE before emitting the "search-activated" signal so that we don't run the callback for the signal we are emitting. svn path=/trunk/; revision=25031
* Emit the "search-activated" signal. Fixes bug #55054.Jeffrey Stedfast2004-03-031-0/+4
| | | | | | | | | 2004-03-02 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (set_property): Emit the "search-activated" signal. Fixes bug #55054. svn path=/trunk/; revision=24934
* Only save the search-bar state OR the filter-bar state - decided based onJeffrey Stedfast2004-01-311-51/+29
| | | | | | | | | | | | | | | 2004-01-30 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (get_property): Only save the search-bar state OR the filter-bar state - decided based on what the search is. If the search is an advanced search, then save the filter-bar state, otherwise save the search-bar state. (set_property): Only need to restore the first state we find (filter-bar vs search-bar). If we are restoring filter-bar state, set efb->setquery to TRUE and then set the item_id to E_FILTERBAR_ADVANCED_ID. svn path=/trunk/; revision=24542
* Same.Jeffrey Stedfast2004-01-291-2/+2
| | | | | | | | | | | | | 2004-01-28 Jeffrey Stedfast <fejj@ximian.com> * e-search-bar.c (impl_get_property): Same. * e-filter-bar.c (get_property): Use g_value_set_string_take_ownership() instead of g_value_take_string() since we need snaps to work with glib-2.0 earlier than 2.3.x. svn path=/trunk/; revision=24507
* Added a new property "state" which is READ-WRITE so that we canJeffrey Stedfast2004-01-291-18/+191
| | | | | | | | | | | | | | | 2004-01-28 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c: Added a new property "state" which is READ-WRITE so that we can save/restore state in the mailer code if we want to. Sort of a work-in-progress toward fixing bug #53195. (class_init): Ported to use the GObject property stuff instead of the deprecated GtkArg stuff. (get_property): Ported from impl_get_arg(). (set_property): New object::set_property implementation to set the query state. svn path=/trunk/; revision=24502
* Change the border width and padding to comply with the HIG. Fixes bugJeffrey Stedfast2003-04-121-1/+1
| | | | | | | | | | | 2003-04-11 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (do_advanced): Change the border width and padding to comply with the HIG. Fixes bug #41202. (do_advanced): Changed the button ordering from Cancel/Save/OK to Save/Cancel/OK to comply with the HIG. Fixes bug #41207. svn path=/trunk/; revision=20829
* Change the border width and padding to comply with the HIG. Fixes bugJeffrey Stedfast2003-04-121-1/+3
| | | | | | | | | 2003-04-11 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (do_advanced): Change the border width and padding to comply with the HIG. Fixes bug #41202. svn path=/trunk/; revision=20828
* Updated to use GtkDialog instead of GnomeDialog. Also fixed bug #39550Jeffrey Stedfast2003-03-201-89/+90
| | | | | | | | | 2003-03-19 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c: Updated to use GtkDialog instead of GnomeDialog. Also fixed bug #39550 while I was at it. svn path=/trunk/; revision=20375
* Use GtkArrow instead of pixmaps Use GtkArrow instead of pixmapsRodney Dawes2003-03-121-1/+0
| | | | | | | | | | | 2003-03-10 Rodney Dawes <dobey@ximian.com> * e-calendar.c: Use GtkArrow instead of pixmaps * e-combo-button.c: Use GtkArrow instead of pixmaps * e-filter-bar.c: gtk_window_set_policy () is deprecated * e-url-entry.c: Load the icon in a pixbuf instead of GdkPixmap svn path=/trunk/; revision=20254
* Same as below.Jeffrey Stedfast2003-02-251-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-25 Jeffrey Stedfast <fejj@ximian.com> * e-dateedit.c (on_date_popup_date_selected): Same as below. * e-cell-date-edit.c (e_cell_date_edit_on_ok_clicked): Also updated to use the new GDate API from glib 2.0 * test-calendar.c (on_selection_changed): Fixed to use glib 2.0's GDate API. * e-calendar-item.c (e_calendar_item_get_week_number): Port to glib 2.0's GDate API. (e_calendar_item_set_selection): Same. * e-search-bar.c (append_xml_menu_item): Use g_string_append_printf instead of g_string_sprintfa since the latter is now deprecated. (setup_bonobo_menus): Same. * e-filter-bar.c (do_advanced): Use gtk_window_set_resizable() * e-charset-picker.c: Fixes to make it build cleanly with -DG_DISABLE_DEPRECATED (add_charset): Escape _'s so we don't get underline weirdness due to GtkLabel thinking the _ means to underline the next char. (e_charset_picker_bonobo_ui_populate): Same here. svn path=/trunk/; revision=20048
* Add include of gnome-dialog.hNot Zed2002-12-021-4/+4
| | | | | | | | | | 2002-11-27 Not Zed <NotZed@Ximian.com> * e-charset-picker.c: Add include of gnome-dialog.h * *.[ch]: ran fix.sh script over everything. svn path=/trunk/; revision=18978
* Changed to use g_object_*() and g_signal_*()Ettore Perazzoli2002-11-151-47/+61
| | | | | | | | | | functions instead of gtk_object_*() and gtk_signal_*(). (destroy): Removed. (dispose): New. (class_init): Install GObject::dispose handler instead of GtkObject::destroy handler. svn path=/trunk/; revision=18753
* include gnome-dialogJP Rosevear2002-11-081-0/+1
| | | | | | | | 2002-11-07 JP Rosevear <jpr@ximian.com> * e-filter-bar.c: include gnome-dialog svn path=/trunk/; revision=18649
* First big sync of my GNOME 2 porting work (incomplete, and stillEttore Perazzoli2002-11-021-21/+19
| | | | | | | | pretty broken). Weeeeee! svn path=/trunk/; revision=18503
* If the clear button was pressed, we want the entry to be sensitive (notJeffrey Stedfast2002-10-241-4/+4
| | | | | | | | | | | | | | | | | 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
* Clear search by setting text to "" and search to first search.Not Zed2002-09-241-11/+4
| | | | | | | | | | | | | | | | 2002-09-24 Not Zed <NotZed@Ximian.com> * e-search-bar.c (clear_search): Clear search by setting text to "" and search to first search. * e-filter-bar.c (option_changed): Revert change of 2002-08-29 below, always do advanced search if we have the advanced id. Handle clear elsewhere. (menubar_activated): If we get the advanced menu, set the advanced option menu, and let that handle it, rather than doing it ourselves. For #31060 & #29625. svn path=/trunk/; revision=18191
* Fix some non-ANSI switch statements.Dan Winship2002-09-231-2/+3
| | | | | | * e-filter-bar.c: Fix some non-ANSI switch statements. svn path=/trunk/; revision=18155
* If the item is ADVANCED_ID, check the query and efb->setquery to seePeter Williams2002-08-301-1/+8
| | | | | | | | | | 2002-08-29 Peter Williams <peterw@ximian.com> * e-filter-bar.c (option_changed): If the item is ADVANCED_ID, check the query and efb->setquery to see whether we should pop up the advanced dialog or clear an advanced search. Fixes #29625. svn path=/trunk/; revision=17923
* Set the query text into the filter name when saving it, for #10979.Not Zed2002-08-061-2/+8
| | | | | | | | | 2002-08-06 Not Zed <NotZed@Ximian.com> * e-filter-bar.c (menubar_activated): Set the query text into the filter name when saving it, for #10979. svn path=/trunk/; revision=17710
* Also perform a search on the query_changed signal, which is what getsPeter Williams2002-07-241-37/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* (build_items): Put the numbers in front of theEttore Perazzoli2002-06-191-1/+1
| | | | | | rules only if type is zero [i.e. not in the option menu]. svn path=/trunk/; revision=17224
* New helper function. (build_items): g_strdup() the text for all the items.Ettore Perazzoli2002-05-311-13/+59
| | | | | | | | | | | | | | * e-filter-bar.c (dup_item_no_subitems): New helper function. (build_items): g_strdup() the text for all the items. Prepend the user-defined items with an order number. (free_built_items): New function to free the array returned by build_items, freeing the text strings too [since now they are newly allocated instead of just pointing to the exiting ones]. (generate_menu): Call free_built_items() on the built items instead of just g_array_free(). (set_option): Likewise. svn path=/trunk/; revision=17045
* Prepend the advanced menu with a separator.Ettore Perazzoli2002-05-211-2/+2
| | | | | | | | | | * e-filter-bar.c (build_items): Prepend the advanced menu with a separator. * e-filter-bar.h: Add E_FILTERBAR_SEPARATOR. Rename the "Advanced Search..." menu item into "Advanced...". svn path=/trunk/; revision=16953
* [Search bar re-design implementation, Take 2.]Ettore Perazzoli2002-03-191-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-search-bar.c (clear_verb_cb): New. (setup_standard_verbs): New. (e_search_bar_set_ui_component): Call it if a new BonoboUIComponent is set. (append_xml_menu_item): New helper function. (update_bonobo_menus): Use it. Also add a "Clear" menu item. (e_search_bar_construct): @menu_items can be NULL now. (e_search_bar_new): Same here. (set_menu): Work with NULL items. * e-filter-bar.c (menubar_activated): Don't handle E_FILTERBAR_RESET_ID anymore. * e-filter-bar.h: Remove `E_FILTERBAR_RESET_ID' and `E_FILTERBAR_RESET'. * folder-browser.c: Remove E_FILTERBAR_RESET menu entry. * gui/cal-search-bar.c: Removed `search_menu_items'. (cal_search_bar_menu_activated): Removed. (cal_search_bar_class_init): Don't install. (cal_search_bar_construct): No menu items here. * gui/component/addressbook.c (addressbook_menu_activated): Removed. (addressbook_factory_new_control): Don't connect anymore, as this signal has been removed from the ESearchBar. (addressbook_factory_new_control): No more custom menu items here. svn path=/trunk/; revision=16194
* [Start implementing the new Search Bar design.]Ettore Perazzoli2002-03-161-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* merge from headNot Zed2001-12-141-0/+1
| | | | | | | | | | 2001-11-21 Not Zed <NotZed@Ximian.com> * e-filter-bar.c (menubar_activated): Mark the dialogue as already up so we dont allow multiple dialogues up. Behaviour fix part of #15745. svn path=/trunk/; revision=15030
* Snotty code so we only disconnect to rules we no longer have, etc.12001-11-011-20/+45
| | | | | | | | | 2001-10-31 <NotZed@Ximian.com> * e-filter-bar.c (build_items): Snotty code so we only disconnect to rules we no longer have, etc. svn path=/trunk/; revision=14553
* Ref and connect to rule changed here, also clear out previous ref's.Not Zed2001-11-011-27/+26
| | | | | | | | | | | | | | | | 2001-11-01 Not Zed <NotZed@Ximian.com> * e-filter-bar.c (build_items): Ref and connect to rule changed here, also clear out previous ref's. (generate_menu): No longer connect to rules, or reset rule array. (set_option): Dont reset option rules array. (context_rule_removed): Disconnect changed event on rule. (clear_rules): Fujnction to clear rules from an array. (destroy): Disconnect from context signals, and clear rules arrays. * e-filter-bar.h: Remove hash table for change id's. svn path=/trunk/; revision=14550
* Hook to rule changed events. (destroy): Free change id table/unconnect to02001-10-301-4/+49
| | | | | | | | | | | | | 2001-10-30 <NotZed@Ximian.com> * e-filter-bar.c (generate_menu): Hook to rule changed events. (destroy): Free change id table/unconnect to signals. (init): Setup change id table. (e_filter_bar_new): Hook onto rule removed signal. (context_rule_removed): If rule removed, disconnect from signal handler. (rule_changed): For changed rules, also rebuild menu. Fixed #12233. svn path=/trunk/; revision=14459
* Set the item to the option_base on it, so the current item is set. Fix for02001-10-301-0/+2
| | | | | | | | | 2001-10-30 <NotZed@Ximian.com> * e-filter-bar.c (set_option): Set the item to the option_base on it, so the current item is set. Fix for #7081. svn path=/trunk/; revision=14451
* 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
* Don't add the menu item here, do this in the context_changed signalJeffrey Stedfast2001-10-241-18/+90
| | | | | | | | | | | | | | | | | 2001-10-23 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (rule_editor_clicked): Don't add the menu item here, do this in the context_changed signal callback instead. (context_changed): rebuild the search menu. (set_menu): Copy the items into a default_items list so we can regenerate the menu when something changes. Then call generate_menu(). (generate_menu): Do what set_menu() used to do. (e_filter_bar_new): Don't do a rule_context_load() anymore since we don't need to. (destroy): free the default_items list. svn path=/trunk/; revision=13975
* No longer need the context in order to clone a FilterRule.Jeffrey Stedfast2001-09-131-2/+2
| | | | | | | | | | 2001-09-12 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (menubar_activated): No longer need the context in order to clone a FilterRule. (option_changed): Same. svn path=/trunk/; revision=12791
* added a default size for the saved search dialog of 600 x 300 such that itAnna Marie Dirks2001-09-071-1/+1
| | | | | | | | | | 2001-09-06 Anna Marie Dirks <anna@ximian.com> * e-filter-bar.c: added a default size for the saved search dialog of 600 x 300 such that it opens at a usable size. this fixes bug #7083. svn path=/trunk/; revision=12661
* Boost scoring on an exact nickname match. Manually addressify match.Jon Trowbridge2001-08-161-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Removed comment about the need to resolve nicknames properly, because weJon Trowbridge2001-08-111-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-5/+26
| | | | | | | | | | | | | 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
* When the dialog gets closed, always make sure the entry widget becomesJeffrey Stedfast2001-07-191-1/+2
| | | | | | | | | | | | 2001-07-18 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (rule_editor_destroyed): When the dialog gets closed, always make sure the entry widget becomes sensitive again. (menubar_activated): Don't use FILTER_SOURCE_INCOMING because that's not what we want, we want (I think) NULL (at least with NULL, bug #4490 goes away). svn path=/trunk/; revision=11209
* When the dialog gets closed, always make sure the entry widget becomesJeffrey Stedfast2001-07-191-188/+174
| | | | | | | | | 2001-07-18 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (rule_editor_destroyed): When the dialog gets closed, always make sure the entry widget becomes sensitive again. svn path=/trunk/; revision=11208
* *misc/e-filter-bar.c (option_changed): Specified a default size for theAnna Marie Dirks2001-07-031-3/+20
| | | | | | | | | | 2001-07-02 Anna Marie Dirks <anna@ximian.com> *misc/e-filter-bar.c (option_changed): Specified a default size for the Advanced Search dialog such that when it first appear, it is large enough to view all parts of a search clause without the user needing to resize it. svn path=/trunk/; revision=10703
* Fix for #2253 (search names not translated), mail-search i18n fixes.Gediminas Paulauskas2001-05-081-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* Validate the filter rule.Jeffrey Stedfast2001-03-231-1/+4
| | | | | | | | 2001-03-22 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (rule_editor_clicked): Validate the filter rule. svn path=/trunk/; revision=8909
* If we click on the edit menu, then bring up a rule editor. If the userNot Zed2001-03-151-0/+26
| | | | | | | | | | 2001-03-15 Not Zed <NotZed@Ximian.com> * e-filter-bar.c (menubar_activated): If we click on the edit menu, then bring up a rule editor. If the user adds/removes rules though, they are neither saved, nor added to the menu's. sigh. svn path=/trunk/; revision=8730
* New type of search bar that interacts with filter contexts to save filtersNot Zed2001-03-011-0/+439
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