2001-12-12 JP Rosevear <jpr@ximian.com>
* gui/e-day-view.c (e_day_view_on_top_canvas_button_release):
ungrab the pointer before calling
e_day_view_finish_long_event_resize
(e_day_view_on_main_canvas_button_release): ditto
(e_day_view_finish_long_event_resize): ask if the meeting should
be sent
(e_day_view_finish_resize): ditto
(e_day_view_on_editing_stopped): ditto
(e_day_view_on_top_canvas_drag_data_received): ditto
(e_day_view_on_main_canvas_drag_data_received): ditto
svn path=/trunk/; revision=15008
2001-12-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_set_new_mail_notification_command):
set the new-mail-notify command.
(mail_config_get_new_mail_notification_command): get the
new-mail-notify command.
(mail_config_set_new_mail_notification): set the
new-mail-notification action.
(mail_config_get_new_mail_notification): get the
new-mail-notification action.
(mail_config_write_on_exit): save the new-mail-notification
settings.
(config_read): Read in the new-mail-notification settings.
* mail-ops.c (mail_execute_shell_command): New function to execute
a shell command async. Will be used for playing sounds on new mail
or whatever.
svn path=/trunk/; revision=15005
2001-12-11 JP Rosevear <jpr@ximian.com>
* gui/e-meeting-model.c (process_free_busy_comp): properly convert
the dtstart and dtend times if they are UTC
(cursor_cb): if we don't have anybody to get f/b info for, process
the callbacks immediately
(e_meeting_model_refresh_busy_periods): take start/end times,
calculate the timet values with object timezone
(e_meeting_model_etable_model_to_view_row): proper cast
(e_meeting_model_etable_view_to_model_row): ditto
(async_open): bail out if we couldn't open properly
* gui/e-meeting-time-sel.c
(e_meeting_time_selector_on_update_free_busy): use defines for
determining the number of days before and after of free busy to
request
(e_meeting_time_selector_update_dates_shown): use defines for the
number of days shown
* gui/e-meeting-model.h: update proto
svn path=/trunk/; revision=15000
2001-12-11 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-select-file.c (confirm): If multiple-selection is
enabled but nothing is slected, fall back to using the filename in
the entry box as the "selected" file.
(create_file_selection): If the composer gets hidden (ie it's
being "sent") then cancel the file selection dialog.
svn path=/trunk/; revision=14999
2001-12-11 Jon Trowbridge <trow@ximian.com>
* mail-identify.c (mail_identify_mime_part): Fixed for
mail_content_loaded's new signature.
* mail-format.c (attachment_header): Don't convert URLs, etc. if
we are printing.
(write_address): Don't convert addresses to mailto: links if we
are printing.
(write_one_text_plain_chunk): Add a printing flag, that we pass
along to mail_text_write.
(handle_text_plain): Pass our printing flag to
write_one_text_plain_chunk.
(mail_get_message_rfc822): Don't unneccesarily convert URLs.
(mail_content_loaded): Add a GtkHTML parameter.
* mail-display.c (mail_display_initialize_gtkhtml): Added. Breaks
all of the signal hookups out of mail_display_new.
(mail_display_new): Call mail_display_initialize_gtkhtml.
(mail_text_write): Don't convert URLs, etc., if we are printing.
Lots of other changes to pass around GtkHTML/GtkHTMLStream objects.
* mail-callbacks.c (do_mail_print): Call
mail_display_initialize_gtkhtml on our GtkHTML object.
* folder-browser.c (update_status_bar): Make the status bar more
useful when you have a large number of hidden messages.
svn path=/trunk/; revision=14997
2001-12-11 Gustavo Giráldez <gustavo.giraldez@gmx.net>
* gal/e-table/e-table-header-item.c (ethi_unrealize): unregister
ETableHeaderItem widget as a drag target when unrealizing it.
svn path=/trunk/; revision=14996
2001-12-10 JP Rosevear <jpr@ximian.com>
* configure.in: use UTF-8 as the char set when testing pilot link
2001-12-10 JP Rosevear <jpr@ximian.com>
* e-pilot-util.c (e_pilot_utf8_to_pchar): use UTF-8 instead of
UTF8 as the source char set
(e_pilot_utf8_from_pchar): use UTF-8 instead of UTF8 as the
destination char set
svn path=/trunk/; revision=14995
2001-12-11 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-select-file.c (confirm): If multiple-selection is
enabled but nothing is slected, fall back to using the filename in
the entry box as the "selected" file.
svn path=/trunk/; revision=14994
2001-12-11 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-select-file.c
(file_selection_info_destroy_notify): If the widget is non-NULL,
then gtk_widget_destroy that bad boy...
svn path=/trunk/; revision=14984
2001-12-11 Jon Trowbridge <trow@ximian.com>
* mail-need-reply.xpm: A new icon that sucks less. We still need
stoem Tuomas-love.
svn path=/trunk/; revision=14982
2001-12-11 Jon Trowbridge <trow@ximian.com>
* message-list.etspec: Add ETable magic for our new "Needs Reply"
column. (The next few entries are for bug #90)
* message-list.h: Add COL_NEED_REPLY.
* message-list.c: Move mail_need_reply_xpm to the end of
states_pixmaps.
(ml_duplicate_value): Handle COL_NEED_REPLY.
(ml_free_value): Handle COL_NEED_REPLY.
(ml_initialize_value): Handle COL_NEED_REPLY.
(ml_value_is_empty): Handle COL_NEED_REPLY. Added
needs_reply_map[] array.
(ml_value_to_string): Handle COL_NEED_REPLY.
(ml_tree_value_at): Fix magic numbers, undoing my changes from the
otehr day. Add handler for COL_NEED_REPLY.
(message_list_create_extras): Attach icons for COL_NEED_REPLY.
(on_click): Undo my previous changes to display need-reply status
in COL_MESSAGE_STATUS. Add handing for COL_NEED_REPLY.
* mail.h: Change mail_format_mime_message, mail_format_raw_message
and the MailMimeHandlerFn typedef to take GtkHTML and
GtkHTMLStream args, as per our changes in mail-format.c.
* mail-format.c: Giant refactoring. Remove the assumption
throughout that we will always want to render into the GtkHTML
object contained in the MailDisplay. Instead, always pass in the
GtkHTML and GtkHTMLStream that we want to write to. Also, ignore
theme work-arounds if the printing flag is set. (This and what
follows fixes bug #82)
* mail-display.h: Remove GtkHTMLStream *stream from MailDisplay.
We don't need it anymore.
* mail-display.c (mail_display_render): Added. Breaks the code
that renders the message into the GtkHTML object out of
mail_display_redisplay.
(mail_display_redisplay): Call mail_display_render.
(mail_display_init): Remove reference to ->stream.
(mail_display_new): Remove reference to ->stream.
* mail-callbacks.c (do_mail_print): Create a new GtkHTML to render
our printed version into (via the new function
mail_display_render. Set the MailDisplay's printing flag to TRUE
before we render, and set it back to FALSE afterwards.
(do_mail_fetch_and_print): If the preview pane isn't open when we
try to print, fetch the message before printing.
(print_msg): Call do_mail_fetch_and_print.
(print_preview_msg): Call do_mail_fetch_and_print.
* folder-browser-ui.c: Remove "PrintMessage" and
"PrintPreviewMessage" from message_pane_enables... these now work
when the preview pane is closed. Disable printing if multiple
messages are selected.
svn path=/trunk/; revision=14981
* configure.in: Up VERSION to 1.1.0.99.
(Also, fix the ChangeLog a bit, as Jeff committed some ChangeLog
entries that were not supposed to be committed.)
svn path=/trunk/; revision=14979
2001-12-06 Christopher James Lahey <clahey@ximian.com>
* e-table-config.c, e-table-config.h (setup_gui): Set the title of
the window here.
* e-table-header-item.c (ethi_popup_customize_view): Use a useful
string for the header here.
svn path=/trunk/; revision=14975
2001-12-05 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c (ethi_find_col_by_x,
ethi_find_col_by_x_nearest): Made these return 0 to the left of
all columns and ethi_find_col_by_x return cols - 1 if to the right
of all columns. Fixes Ximian bug #14414.
svn path=/trunk/; revision=14971
2001-12-10 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment-bar.c (add_from_user):
select_file_attachments now returns a GPtrArray so handle that and
loop until we've added all the attachment files.
* e-msg-composer-select-file.c (confirm): Add an evil kludge to
get a list of filenames from the GtkFileSelection widget based on
the label in the history option menu item and the base filenames
of the selected items in the filename clist.
(create_file_selection): Setup the clist to allow multiple
selection.
(file_selection_info_destroy_notify): Destroy the GPtrArray
containing the list of xselected files.
(select_file_internal): Return a GPtrArray of files instead of a
char *.
svn path=/trunk/; revision=14968
2001-12-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-autofilter.c (rule_from_message): Make sure that the
message subject is non-NULL beforetrying to base a vfolder rule
off it. Fixes bug #16284.
2001-12-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (construct): Connect to the dialog's "destroy"
event and close any druids/editors that may be open when that
signal is caught. Fixes bug #16501.
* mail-vfolder.c (vfolder_edit): Set the window title to "Virtual
Folders". Fixes bug #16695.
svn path=/trunk/; revision=14966
2001-12-10 Jon Trowbridge <trow@ximian.com>
* e-msg-composer.c (get_file_content): Only execute an executable
sig file if a magic environment variable is set.
svn path=/trunk/; revision=14962
2001-12-10 Damon Chaplin <damon@ximian.com>
* gui/control-factory.c (control_factory_new_control): removed code
that connects to GnomeCalendar's "dates_shown_changed" signal.
* gui/calendar-commands.c (gcal_calendar_dates_change_cb):
(calendar_control_activate): moved it here, so it gets reconnected
whenever the control is activated. Fixes bug #15798.
svn path=/trunk/; revision=14960
2001-12-10 Damon Chaplin <damon@ximian.com>
* src/libical/icaltimezone.c (icaltimezone_get_display_name): if all
we have is the TZID, see if it is one of our TZIDs and if so get the
city name out of it. Fixes bug #16571.
svn path=/trunk/; revision=14957
2001-12-04 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (header_content_type_simple): Protect against
either of the types being NULL.
2001-12-05 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-filter-basic.c (filter): If complete() allocates
len+2 bytes for the out buffer, so should this. See bug #16371 for
an example case.
2001-12-05 Jeffrey Stedfast <fejj@ximian.com>
* camel-sasl-digest-md5.c: iconv() returns a size_t, not an int.
* camel-pgp-context.c: The return value of iconv() is a size_t,
not an int.
* camel-mime-part-utils.c (convert_buffer): Always use size_t args
for iconv().
* camel-mime-filter-charset.c (complete): Always use size_t args
for iconv().
(filter): Same.
* camel-mime-utils.c (header_address_fold): Make headerlen a
size_t instead of an int.
(header_fold): Same.
(base64_encode_close): We should be returning a size_t and inlen
should also be a size_t.
(base64_encode_step): Same here.
(base64_decode_step): Here too.
(base64_encode_simple): And here...
(base64_decode_simple): Same.
(uuencode_close): We should also use size_t's here...
(uuencode_step): And here too.
(uudecode_step): And also here.
(quoted_encode_close): Same idea here.
(quoted_encode_step): Again here.
(quoted_decode_step): Here too.
(quoted_encode): Input length should be a size_t.
(rfc2047_decode_word): Same.
(g_string_append_len): Here too.
(append_8bit): "
(rfc2047_encode_word): "
(quote_word): "
(hex_decode): "
(rfc2184_decode): Use size_t's with iconv().
(header_decode_param): Same.
svn path=/trunk/; revision=14956
2001-12-10 Jon Trowbridge <trow@ximian.com>
* gal/e-text/e-text.c (text_width_with_objects): Don't crash if
the text string is NULL.
(text_draw_with_objects): Don't crash if the text string is NULL.
(Fixes#16359)
svn path=/trunk/; revision=14954
2001-12-05 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (do_mail_print): set paper size to
_("US-Letter"), use gtk_html_print_set_master
svn path=/trunk/; revision=14953
* mail-display.c (on_object_requested): Don't just assume all of
the GtkHTMLEmbedded's fields are filled in, since HTML messages
may have <object>s in them that we're not expecting.
* mail-send-recv.c (mail_send_receive): Add a "current_folder"
arg.
(build_dialogue): Remember the current_folder
(free_send_data): If current_folder is set, refresh it so it's
guaranteed to be synced with the folder tree. Fixes#14770.
* mail-callbacks.c (send_receive_mail): Pass current_folder to
mail_send_receive().
svn path=/trunk/; revision=14950
* camel-mime-message.c (camel_mime_message_set_date): Fix the
tm_gmtoff case (its sign is the opposite of "timezone"). Fixes
#14678
svn path=/trunk/; revision=14948
Implements marking messages as "Need Reply".
2001-12-09 Jon Trowbridge <trow@ximian.com>
* mail-need-reply.xpm: Added a really, really ugly and
awful icon to symbolize "message needs a reply".
* Makefile.am (EXTRA_DIST): Added mail-need-reply.xpm.
2001-12-09 Jon Trowbridge <trow@ximian.com>
* camel-folder-summary.c: Add "NeedsReply" to the flag_names array
for CAMEL_MESSAGE_NEEDS_REPLY.
* camel-folder-summary.h: Added CAMEL_MESSAGE_NEEDS_REPLY flag.
2001-12-09 Jon Trowbridge <trow@ximian.com>
* vfoldertypes.xml: Add "Needs Reply" option to different status
types.
* filtertypes.xml: Add "Needs Reply" option to different status
types.
2001-12-09 Jon Trowbridge <trow@ximian.com>
* message-list.c: #include "art/mail-need-reply.xpm".
(ml_tree_value_at): Adjust magic numbers, show "Need Reply" icon
if the message needs reply.
(message_list_create_extras): Adjust magic numbers to add new
icon.
(on_click): Changed to toggle between unread, read, and need reply
when the status icon is clicked.
* mail-callbacks.c (mark_as_needing_reply): Added.
(mark_as_not_needing_reply): Added. Add "set" value to struct
post_send_data.
(composer_sent_cb): Use both "flags" and "set" elements of
post_send_data when setting message flags.
(mail_reply): Clear "Needs Reply" flag when we actually reply to a
message.
* folder-browser.c: Changed flag values to be given by
bit-shifting (1<<5) vs. base-ten (32). Added
CAN_MARK_DOESNT_NEED_REPLY flag. Added "Mark as Needing Reply"
and "Mark as Not Needing Reply" elements to context menu.
(on_right_click): Hide "Mark as (Not) Needing Reply" context menu
elements as appropriate.
svn path=/trunk/; revision=14946
2001-12-08 JP Rosevear <jpr@ximian.com>
* conduits/calendar/calendar-conduit.c (local_record_from_comp):
if we have an alarm that can be represented on the pilot, set the
appointment fields appropriately, if the duration has values for
minutes and/or hours and/or days, use the lowest common
denominator
(comp_from_remote_record): if the appointment on the pilot has an
alarm, find the first alarm an item currently had that is relative
to the start and with a negative duration and update it (or create
a new one if no valid ones exist)
* cal-util/cal-component.c (cal_component_get_alarm_uids): build
list in the order they appear in the component so we get
consisting order for the gui and for the pilot
svn path=/trunk/; revision=14943
2001-11-09 Federico Mena Quintero <federico@ximian.com>
(committed by Damon)
Fix bug #14699.
* pcs/query.c (QueryState): Added a state QUERY_WAIT_FOR_BACKEND
to indicate that the query is not populated as we are waiting for
the backend to be opened.
(query_init): Start in the QUERY_WAIT_FOR_BACKEND state.
(query_destroy): Only disconnect from the backend if we are in a
state that implies that we are connected to its signals.
(query_construct): If the backend is already loaded, immediately
set the state to QUERY_START_PENDING.
(backend_opened_cb): Disconnect from the backend's "opened"
signal. Set the state to QUERY_START_PENDING.
(match_component): We can now only match components if the query
is in progress or if it is done. Assert to that effect, and do
not ensure_sexp().
(match_component): Do not check for a nonexistent component using
g_return_if_fail(). Also, there is no need to ref/unref the
component.
(backend_obj_updated_cb): Assert to the effect of our state.
(backend_obj_removed_cb): Likewise.
(parse_sexp): Renamed from ensure_sexp(). Assert that the query
has not started. Do not disconnect from the backend's signals
here, since we have no connections.
(start_query_cb): Set the state to QUERY_IN_PROGRESS here instead
of in populate_query().
svn path=/trunk/; revision=14941
2001-12-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (stream_write_or_redisplay_when_loaded): Check
that the mail-display hasn't been destroyed.
(mail_display_redisplay): Same here.
2001-12-07 Dan Winship <danw@ximian.com>
* mail-send-recv.c (receive_update_got_store): If updating a store
that we don't have an associated storage for, just request a
folder tree and then free it. (For the Connector)
* mail-callbacks.h: Add missing part of Jeff's 12-03 patch so this
actually compiles.
svn path=/trunk/; revision=14938
2001-12-07 Jon Trowbridge <trow@ximian.com>
* gui/component/select-names/e-select-names-manager.c
(e_select_names_manager_entry_new): Remove a reference to code
I don't want to commit yet. :-)
svn path=/trunk/; revision=14935
2001-12-07 Jon Trowbridge <trow@ximian.com>
* gui/component/select-names/e-select-names-manager.c: Extensively
refactored -- this code had gotten _really_ ugly. Untangle things
to the point where our reference counting problems are fixable.
* gui/component/select-names/e-select-names-bonobo.c
(impl_destroy): Remove all of the ugly hacks to work around our
memory management problems, and just unref the manager.
(Fixes#14412)
svn path=/trunk/; revision=14934
2001-12-07 Rodrigo Moya <rodrigo@ximian.com>
* gui/calendar-config.c (calendar_config_get_default_uri):
(calendar_config_get_default_tasks_uri): if the key in the config
database does not exist, just return the local URIs, but never
return NULL
svn path=/trunk/; revision=14930