aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-util.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix coding style.Matthew Barnes2009-06-141-1/+1
|
* Bug #573263 - Crash in reset_layout (text) at e-text.cMilan Crha2009-06-091-49/+70
|
* More code cleanup.Matthew Barnes2009-06-021-1/+1
|
* Prefer GLib basic types over C types.Matthew Barnes2009-05-291-21/+21
|
* Remove trailing whitespace, again.Matthew Barnes2009-05-291-4/+4
|
* Bug 581032 – Some links can't be openedMatthew Barnes2009-05-021-2/+11
|
* Commit the rest of the attachment UI rewriteMatthew Barnes2009-04-281-0/+207
| | | | | Oops, last commit only included the -new- files. This also removes EExpander, which is no longer used.
* Bug 577929 – Consolidate marshallersMatthew Barnes2009-04-231-4/+0
| | | | | | Consolidate all marshalling specifications to e-util/e-marshal.list. This reduces code duplication and makes it slightly easier to locate unused marshallers.
* New convenience function calls gtk_show_uri() and displays an error dialogMatthew Barnes2009-01-111-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-01-11 Matthew Barnes <mbarnes@redhat.com> * e-util/e-util.c (e_show_uri): New convenience function calls gtk_show_uri() and displays an error dialog if the URI cannot be shown. * addressbook/gui/widgets/eab-contact-display.c (eab_uri_popup_link_open), (on_link_clicked): * calendar/gui/e-cal-component-preview (on_link_clicked): * calendar/gui/e-cal-component-memo-preview (on_link_clicked): * calendar/gui/e-memo-table.c (open_url_cb): * calendar/gui/dialogs/comp-editor.c (open_attachment): * composer/e-msg-composer.c (msg_composer_link_clicked): * mail/em-folder-view.c (emfv_format_link_clicked): * mail/em-popup.c (emp_uri_popup_link_open): * plugins/mailing-list-actions/mailing-list-actions.c (emla_list_action_do): * shell/e-shell-window-commands.c (command_open_faq): * widgets/misc/e-attachment-bar.c (eab_icon_clicked_cb): * widgets/misc/e-url-entry.c (button_clicked_cb): Call e_show_uri() instead of gnome_url_show(). * e-util/e-error.c (ee_response): Call e_display_help() instead of gnome_url_show(). * mail/em-config.c: * mail/em-menu.c: Remove unneeded #include <libgnome/gnome-url.h> svn path=/trunk/; revision=37037
* Now that we require GTK+ 2.14, use gtk_show_uri() instead ofMatthew Barnes2009-01-111-3/+17
| | | | | | | | | | | 2009-01-10 Matthew Barnes <mbarnes@redhat.com> * e-util/e-util.c (e_display_help): Now that we require GTK+ 2.14, use gtk_show_uri() instead of gnome_help_display(). svn path=/trunk/; revision=37034
* ** Fixes bug #563250Matthew Barnes2008-12-101-1/+22
| | | | | | | | | | | | | | | | | 2008-12-10 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #563250 * e-util/e-util.c (e_get_accels_filename): New function returns the filename where custom keyboard accelerators are stored. Currently only applies to the various editor windows in Evolution. * shell/main.c (main): Load on startup and save on shutdown, custom keyboard accelerators. svn path=/trunk/; revision=36864
* ** Fix for bug #332629Milan Crha2008-12-061-0/+22
| | | | | | | | | | | | | | | | | | | | | | | 2008-12-05 Milan Crha <mcrha@redhat.com> ** Fix for bug #332629 * filter/filter-option.h: (struct _filter_option), (struct _FilterOption), (filter_option_add): * filter/filter-option.c: (filter_option_init), (filter_option_finalise), (filter_option_add), (xml_create), (get_widget), (clone): Be able to define optionlist with dynamically created list of options. * filter/filter-label.c: (fill_options): Adapt. * addressbook/gui/widgets/addresstypes.xml: * calendar/gui/caltypes.xml: * calendar/gui/memotypes.xml: * calendar/gui/tasktypes.xml: Use dynamically created list of categories in the option's widget. svn path=/trunk/; revision=36836
* Remove this unused internal function.Matthew Barnes2008-11-021-88/+0
| | | | | | | | | | 2008-11-02 Matthew Barnes <mbarnes@redhat.com> * e-util.c (do_format_number_as_float): Remove this unused internal function. svn path=/trunk/; revision=36713
* Remove obsolete functions.Sankarasivasubramanian Pasupathilingam2008-10-061-39/+0
| | | | svn path=/trunk/; revision=36567
* ** Fix for bug #554418Milan Crha2008-10-011-18/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-10-01 Milan Crha <mcrha@redhat.com> ** Fix for bug #554418 * e-util/e-util.h: (e_util_guess_mime_type): * e-util/e-util.c: (e_util_guess_mime_type): Guess mime_type based on the file content only when permitted by the caller, otherwise check based on the filename only, where it fallbacks if file content guess fails. * mail/em-utils.c: (em_utils_snoop_type): * mail/em-popup.c: (emp_standard_menu_factory): Guess mime_type based on the filename only. * composer/e-msg-composer.c: (handle_uri), (e_msg_composer_add_inline_image_from_file): Guess mime_type based on the file content, if failed, then on the filename. * widgets/misc/e-attachment.c: (attachment_guess_mime_type): Allow guessing mime_type based on the file content. * calendar/gui/dialogs/comp-editor.c: (set_attachment_list): * calendar/gui/e-cal-popup.c: (ecalp_standard_menu_factory): Allow/disallow guessing of the mime_type based on the file content. svn path=/trunk/; revision=36529
* License changes from GPL to LGPLSankarasivasubramanian Pasupathilingam2008-09-291-16/+15
| | | | svn path=/trunk/; revision=36465
* New convenience function for launching help from Evolution. Displays anMatthew Barnes2008-08-151-3/+39
| | | | | | | | | | | | | | | | | | | | 2008-08-14 Matthew Barnes <mbarnes@redhat.com> * e-util/e-util.c (e_display_help): New convenience function for launching help from Evolution. Displays an error dialog over the given parent window if an error occurs. * addressbook/gui/contact-editor/e-contact-editor.c: * calendar/gui/dialogs/comp-editor.c: * plugins/email-custom-header/gui/contact-editor/e-contact-editor.c: * plugins/exchange-operations/exchange-send-options.c: * widgets/misc/e-multi-config-dialog.c: * widgets/misc/e-send-options.c: Use e_display_help() for displaying help. svn path=/trunk/; revision=35991
* updated novell copyright notices (left others alone)Jeffrey Stedfast2008-06-211-1/+1
| | | | svn path=/trunk/; revision=35665
* ** Fix for bug #529254Milan Crha2008-04-231-22/+21
| | | | | | | | | | | | | | | 2008-04-23 Milan Crha <mcrha@redhat.com> ** Fix for bug #529254 * e-util/e-util.c: (e_write_file_uri): Save file properly. Handle either URI or filename. Return success or failure, not gint. * addressbook/gui/widgets/eab-gui-util.c: (save_it): Prototype and return value of e_write_file_uri has been changed. svn path=/trunk/; revision=35409
* ** Fix for bug #526741 (gnome-vfs to gio/gvfs port)Milan Crha2008-04-181-13/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-04-17 Milan Crha <mcrha@redhat.com> ** Fix for bug #526741 (gnome-vfs to gio/gvfs port) * configure.in: Drop dependency on gnome-vfs, depend on gio instead. * addressbook/gui/contact-editor/e-contact-editor.c: Do not include gnome-vfs. * calendar/gui/e-meeting-store.c: (start_async_read), (freebusy_async), (async_read): Read data with gio, not with gnome-vfs. * calendar/gui/e-meeting-store.c: (async_close): Function removed. * calendar/gui/migration.c: * calendar/gui/e-memos.c: * calendar/gui/alarm-notify/notify-main.c: * calendar/gui/e-tasks.c: * calendar/gui/main.c: * calendar/gui/e-meeting-list-view.c: Do not include gnome-vfs. * calendar/gui/dialogs/comp-editor.c: (set_attachment_list): * calendar/gui/dialogs/comp-editor.c: (attachment_guess_mime_type): Function removed, use e-util function instead. * calendar/gui/e-cal-popup.c: (temp_save_part): Reflect changes in CamelStreamVFS. * calendar/gui/e-cal-popup.c: (ecalp_apps_open_in), (ecalp_apps_popup_free), (ecalp_standard_menu_factory): Use gio to fill popup and launch app. * calendar/gui/e-cal-component-preview.h: (e_cal_comp_preview_url_requested_cb): * calendar/gui/e-cal-component-preview.c: (e_cal_comp_preview_url_requested_cb): New helper function to manage file:// urls for GtkHTML component. * calendar/gui/e-cal-component-preview.c: (e_cal_component_preview_init): * calendar/gui/e-cal-component-memo-preview.c: (e_cal_comp_preview_url_requested_cb): Use above helper function. * calendar/gui/e-cal-component-memo-preview.c: (url_requested_cb): * calendar/gui/e-cal-component-preview.c: (url_requested_cb): Function removed. * composer/e-msg-composer.h: (e_msg_composer_guess_mime_type): * composer/e-msg-composer.c: (e_msg_composer_guess_mime_type), (handle_uri), (e_msg_composer_add_inline_image_from_file): Use shared e_util_guess_mime_type instead of its own. * e-util/e-gui-utils.c: Do not include gnome-vfs. * e-util/e-util.c: (e_write_file_uri), (e_file_get_save_path): * e-util/e-dialog-utils.c: (e_file_can_save), (e_file_check_local): Use gio instead of gnome-vfs. * e-util/e-util.h: * e-util/e-util.c: (e_util_guess_mime_type), (e_util_filename_to_uri), (e_util_uri_to_filename), (e_util_read_file): New helper functions. * mail/Makefile.am: * mail/em-vfs-stream.h: * mail/em-vfs-stream.c: Removed from project, not used anywhere. * mail/em-menu.c: * mail/em-config.c: Do not include gnome-vfs. * mail/mail-ops.c: (save_messages_exec), (save_part_exec): Changes related to Data Server change of CamelStreamVFS. * mail/em-format.c: (em_format_describe_part): * mail/em-format-html-display.c: (efhd_bonobo_object), (efhd_find_handler), (efhd_use_component), (efhd_bonobo_unknown), (efhd_check_server_prop), (efhd_format_attachment): Drop use of deprecated gnome-vfs functions. * mail/em-utils.c: (em_utils_snoop_type): Use gio to guess the mime_type. * mail/em-popup.c: (emp_apps_open_in), (emp_apps_popup_free), (emp_standard_menu_factory): Use gio to fill popup and launch app. * plugins/import-ics-attachments/icsimporter.c: Do not include gnome-vfs. * plugins/ipod-sync/ical-format.c: (do_save_calendar_ical): * plugins/ipod-sync/ipod-sync.c: (destination_save_addressbook): Write to gio GOutputStream instead of gnome-vfs handle. * plugins/ipod-sync/format-handler.h: (open_for_writing): * plugins/ipod-sync/ipod-sync.c: (open_for_writing): New helper function. * plugins/publish-calendar/publish-format-fb.h: (publish_calendar_as_fb): * plugins/publish-calendar/publish-format-fb.c: (write_calendar), (publish_calendar_as_fb): * plugins/publish-calendar/publish-format-ical.h: (publish_calendar_as_ical): * plugins/publish-calendar/publish-format-ical.c: (write_calendar), (publish_calendar_as_ical): Use gio GOutputStream instead of gnome-vfs handle. * plugins/publish-calendar/url-editor-dialog.c: (create_uri): Use glib function to escape URI. * plugins/publish-calendar/publish-location.c: (migrateURI): Use EUri to parse URI. * plugins/publish-calendar/publish-calendar.c: (publish_online), (unmount_done_cb), (struct mnt_struct), (mount_ready_cb), (ask_password), (ask_question), (mount_first), (publish): Use gio instead of gnome-vfs for opening (remote) files. * plugins/save-calendar/ical-format.c: (do_save_calendar_ical): * plugins/save-calendar/csv-format.c: (do_save_calendar_csv): * plugins/save-calendar/rdf-format.c: (do_save_calendar_rdf): Use gio GOutpuStream instead of gnome-vfs handle. * plugins/save-calendar/format-handler.h: (open_for_writing): * plugins/save-calendar/save-calendar.c: (open_for_writing): New helper function. * shell/e-shell-window-commands.c: (command_quick_reference): Use gio instead of gnome-vfs. * widgets/misc/e-attachment.h: (struct _EAttachment): * widgets/misc/e-attachment.c: (finalise), (init), (attachment_guess_mime_type), (e_attachment_new), (struct DownloadInfo), (download_info_free), (data_ready_cb), (download_to_local_path), (e_attachment_new_remote_file): Use gio instead of gnome-vfs to download remote files. * widgets/misc/e-image-chooser.c: (image_drag_data_received_cb): Use new util function to read file. * widgets/misc/e-attachment-bar.c: (size_to_string): Stolen from gnome-vfs. svn path=/trunk/; revision=35378
* ** Fixes breakage caused by bug #513951Matthew Barnes2008-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-03-12 Matthew Barnes <mbarnes@redhat.com> ** Fixes breakage caused by bug #513951 * mail-autofilter.c (filter_gui_add_from_message), (mail_filter_rename_uri), (mail_filter_delete_uri): * mail-tools.c (mail_tool_get_local_movemail_path): * mail-vfolder.c (mail_vfolder_delete_uri), (mail_vfolder_rename_uri), (store_folder_deleted), (store_folder_renamed), (vfolder_load_storage), (vfolder_revert), (em_vfolder_editor_response), (edit_rule_response), (new_rule_clicked): * em-folder-browser.c (emfb_search_search_activated): * em-folder-tree.c (em_folder_tree_new): * mail-ops.c (uid_cachename_hack), (empty_trash_exec): * em-folder-view.c (emfv_setup_view_instance): * em-utils.c (em_filter_editor_response), (em_utils_edit_filters): * importers/mail-importer.c (import_folders_rec): * mail-folder-cache.c (rename_folders): * em-format-html.c (em_format_html_get_type): * mail-session.c (main_get_filter_driver): * mail-config.c (gconf_mime_types_changed), (uri_to_evname), (mail_config_folder_to_cachename), (get_new_signature_filename): Adapt to new meaning of mail_component_peek_base_directory(). * mail-component.c (mail_component_init): Add back initialization of priv->base_directory. Accidentally removed it somehow in last commit. svn path=/trunk/; revision=35179
* ** Fixes bug #513951Matthew Barnes2008-03-111-3/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-03-11 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #513951 * addressbook/gui/component/addressbook-component.c (ensure_sources): * addressbook/gui/component/addressbook-migrate.c (addressbook_migrate): * calendar/gui/cal-search-bar.c (cal_search_bar_construct): * calendar/gui/migration.c (create_calendar_sources), (create_task_sources), (migrate_calendars), (migrate_tasks), (create_memo_sources): * calendar/gui/e-memos.c (e_memos_setup_view_menus): * calendar/gui/tasks-component.c (ensure_sources): * calendar/gui/gnome-cal.c (gnome_calendar_setup_view_menus): * calendar/gui/calendar-component.c (ensure_sources): * calendar/gui/memos-component.c (ensure_sources): * mail/mail-config.c (gconf_mime_types_changed): Adapt to new meaning of xxx_component_peek_base_directory(). * addressbook/gui/component/addressbook-component.c (addressbook_component_init): * addressbook/gui/component/addressbook-migrate.c (create_groups): * calendar/gui/tasks-component.c (tasks_component_init): * calendar/gui/calendar-component.c (calendar_component_init): * calendar/gui/memos-component.c (memos_component_init): * composer/e-msg-composer.c (autosave_manager_query_load_orphans), (autosave_init_file): * e-util/e-mktemp.c (get_dir): * e-util/e-util.c (get_lock_filename): * mail/mail-component.c: * plugins/face/face.c (org_gnome_composer_face): * smime/lib/e-cert-db.c (initialize_nss): Use e_get_user_data_dir() instead of constructing the full path. * calendar/gui/migration.c (add_gw_esource): * composer/e-msg-composer.c (e_msg-composer_unrealize), (e_msg_composer_set_view_from), (e_msg_composer_set_view_replyto), (e_msg_composer_set_view_to), (e_msg_composer_set_view_postto), (e_msg_composer_set_view_cc), (e_msg_composer_set_view_bcc): * e-util/e-util.c (e_file_update_save_path), (e_file_get_save_path): Emit warnings if saving to GConf fails. * e-util/e-util.c (e_get_user_data_dir): New function returns the base directory for Evolution user data. This should be the /only/ place in the application where this directory is hard-coded. svn path=/trunk/; revision=35175
* ** Add basic support for crash recoverySrinivasa Ragavan2007-12-051-0/+49
| | | | | | | | | | | | | | 2007-12-05 Srinivasa Ragavan <sragavan@novell.com> ** Add basic support for crash recovery * apps_evolution_shell.schemas.in: Keys to recover and recovery dialog. * e-shell.c: (e_shell_quit): Delete the lock while quitting. * main.c: (show_recovery_warning), (idle_cb): Create lock and also show the warning dialog. svn path=/trunk/; revision=34652
* ** Fixes bug #392747Matthew Barnes2007-12-031-0/+94
| | | | | | | | | | | | | | | | | | | | | | | | 2007-12-03 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #392747 * e-util/e-utils.c (e_get_month_name), (e_get_weekday_name): New functions cache localized month and weekday names (respectively) for easier retrieval than resorting to strftime(). * a11y/widgets/ea-calendar-item.c (ea_calendar_item_get_column_label): Get the column label via e_get_weekday_name(). * calendar/gui/weekday-picker.c (get_day_text): Convert the day_index to GDateWeekday and call e_get_weekday_name(). * widgets/misc/e-calendar-item.h (struct _ECalendarItem): * widgets/misc/e-calendar-item.c (e_calendar_item_init), (e_calendar_item_draw): Lose the local weekday name cache and just call e_get_weekday_name(). svn path=/trunk/; revision=34627
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-151-21/+21
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
* ** Fix for bug #492692Milan Crha2007-11-051-2/+13
| | | | | | | | | | | 2007-11-05 Milan Crha <mcrha@redhat.com> ** Fix for bug #492692 * e-util.c: (e_str_case_compare): Leak fix. svn path=/trunk/; revision=34513
* Warning fixes. - NULL vs 0 - ANSIfication of declarations - missingKjartan Maraas2007-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2007-10-26 Kjartan Maraas <kmaraas@gnome.org> * e-config.c: * e-event.c: * e-gui-utils.c: * e-import.c: * e-menu.c: * e-mktemp.c: (get_dir): * e-popup.c: * e-profile-event.c: (e_profile_event_peek): * e-util.c: (get_font_options): * e-xml-utils.c: (e_xml_get_string_prop_by_name), (e_xml_get_string_prop_by_name_with_default), (e_xml_get_translated_string_prop_by_name): Warning fixes. - NULL vs 0 - ANSIfication of declarations - missing include svn path=/trunk/; revision=34428
* ** Fix for bug #471791 Srinivasa Ragavan2007-09-101-2/+2
| | | | svn path=/trunk/; revision=34214
* 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 #448223 from Gilles DartiguelongueSrinivasa Ragavan2007-06-181-0/+33
| | | | svn path=/trunk/; revision=33700
* fix for bug #432867Srinivasa Ragavan2007-05-141-1/+1
| | | | svn path=/trunk/; revision=33526
* Massive code cleanup (bug #429422)Matthew Barnes2007-04-201-439/+104
| | | | svn path=/trunk/; revision=33432
* ** Fixes bug #419524Matthew Barnes2007-03-211-15/+0
| | | | | | | | | | | | | | | | | | | | | | | 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
* ** Fix for bug #349966Daniel Gryniewicz2006-11-281-0/+41
| | | | | | | | 2006-11-28 Daniel Gryniewicz <dang@gentoo.org> ** Fix for bug #349966 svn path=/trunk/; revision=33026
* ** Fix for bug #352941Srinivasa Ragavan2006-08-271-1/+1
| | | | svn path=/trunk/; revision=32679
* Plug some leaks.Kjartan Maraas2006-08-171-0/+3
| | | | | | | | 2006-08-17 Kjartan Maraas <kmaraas@gnome.org> * e-util.c: (get_font_options): Plug some leaks. svn path=/trunk/; revision=32555
* Handle cases when the props are undefined. This bug is currently causingHarish Krishnaswamy2006-07-221-28/+37
| | | | | | | | | | 2006-07-22 Harish Krishnaswamy <kharish@novell.com> * e-util.c: (get_font_options): Handle cases when the props are undefined. This bug is currently causing Evo to crash as soon as it comes up. svn path=/trunk/; revision=32389
* Added code to read font options.Srinivasa Ragavan2006-07-201-0/+51
| | | | svn path=/trunk/; revision=32358
* Don't need the Win32-only fix_percent_l() after all, this is taken care ofTor Lillqvist2006-06-021-30/+1
| | | | | | | | | | | 2006-06-02 Tor Lillqvist <tml@novell.com> * e-util.c: Don't need the Win32-only fix_percent_l() after all, this is taken care of in e_strftime(). (The check in e-d-s's configure.in for the support of %l and %k has now been made more reliable so it actually works also on Win32.) svn path=/trunk/; revision=32069
* Added code to save/attach files/mails/events to/from remote sharesSrinivasa Ragavan2006-05-251-0/+30
| | | | svn path=/trunk/; revision=32023
* [Win32] Instead of %l (which is a GNU extension not implemented in theTor Lillqvist2006-04-111-0/+30
| | | | | | | | | | | 2006-03-27 Tor Lillqvist <tml@novell.com> * e-util.c (fix_percent_l): [Win32] Instead of %l (which is a GNU extension not implemented in the Microsoft C library) use %I. Fixes #336055. (e_strftime_fix_am_pm): Call fix_percent_l() when necessary. svn path=/trunk/; revision=31807
* Delete e_mkdir_hier(), and use e_util_mkdir_hier() instead of it.Simon Zheng2006-01-101-184/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-10 Simon Zheng <simon.zheng@sun.com> * e-mktemp.c (get_dir): * e-plugin.c: * e-util.[ch] (e_create_directory): (e_sort): Delete e_mkdir_hier(), and use e_util_mkdir_hier() instead of it. Delete e_strstrcasea(), and use e_util_strstrcase() instead of it. Delete e_strftime(), use the copy in evolution-data-server/ libedataserver/e-data-server-util.c instead of it. Delete e_filename_make_safe(), and use the copy in evolution-data-server/libedataserver/e-data-server-util.c instead of it. Detelte e_utf8_strftime(), and use the copy in evolution-data-server/libedataserver/e-data-server-util.c instead of it. svn path=/trunk/; revision=31117
* e-util-private.h (fsync) Don't bother with a Win32 implementation ofTor Lillqvist2005-12-171-31/+0
| | | | | | | | | | | 2005-12-17 Tor Lillqvist <tml@novell.com> * e-util-private.h (fsync) * e-util.c: Don't bother with a Win32 implementation of fsync() as the uses of fsync() in evo are pretty irrelevant. Just #define fsync() away on Win32. svn path=/trunk/; revision=30796
* prefix the wrapper functions with e - do not use g lest it is assumed toHarish Krishnaswamy2005-12-091-4/+4
| | | | | | | | | | | | | | | | 2005-12-09 Harish Krishnaswamy <kharish@novell.com> * e-util.[ch] (e_str_compare), (e_str_case_compare), (e_collate_compare), (e_int_compare): prefix the wrapper functions with e - do not use g lest it is assumed to be a glib function. * e-table-example-2.c (create_table), e-table-extras.c (ete_init): * e-table-size-test.c (create_table), test-check.c (check_test): * test-cols.c (multi_cols_test), test-table.c (table_browser_test): s/g_*_compare/e_*_compare. svn path=/trunk/; revision=30739
* Use g_get_tmp_dir() instead of hardcoding /tmp.Tor Lillqvist2005-11-261-2/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-26 Tor Lillqvist <tml@novell.com> * e-menu.c (emph_construct_menu): Use g_get_tmp_dir() instead of hardcoding /tmp. * e-util.c (e_strstrcase): Use g_ascii_strncasecmp() instead of the deprecated g_strncasecmp(). What kinds of strings this function is supposed to be used on (UTF-8 or some random single- or multi-byte encoding) is anybody's guess. This function isn't used in Evolution and should probably go away, though. And this is one of the files that have a partially duplicated copy in e-d-s/libedataserver, too, so doubly so. (e_filename_make_safe): Mark more bytes as unsafe on Win32. Add comments. This function is really under-specified and weird, one wonders whether it really does what the author thought it should do. (fsync): Add Win32 implementation of fsync(). * e-xml-utils.c (e_xml_get_bool_prop_by_name_with_default): Use g_ascii_strcasecmp() instead of the deprecated g_strcasecmp(), especially as we are comparing to literal ASCII strings. svn path=/trunk/; revision=30684
* dded case insensitive compare support etable, and using it for OrganizationSushma Rai2005-10-041-0/+13
| | | | | | | filed. Fixes #207110. Patch submitted by "Devashish Sharma <sdevashish@novell.com>" svn path=/trunk/; revision=30489
* cast warning, good ol win32 patches. (e_strftime): fix some clahey-code toNot Zed2005-08-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * e-util.c (e_mkdir_hier): cast warning, good ol win32 patches. (e_strftime): fix some clahey-code to use the right variable and not try to modify const strings by stealth. * eggtrayicon.h: add missing prototype. * e-gui-utils.c (e_create_image_widget): remove unused pixbuf. * e-dialog-utils.c (dialog_realized): fix cast. (e_dialog_set_transient_for_xid): same. (e_file_dialog_save): fix cases for build. * e-categories-config.c (e_categories_config_open_dialog_for_entry): cast & use right type for text. (icons_table[]): remove unused. * e-account-list.c (e_account_list_remove_account_proxies): cast to fix warning. svn path=/trunk/; revision=30215
* Retired GAL from Head. The relevant files have moved inside evolution.Kaushal Kumar2005-06-171-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-06-17 Kaushal Kumar <kakumar@novell.com> * Retired GAL from Head. The relevant files have moved inside evolution. Thanks to JP Rosevear for performing the cvs surgery. The files have been moved in the following order. evolution/e-util <- gal/gal/util evolution/a11y <- gal/gal/a11y evolution/a11y/e-table <- gal/gal/a11y/e-table evolution/a11y/e-text <- gal/gal/a11y/e-text evolution/widgets/table <- gal/gal/e-table evolution/widgets/text <- gal/gal/e-text evolution/widgets/misc <- gal/gal/widgets evolution/widgets/misc/pixmaps <- gal/gal/widgets/pixmaps evolution/widgets/menus <- gal/gal/menus Following is the summary of changes done to fix the build:- - New files added to cvs repository, - a11y/e-table/Makefile.am - a11y/e-text/Makefile.am - widgets/table/Makefile.am - widgets/text/Makefile.am - widgets/misc/pixmaps/Makefile.am - iconv-detect.h - iconv-detect.c - Updated configure.in. - Updated all the relevant Makefile.am files. - Updated the include paths to replace all gal references. - Updated the marshal list to suit gal files requirements. svn path=/trunk/; revision=29522
* Port to Windows, initial commit:Tor Lillqvist2005-04-291-23/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-04-29 Tor Lillqvist <tml@novell.com> Port to Windows, initial commit: * configure.in: Check for Win32, define Automake conditional OS_WIN32. Check for regexec() perhaps in separate -lregex, define REGEX_LIBS if so. Require glib-2.0 >= 2.6 (and thus also gtk+-2.0 >= 2.6) so that we can use the gstdio wrappers for full support of non-ASCII filenames on Win32. Don't use -D_REENTRANT on Win32, has ne special meaning. * gal.pc.in: Require gtk+-2.0 >= 2.6 also here for consistency. * gal-zip.in: New file, used to build zipfile format distribution of gal for Win32. * configure.in * Makefile.am: Add gal-zip(.in). * */Makefile.am * */*.c: Harmonize -I and #include conventions. (Of course, this hasn't anything to do with Windows porting as such, I just got carried away...) Use only -I$(top_srcdir). Use paths to gal headers staring with "gal", except for headers from the same directory as the .c file, which are included as such. Include all gal headers using doublequotes. Sort #includes and remove duplicates and obvious redundancies. Include config.h first without any HAVE_CONFIG_H, then system headers, then other GNOME lib headers, than gal's own headers. Just include gtk.h instead of separate gtk*.h headers. Don't include gi18n.h, include e-i18n.h to use e_gettext() consistently. * gal/Makefile.am: Use -no-undefined on Win32 so that libtool agrees to build a shared library. Because of the bidirectional dependency between libgal and libgal-a11y we can build libgal-a11y sanely as a shared library on Win32, so we don't install any separate libgal-a11y at all. So, on Win32, link the stuff that goes into libgal-a11y also into libgal. Link with REGEX_LIBS. * gal/a11y/Makefile.am: See above. Just build a dummy static libgal-a11y on Win32 (can't convince Automake not to build the library at all on one platform using Automake ifdef, apparently). Then (this is a gross hack) explicitly remove the library after installation in the install-data-local rule. * gal/e-table/Makefile.am * gal/e-table/e-table-config.c: Rename ETABLE_GLADEDIR to GAL_GLADEDIR for consistency. * gal/e-table/e-cell-date.c: No localtime_r() in Microsoft's C library, but its localtime() *is* thread-safe. * gal/e-table/e-cell-text.c * gal/e-table/e-cell-tree.c * gal/e-table/e-cell-vbox.c * gal/e-text/e-text.c * gal/widgets/e-unicode.c: Remove unnecessary inclusion of gdkx.h. * gal/e-table/e-cell-tree.c (ect_realize): Instead of the Xlib macro None (whose value is zero), use the corresponding zero-valued enums from the appropriate GDK type. * gal/e-table/e-table-config.c * gal/e-table/e-table-field-chooser.c * gal/menus/gal-define-views-dialog.c * gal/menus/gal-view-instance-save-as-dialog.c * gal/menus/gal-view-new-dialog.c * gal/widgets/e-categories-master-list-array.c * gal/widgets/e-categories-master-list-dialog.c * gal/widgets/e-categories.c: Use g_build_filename() to construct pathnames at run-time instead of compile-time. On Windows the macros GAL_GLADEDIR and GAL_IMAGESDIR expand to function calls, in order to support installing in a freely chosen location. * gal/e-table/e-table-item.c * gal/e-table/e-cell-vbox.c: Instrad of the Xlib GrabSuccess, use GDK_GRAB_SUCCESS (which has the same value). * gal/e-table/e-table-specification.c (e_table_specification_load_from_file) * gal/e-table/e-table.c (e_table_load_specification) * gal/e-table/e-tree-table-adapter.c (open_file) * gal/menus/gal-view-instance.c (load_current_view) * gal/menus/gal-view-instance.c (load_current_view): On Win32, convert filename to the locale character set before passing to xmlParseFile() which doesn't use UTF-8 filenames. Use gstdio wrappers. * gal/util/Makefile.am: Define GAL_PREFIX as $prefix. Define GAL_LOCALEDIR, GAL_GLADEDIR and GAL_IMAGESDIR also here for e-win32-reloc.c. Include e-win32-reloc.c on Win32. * gal/util/e-iconv.c (e_iconv_init): Use g_win32_getlocale() on Windows. * gal/util/e-util.c * gal/util/e-xml-utils.c: Use g_mkstemp() instead of non-portable mkstemp(). Use GLib pathname manipulation functions. Use gstdio wrappers. * gal/util/e-util-private.h: New file. Contains just Win32 bits for now that redefine the directory names from the Makefile as functions calls. * gal/util/e-win32-reloc.c: New file. Contains a minimal DllMain() and functions to support freely chosen installation location on Windows. * gal/util/e-xml-utils.c: No fsync() in the Microsoft C library. * gal/windgets/Makefile.am: Add -I$(top_srcdir)/gal for consistency with the sibling Makefile.am files. * gal/widgets/e-canvas.c: Instead of the Xlib AlreadyGrabbed, use GDK_GRAB_ALREADY_GRABBED. svn path=/trunk/; revision=29249
* Fix for 47474 e_filename_make_safe routine not utf8 friendly.Suresh Chandrasekharan2003-08-211-5/+12
| | | | | | | | | 2003-08-20 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> * gal/util/e-util.c (e_filename_make_safe): Fix for 47474 e_filename_make_safe routine not utf8 friendly. svn path=/trunk/; revision=22321
* check null after conversions. (e_utf8_strftime_fix_am_pm): ditto. fixesMike Kestner2003-07-091-8/+38
| | | | | | | | | 2003-07-09 Mike Kestner <mkestner@ximian.com> * gal/util/e-util.c (e_utf8_strftime): check null after conversions. (e_utf8_strftime_fix_am_pm): ditto. fixes [44904]. svn path=/trunk/; revision=21771
* mangle the %'s out too so that libxml2 doesn't convert the encoded hexMike Kestner2003-06-011-1/+1
| | | | | | | | | 2003-05-31 Mike Kestner <mkestner@ximian.com> * gal/util/e-util.c (e_filename_make_safe): mangle the %'s out too so that libxml2 doesn't convert the encoded hex values. svn path=/trunk/; revision=21358
* bump libtool version for api addition new, utf8 in/outMike Kestner2003-05-291-0/+43
| | | | | | | | | | | | | | | 2003-05-28 Mike Kestner <mkestner@ximian.com> * configure.in : bump libtool version for api addition * gal/util/e-util.c (e_utf8_strftime): new, utf8 in/out (e_utf8_strftime_fix_am_pm): new, utf8 in/out 2003-05-28 Mike Kestner <mkestner@ximian.com> * e-cell-date.c (ecd_get_text): use e_utf8_strftime_fix_am_pm and remove locale to utf8 conversion at end. [43485] svn path=/trunk/; revision=21343
* use E_I18N_DOMAINRadek Doulik2003-05-081-3/+3
| | | | | | | | | | | 2003-05-08 Radek Doulik <rodo@ximian.com> * gal/util/e-util.c (e_gettext): use E_I18N_DOMAIN * gal/util/e-i18n.h: use e_gettext as we need our text domain to be binded svn path=/trunk/; revision=21131
* ugh, we need to make sure the file is opened for writing. or the flagsChris Toshok2003-03-151-1/+1
| | | | | | | | | 2003-03-14 Chris Toshok <toshok@ximian.com> * gal/util/e-util.c (e_write_file): ugh, we need to make sure the file is opened for writing. or the flags with O_WRONLY. svn path=/trunk/; revision=20304
* use access() like camelMike Kestner2003-03-151-5/+2
| | | | | | | | | | | | | | | 2003-03-14 Mike Kestner <mkestner@ximian.com> * gal/util/e-util.c (e_mkdir_hier): use access() like camel 2003-03-14 Mike Kestner <mkestner@ximian.com> * gal-view-collection.c (gal_view_collection_load): check failure on e_create_directory call and warn. * gal-view-instance.c (save_current_view): check for failure and warn. svn path=/trunk/; revision=20291
* Add a "collate" sort callback that uses the new g_collate_compare().Jeffrey Stedfast2002-12-061-9/+22
| | | | | | | | | | | | | | | | 2002-12-05 Jeffrey Stedfast <fejj@ximian.com> * e-table-extras.c (ete_init): Add a "collate" sort callback that uses the new g_collate_compare(). 2002-12-05 Jeffrey Stedfast <fejj@ximian.com> * gal/util/e-util.c (g_str_compare): Revert back to using just strcmp - this fixes bug #33933 but reopens bug #26355. (g_collate_compare): New function meant to address the sorting required by bug #26335. svn path=/trunk/; revision=19014
* add lots of marshallers (most, if not all, for etable).Chris Toshok2002-11-171-2/+2
| | | | | | | | | | | | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gal/util/e-marshal.list: add lots of marshallers (most, if not all, for etable). * gal/util/e-text-event-processor-emacs-like.[ch]: lotsa GObject work. * gal/util/e-text-event-processor.[ch]: lotsa GObject work. * gal/util/e-util.c: same. * gal/e-paned/e-hpaned.[ch]: lotsa GObject work. * gal/e-paned/e-paned.[ch]: same. * gal/e-paned/e-vpaned.[ch]: same. svn path=/trunk/; revision=18797
* merging the gal-2 branch back to the trunk.Mike Kestner2002-11-011-547/+19
| | | | | | merging the gal-2 branch back to the trunk. svn path=/trunk/; revision=18471
* [ Fixes evolution bug #26355 ] use g_utf8_collate here instead of strcmp.Chris Toshok2002-10-211-2/+3
| | | | | | | | | | | | | 2002-10-20 Chris Toshok <toshok@ximian.com> [ Fixes evolution bug #26355 ] * gal/util/e-util.c (g_str_compare): use g_utf8_collate here instead of strcmp. * gal/e-text/Makefile.am (e_completion_test_LDADD): reorder so that util comes before unicode. svn path=/trunk/; revision=18400
* Documented this function as not necessarily stripping shellChristopher James Lahey2002-05-021-0/+1
| | | | | | | | | | 2002-05-01 Christopher James Lahey <clahey@ximian.com> * gal/util/e-util.c, gal/util/e-util.h (e_filename_make_safe): Documented this function as not necessarily stripping shell metacharacters. Fixes Ximian bug #21223. svn path=/trunk/; revision=16660
* Changed this to handle large numbers. (e_create_directory): Changed thisChristopher James Lahey2002-04-301-65/+111
| | | | | | | | | | | 2002-04-29 Christopher James Lahey <clahey@ximian.com> * gal/util/e-util.c (e_format_number_float): Changed this to handle large numbers. (e_create_directory): Changed this to be a wrapper around e_mkdir_hier. svn path=/trunk/; revision=16639
* Added widgets/e-option-menu.lo.Christopher James Lahey2002-03-261-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-25 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added widgets/e-option-menu.lo. * gal/util/e-util.c, gal/util/e-util.h (e_strdupv): Copied this function from glib2. (GET_STRING_ARRAY_FROM_ELLIPSIS, GET_DUPLICATED_STRING_ARRAY_FROM_ELLIPSIS): Added these macros to automate getting a NULL terminated array off of the stack. * gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added e-option-menu.c. (libwidgetsinclude_HEADERS): Added e-option-menu.h. * gal/widgets/e-canvas.c (e_canvas_class_init): Reformatted this function. * gal/widgets/e-gui-utils.c, gal/widgets/e-gui-utils.h (e_glade_xml_connect_widget, e_glade_xml_set_sensitive): Two new functions to automate pulling a widget from a GladeXML and either connecting a signal or setting the sensitivity. * gal/widgets/e-option-menu.c, gal/widgets/e-option-menu.h: New class to simplify the interface to GtkOptionMenu. svn path=/trunk/; revision=16246
* Replaced e_marshal_BOOL__STRING with this since the function it was usedChristopher James Lahey2002-03-131-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-13 Christopher James Lahey <clahey@ximian.com> * gal/util/e-util.c, gal/util/e-util.h (e_marshal_BOOL__STRING_INT): Replaced e_marshal_BOOL__STRING with this since the function it was used for has been modified. From gal/e-table/ChangeLog: 2002-03-13 Christopher James Lahey <clahey@ximian.com> * e-table-extras.c (e_string_search): Check for a NULL haystack here. * e-table-search.c, e-table-search.h: Added a parameter to the search signal here to pass in flags. Specifically, added the E_TABLE_SEARCH_FLAGS_CHECK_CURSOR_FIRST flag. Improved the search behavior here. * e-table.c, e-tree.c: Handle the new signature for the search signal here. svn path=/trunk/; revision=16139
* Added e-table-search.lo.Christopher James Lahey2002-03-121-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-12 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added e-table-search.lo. * gal/util/e-util.c, gal/util/e-util.h (e_marshal_BOOL__STRING): Added this marshal function. From gal/e-table/ChangeLog: 2002-03-12 Christopher James Lahey <clahey@ximian.com> * Makefile.am (libetable_la_SOURCES): Added e-table-search.c. (libetableinclude_HEADERS): Added e-table-search.h. * e-cell.h: Added ETableSearchFun here. * e-table-col.h: Added search here. * e-table-column-specification.c, e-table-column-specification.h: Added search here. * e-table-extras.c, e-table-extras.h (e_table_extras_add_search): Added ETableSearchFuncs here. * e-table-memory-store.c (e_table_memory_store_insert, e_table_memory_store_insert_adopt): Handle row == -1 here. * e-table-search.c, e-table-search.h: New class to reusably handle the semantics of searching for a string. * e-table-simple.c, e-table-simple.h: Added a bunch of simple functions here for if your table is all strings. Should be reusable. * e-table-utils.c (et_col_spec_to_col): Added support for searches here. * e-table.c, e-table.h: Added an ETableSearch here. svn path=/trunk/; revision=16119
* New signal for when the width of the column changes.Christopher James Lahey2002-02-131-0/+18
| | | | | | | | | | | | | | | | | | | | | 2002-02-13 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-reflow.c, gal/widgets/e-reflow.h (column_width_changed): New signal for when the width of the column changes. * gal/util/e-util.c, gal/util/e-util.h (e_marshal_NONE__DOUBLE): New marshaller. From gal/menus/ChangeLog: 2002-02-13 Christopher James Lahey <clahey@ximian.com> * gal-view-etable.c (detach_table): Set view->table_state_changed_id to 0. (detach_tree): Set view->tree_state_changed_id to 0. svn path=/trunk/; revision=15705
* Yet Another Stupid Marshaller.Ettore Perazzoli2002-01-231-0/+16
| | | | | | * gal/util/e-util.c (e_marshal_NONE__POINTER_POINTER_POINTER_POINTER): New. svn path=/trunk/; revision=15423
* Merging changes:Christopher James Lahey2001-12-181-5/+35
| | | | | | | | | | | | | | 2001-12-17 Christopher James Lahey <clahey@ximian.com> From a patch by Dan Nguyen <dnn@austin.ibm.com> * configure.in: Added configure check for %l and %k in strftime. * gal/util/e-util.c, gal/util/e-util.h (e_strftime): New function. Handles %l and %k even on platforms that don't support them by translating to %I and %H. svn path=/trunk/; revision=15146
* Bump up to 0.15.99.5.Ettore Perazzoli2001-10-271-1/+22
| | | | | | | | | | | * configure.in: Bump up to 0.15.99.5. * gal/util/e-util.c (e_marshal_INT__POINTER_POINTER_POINTER_POINTER_POINTER): pass `args[4]' as the fourth argument instead of `args[3]' again. (e_marshal_INT__POINTER_POINTER_POINTER_BOOL): New. svn path=/trunk/; revision=14175
* Changed the license announcement at the top of these files.Christopher James Lahey2001-10-271-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-26 Christopher James Lahey <clahey@ximian.com> * gal/e-paned/e-hpaned.c, gal/e-paned/e-hpaned.h, gal/e-paned/e-paned.c, gal/e-paned/e-paned.h, gal/e-paned/e-vpaned.c, gal/e-paned/e-vpaned.h, gal/e-text/e-completion-match.c, gal/e-text/e-completion-match.h, gal/e-text/e-completion-test.c, gal/e-text/e-completion-view.c, gal/e-text/e-completion-view.h, gal/e-text/e-completion.c, gal/e-text/e-completion.h, gal/e-text/e-entry-test.c, gal/e-text/e-entry.c, gal/e-text/e-entry.h, gal/e-text/e-table-text-model.c, gal/e-text/e-table-text-model.h, gal/e-text/e-text-model-repos.c, gal/e-text/e-text-model-repos.h, gal/e-text/e-text-model-test.c, gal/e-text/e-text-model-uri.c, gal/e-text/e-text-model-uri.h, gal/e-text/e-text-model.c, gal/e-text/e-text-model.h, gal/e-text/e-text.c, gal/e-text/e-text.h, gal/util/e-bit-array.c, gal/util/e-bit-array.h, gal/util/e-cache.c, gal/util/e-cache.h, gal/util/e-iconv.c, gal/util/e-iconv.h, gal/util/e-sorter-array.c, gal/util/e-sorter-array.h, gal/util/e-sorter.c, gal/util/e-sorter.h, gal/util/e-text-event-processor-emacs-like.c, gal/util/e-text-event-processor-emacs-like.h, gal/util/e-text-event-processor-types.h, gal/util/e-text-event-processor.c, gal/util/e-text-event-processor.h, gal/util/e-util.c, gal/util/e-util.h, gal/util/e-xml-utils.c, gal/util/e-xml-utils.h, gal/widgets/color-group.c, gal/widgets/color-group.h, gal/widgets/color-palette.c, gal/widgets/color-palette.h, gal/widgets/e-canvas-utils.c, gal/widgets/e-canvas-utils.h, gal/widgets/e-canvas-vbox.c, gal/widgets/e-canvas-vbox.h, gal/widgets/e-canvas.c, gal/widgets/e-canvas.h, gal/widgets/e-categories-master-list-array.c, gal/widgets/e-categories-master-list-array.h, gal/widgets/e-categories-master-list-combo.c, gal/widgets/e-categories-master-list-combo.h, gal/widgets/e-categories-master-list-dialog-model.c, gal/widgets/e-categories-master-list-dialog-model.h, gal/widgets/e-categories-master-list-dialog.c, gal/widgets/e-categories-master-list-dialog.h, gal/widgets/e-categories-master-list.c, gal/widgets/e-categories-master-list.h, gal/widgets/e-categories.c, gal/widgets/e-categories.h, gal/widgets/e-colors.c, gal/widgets/e-colors.h, gal/widgets/e-cursors.c, gal/widgets/e-cursors.h, gal/widgets/e-font.c, gal/widgets/e-font.h, gal/widgets/e-gui-utils.c, gal/widgets/e-gui-utils.h, gal/widgets/e-hscrollbar.c, gal/widgets/e-hscrollbar.h, gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h, gal/widgets/e-printable.c, gal/widgets/e-printable.h, gal/widgets/e-reflow-model.c, gal/widgets/e-reflow-model.h, gal/widgets/e-reflow-sorted.c, gal/widgets/e-reflow-sorted.h, gal/widgets/e-reflow.c, gal/widgets/e-reflow.h, gal/widgets/e-scroll-frame.c, gal/widgets/e-scroll-frame.h, gal/widgets/e-selection-model-array.c, gal/widgets/e-selection-model-array.h, gal/widgets/e-selection-model-simple.c, gal/widgets/e-selection-model-simple.h, gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h, gal/widgets/e-unicode.c, gal/widgets/e-unicode.h, gal/widgets/e-vscrollbar.c, gal/widgets/e-vscrollbar.h, gal/widgets/gtk-combo-box.c, gal/widgets/gtk-combo-box.h, gal/widgets/gtk-combo-stack.c, gal/widgets/gtk-combo-stack.h, gal/widgets/gtk-combo-text.c, gal/widgets/gtk-combo-text.h, gal/widgets/test-color.c, gal/widgets/test-e-font.c, gal/widgets/test-e-font.h, gal/widgets/test-font-loading.c, gal/widgets/widget-color-combo.c, gal/widgets/widget-color-combo.h, gal/widgets/widget-pixmap-combo.c, gal/widgets/widget-pixmap-combo.h, src/e-table/e-table-sorted-variable.c, tests/test-define-views.c, tests/test-shortcut-bar.c, tests/test-table-1.c, tests/test-tree-1.c, tests/test-tree-2.c, tests/test-tree-3.c, tests/test-unicode.c: Changed the license announcement at the top of these files. svn path=/trunk/; revision=14158
* Bumped the version number to 0.15.99.1.Christopher James Lahey2001-10-191-1/+31
| | | | | | | | | | | | 2001-10-18 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the version number to 0.15.99.1. * gal/util/e-util.c, gal/util/e-util.h (e_write_file_mkstemp): New function to create a unique file. (e_write_file): Check the return value of close here. svn path=/trunk/; revision=13772
* Based on patches from Fredrik Nilsson <jymdman@home.se>.Christopher James Lahey2001-10-121-4/+2
| | | | | | | | | | | 2001-10-11 Christopher James Lahey <clahey@ximian.com> Based on patches from Fredrik Nilsson <jymdman@home.se>. * gal/util/e-util.c (e_format_number): Made this work properly for numbers with a full set of 0s for one of the grouping elements. svn path=/trunk/; revision=13586
* Use e_strdup_append_strings here instead of g_strdup_printf becauseChristopher James Lahey2001-10-121-0/+53
| | | | | | | | | | | | | | | | 2001-10-11 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-table-text-model.c (e_table_text_model_insert, e_table_text_model_insert_length, e_table_text_model_delete), gal/e-text/e-text-model.c (e_text_model_real_insert, e_text_model_real_insert_length): Use e_strdup_append_strings here instead of g_strdup_printf because printf("%.*s") is locale dependent on some systems. * gal/util/e-util.c (e_strdup_append_strings): New function to append a bunch of strings with optional lengths. svn path=/trunk/; revision=13581
* New function that parses a string as a double either in the C locale orChristopher James Lahey2001-10-061-0/+224
| | | | | | | | | | | | | | | | | 2001-10-06 Christopher James Lahey <clahey@ximian.com> * gal/util/e-util.c, gal/util/e-util.h (e_flexible_strtod): New function that parses a string as a double either in the C locale or the current locale. (e_ascii_dtostr): New function that saves a double as a string as it would be saved in the C locale. * gal/util/e-xml-utils.c (e_xml_get_double_prop_by_name_with_default): Use e_flexible_strtod here. (e_xml_set_double_prop_by_name): Use e_ascii_dtostr here. svn path=/trunk/; revision=13479
* Bumped the version number to 0.12.99.0.Christopher James Lahey2001-09-231-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | 2001-09-22 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the version number to 0.12.99.0. From a patch by Damian Ivereigh <damian@cisco.com>: * gal/util/e-util.c, gal/util/e-util.h (e_strftime_fix_am_pm): New function, takes the same arguments as strftime, but does some fixup if the given string is in 12 hour mode but the locale doesn't have AM/PM descriptors. From gal/e-table/ChangeLog: 2001-09-22 Christopher James Lahey <clahey@ximian.com> From a patch by Damian Ivereigh <damian@cisco.com>: * e-cell-date.c: Made this use e_strftime_fix_am_pm instead of strftime. svn path=/trunk/; revision=13081
* Allocate one byte for the terminating zero as well.Richard Hult2001-07-051-1/+1
| | | | | | | | | 2001-07-05 Richard Hult <rhult@codefactory.se> * gal/util/e-util.c (e_format_number): Allocate one byte for the terminating zero as well. svn path=/trunk/; revision=10792
* Add e_free_string_slist() and e_free_object_slist().Ettore Perazzoli2001-06-301-0/+21
| | | | svn path=/trunk/; revision=10613
* Add a new `e_marshal_INT__POINTER_POINTER_POINTER_POINTER' marshallerEttore Perazzoli2001-06-271-0/+25
| | | | | | | | and bump version number. (BTW, did I mention that GTK+ marshalling sucks?) svn path=/trunk/; revision=10518
* Added util/e-sorter-array.lo and widgets/e-reflow-model.lo. RemovedChristopher James Lahey2001-05-081-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-07 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added util/e-sorter-array.lo and widgets/e-reflow-model.lo. Removed widgets/e-reflow-sorted.lo. * gal/util/Makefile.am (libutil_la_SOURCES): Added e-sorter-array.c. (libgalinclude_HEADERS): Added e-sorter-array.h. * gal/util/e-sorter-array.c, gal/util/e-sorter-array.h: A sorter for use with a single compare function to do sorting. * gal/util/e-util.c, gal/util/e-util.h (e_marshal_INT__OBJECT_POINTER): Added this marshaller. * gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added e-reflow-model.c. Removed e-reflow-sorted.c. (libwidgetsinclude_HEADERS): Added e-reflow-sorted.h. Removed e-reflow-model.h. * gal/widgets/e-reflow-model.c, gal/widgets/e-reflow-model.h: Model for EReflow. Has a number of items and generates canvas items on the fly. * gal/widgets/e-reflow.c, gal/widgets/e-reflow.h: Major rewrite. This now uses a model to generate its canvas items instead of having canvas items added to it. It doesn't create the canvas items now until they will be shown on screen. svn path=/trunk/; revision=9710
* Added e-table/e-cell-spin-button.lo Added e-table/e-cell-float.loMikael Hallendal2001-04-131-0/+57
| | | | | | | | | | | | | | | | | 2001-04-13 Mikael Hallendal <micke@codefactory.se> * gal/Makefile.am (libgal_la_LIBADD): Added e-table/e-cell-spin-button.lo Added e-table/e-cell-float.lo * gal/util/e-util.[ch] (e_format_number_float): Added function to format floats. Uses e_format_number for the integer part. (e_marshal_NONE__POINTER_INT_INT_INT): Added used by gal/e-table/e-cell-spin-button.c svn path=/trunk/; revision=9295
* Fixed this function to properly format numbers that have leading zeros inRusty Conover2001-04-031-1/+1
| | | | | | | | | | | 2001-04-02 Rusty Conover <rconover@zootweb.com> * gal/util/e-util.c (e_format_number): Fixed this function to properly format numbers that have leading zeros in sub groups. Case in point 3042423 should now come out as 3,042,423 not 3,42,423. svn path=/trunk/; revision=9116
* Handle NULL args semi-gracefully.Jon Trowbridge2001-03-311-1/+8
| | | | | | | | | 2001-03-31 Jon Trowbridge <trow@ximian.com> * gal/util/e-util.c (g_str_compare): Handle NULL args semi-gracefully. svn path=/trunk/; revision=9066
* Fixed the GTK_RETLOC calls for these marshallers.Christopher James Lahey2001-03-201-2/+2
| | | | | | | | | | 2001-03-20 Christopher James Lahey <clahey@ximian.com> * gal/util/e-util.c (e_marshal_INT__INT_POINTER_INT_POINTER, e_marshal_BOOL__INT_POINTER_INT_POINTER_INT_INT_INT): Fixed the GTK_RETLOC calls for these marshallers. svn path=/trunk/; revision=8843
* Upped the version number to 0.5.99.4.Christopher James Lahey2001-03-201-0/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-19 Christopher James Lahey <clahey@ximian.com> * configure.in: Upped the version number to 0.5.99.4. * Merged branch: 2001-03-18 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h: Added another semi-private function (e_selection_model_change_cursor.) 2001-03-18 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h: Added a couple of semi-private functions (e_selection_model_change_one_row and e_selection_model_confirm_row_count.) 2001-03-18 Christopher James Lahey <clahey@ximian.com> * tests/test-tree-1.c, tests/test-tree-3.c: Added arguments for e_tree_memory_callbacks_new of get_save_id and has_save_id to NULL. 2001-03-17 Christopher James Lahey <clahey@ximian.com> * gal/util/e-util.c (e_sort): Switched to just using qsort directly here. 2001-03-17 Christopher James Lahey <clahey@ximian.com> * gal/util/e-util.c, gal/util/e-util.h (e_bsearch, e_sort): Added e_sort and e_bsearch. They both take a closure. e_sort guarantees a stable sort. e_bsearch returns the range of matching elements including the position where an object would be if there are no matching elements. 2001-03-16 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added e-tree-sorted.lo. 2001-03-14 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-selection-model-simple.c, gal/widgets/e-selection-model-simple.h: Replaced the methods insert_row and delete_row with insert_rows and delete_rows. * gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h: Replaced the methods insert_row and delete_row with insert_rows and delete_rows. 2001-03-08 Christopher James Lahey <clahey@ximian.com> * Makefile.am: Added e-table/e-table-utils.lo, e-table/e-tree-memory-callbacks.lo, e-table/e-tree-memory.lo, e-table/e-tree-scrolled.lo, e-table/e-tree-table-adapter.lo, and e-table/e-tree.lo. Removed e-table/e-tree-simple.lo. * gal/util/e-util.c, gal/util/e-util.h: Added a whole bunch of e_marshal functions for ETree. * tests/test-tree-1.c, tests/test-tree-3.c: Reworked these to use the new tree stuff. End of branch svn path=/trunk/; revision=8840
* Fix it so that numbers containing inner zeros will be formatted correctly.Rusty Conover2001-02-191-1/+7
| | | | | | | | | | | 2001-02-18 Rusty Conover <rconover@zootweb.com> * gal/util/e-util.c (e_format_number): Fix it so that numbers containing inner zeros will be formatted correctly. For instance the number 5005 when formatted was coming out as 5,5. It now comes out at 5,005. svn path=/trunk/; revision=8272
* New marshallersDan Winship2001-02-151-0/+66
| | | | | | | * gal/util/e-util.c (e_marshal_INT__POINTER_POINTER, e_marshal_INT__POINTER_POINTER_POINTER_POINTER): New marshallers svn path=/trunk/; revision=8235
* Added e_format_number and e_create_directory.Christopher James Lahey2001-02-071-0/+132
| | | | | | | | | 2001-02-06 Christopher James Lahey <clahey@ximian.com> * gal/util/e-util.c, gal/util/e-util.h (e_format_number, e_create_directory): Added e_format_number and e_create_directory. svn path=/trunk/; revision=8042
* Made the parameter type of e_strdup_string a const. Made it not callChristopher James Lahey2000-12-191-6/+6
| | | | | | | | | | | 2000-12-19 Christopher James Lahey <clahey@helixcode.com> * gal/util/e-util.c, gal/util/e-util.h (e_strdup_strip): Made the parameter type of e_strdup_string a const. Made it not call isspace on signed characters. Made the return type of e_strstrcase non const again. svn path=/trunk/; revision=7078
* Fixed a warning by making e_strstrcase return a const gchar.Christopher James Lahey2000-12-121-3/+3
| | | | | | | | | 2000-12-11 Christopher James Lahey <clahey@helixcode.com> * gal/util/e-util.c, gal/util/e-util.h: Fixed a warning by making e_strstrcase return a const gchar. svn path=/trunk/; revision=6936
* Fixed some warnings.Christopher James Lahey2000-12-071-1/+1
| | | | | | | | 2000-12-06 Christopher James Lahey <clahey@helixcode.com> * gal/util/e-util.c, gal/widgets/e-font.c: Fixed some warnings. svn path=/trunk/; revision=6818
* macro that calls e_filename_make_safeJeffrey Stedfast2000-12-051-5/+5
| | | | | | | | | | | | | 2000-12-04 Jeffrey Stedfast <fejj@helixcode.com> * gal/util/e-util.h (e_str_make_safe): macro that calls e_filename_make_safe * gal/util/e-util.c (e_filename_make_safe): Renamed from e_str_make_safe (e_strstrcase): go back to returning gchar * rather than const. svn path=/trunk/; revision=6780
* Bump the version to 0.2.99.4Jeffrey Stedfast2000-12-011-3/+16
| | | | | | | | | | | | | 2000-11-30 Jeffrey Stedfast <fejj@helixcode.com> * configure.in: Bump the version to 0.2.99.4 * gal/util/e-util.c (e_strstrcase): This should return a const gchar *. (e_str_make_safe): New convenience function to replace risky chars with an underscore. svn path=/trunk/; revision=6744
* Add another marshalling function.Dan Winship2000-10-261-0/+14
| | | | | | | * gal/util/e-util.c (e_marshal_NONE__POINTER_POINTER_INT): Add another marshalling function. svn path=/trunk/; revision=6171
* Included a missing #include.Christopher James Lahey2000-10-111-0/+1
| | | | | | | | | | | | 2000-10-11 Christopher James Lahey <clahey@helixcode.com> * gal/util/e-util.c: Included a missing #include. * gal/util/e-xml-utils.c, gal/util/e-xml-utils.h: Added e_xml_get_bool_prop_by_name, e_xml_set_bool_prop_by_name, and e_xml_get_translated_string_prop_by_name. Reindented prototypes. svn path=/trunk/; revision=5835
* New function to make a directory and (if needed), its parentsDan Winship2000-10-081-0/+35
| | | | | | | * gal/util/e-util.c (e_mkdir_hier): New function to make a directory and (if needed), its parents svn path=/trunk/; revision=5778
* The return value should not be const. (Well, unless the input was, but youDan Winship2000-09-121-1/+1
| | | | | | | * e-util.c (e_strstrcase): The return value should not be const. (Well, unless the input was, but you can't know that.) svn path=/trunk/; revision=5338
* Added uncompiled e_read_uri function.Christopher James Lahey2000-08-091-1/+49
| | | | | | | | 2000-08-09 Christopher James Lahey <clahey@helixcode.com> * e-util.c, e-util.h: Added uncompiled e_read_uri function. svn path=/trunk/; revision=4629
* Added a bunch of e_marshal functions.Christopher James Lahey2000-07-251-2/+98
| | | | | | | | 2000-07-25 Christopher James Lahey <clahey@helixcode.com> * e-util.c, e-util.h: Added a bunch of e_marshal functions. svn path=/trunk/; revision=4311
* From addressbook/ChangeLog:Christopher James Lahey2000-07-131-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-07-12 Christopher James Lahey <clahey@helixcode.com> * backend/pas/pas-backend-file.c: Do case insensitive compares. * addressbook/gui/component/addressbook.c: Make quick search search both name and company name. From camel/ChangeLog: 2000-07-12 Christopher James Lahey <clahey@helixcode.com> * camel-folder-search.c, providers/imap/camel-imap-store.c: Changed from strstrcase to e_strstrcase. * string-utils.c, string-utils.h: Removed strstrcase (in favor of e_strstrcase in e-util/e-util.c.) From e-util/ChangeLog: 2000-07-12 Christopher James Lahey <clahey@helixcode.com> * e-util.c, e-util.h: Added e_strstrcase function. svn path=/trunk/; revision=4127
* Added e_strsplit to work around a bug in g_strsplit.Christopher James Lahey2000-07-081-0/+54
| | | | | | | | | 2000-07-07 Christopher James Lahey <clahey@helixcode.com> * e-util.c, e-util.h: Added e_strsplit to work around a bug in g_strsplit. svn path=/trunk/; revision=3953
* Changed the needed e_marshal functions.Christopher James Lahey2000-06-131-9/+35
| | | | | | | | | | | 2000-06-13 Christopher James Lahey <clahey@helixcode.com> * e-util.c, e-util.h: Changed the needed e_marshal functions. * e-printable.c, e-printable.h: Added a quantize parameter to e_printable_height. Also, added a e_printable_will_fit function. svn path=/trunk/; revision=3551
* Added e-printable.c and e-printable.h.Christopher James Lahey2000-06-111-9/+55
| | | | | | | | | | | | | | | | 2000-06-10 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added e-printable.c and e-printable.h. * e-printable.c, e-printable.h: This new class is a printing context. Other classes return an EPrintable which represents a context for printing that object. * e-util.c, e-util.h: Added e_marshal_NONE__OBJECT_DOUBLE_DOUBLE_BOOL and e_marshal_DOUBLE__OBJECT_DOUBLE_DOUBLE. svn path=/trunk/; revision=3510
* Fixed e_marshal_INT__INT_INT_POINTER.Christopher James Lahey2000-06-021-1/+1
| | | | | | | | 2000-06-01 Christopher James Lahey <clahey@helixcode.com> * e-util.c: Fixed e_marshal_INT__INT_INT_POINTER. svn path=/trunk/; revision=3369
* Added e_marshal_INT__INT_INT_POINTER.Christopher James Lahey2000-06-021-0/+20
| | | | | | | | 2000-06-01 Christopher James Lahey <clahey@helixcode.com> * e-util.c, e-util.h: Added e_marshal_INT__INT_INT_POINTER. svn path=/trunk/; revision=3367
* Duh! -1 != 1. :)Dan Winship2000-06-021-1/+1
| | | | | | * e-util.c (g_int_compare): Duh! -1 != 1. :) svn path=/trunk/; revision=3363
* Added e_write_file.Christopher James Lahey2000-05-231-0/+26
| | | | | | | | 2000-05-23 Christopher James Lahey <clahey@helixcode.com> * e-util.c, e-util.h: Added e_write_file. svn path=/trunk/; revision=3181
* Utility function to free a GList of strings.Ettore Perazzoli2000-05-161-0/+11
| | | | svn path=/trunk/; revision=3048
* Added e_strdup_strip which returns a copy of the string with the leadingChristopher James Lahey2000-05-141-0/+18
| | | | | | | | | 2000-05-14 Christopher James Lahey <clahey@helixcode.com> * e-util.c, e-util.h: Added e_strdup_strip which returns a copy of the string with the leading and trailing spaces removed. svn path=/trunk/; revision=3026
* Got rid of some warnings.Christopher James Lahey2000-05-071-0/+52
| | | | | | | | | | | | 2000-05-06 Christopher James Lahey <clahey@helixcode.com> * e-html-utils.c: Got rid of some warnings. * e-util.c, e-util.h: Added e_read_file which takes a filename and returns a newly allocated string containing the contents of that file. svn path=/trunk/; revision=2828
* New function to free a list of referenced objects.Ettore Perazzoli2000-05-031-1/+14
| | | | svn path=/trunk/; revision=2772
* Added e_xml_get_integer_prop_by_name.Christopher James Lahey2000-02-251-0/+41
2000-02-24 Christopher James Lahey <clahey@helixcode.com> * e-util/e-xml-utils.c, e-util/e-xml-utils.h: Added e_xml_get_integer_prop_by_name. * e-util/Makefile.am: Added e-util.c. * e-util/e-util.h: Added e-util.c functions. * e-util/e-util.c: New file for compare functions from mail: 2000-02-24 Christopher James Lahey <clahey@helixcode.com> * message-list.c: Changed to match new e_table_simple interface. svn path=/trunk/; revision=1931