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
2001-07-05 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c, e-table-item.h (find_cell): Changed the variable
names here to make it clear that these are view model and row.
(eti_event): Added click_count to make it so that if we get two
clicks in different rows we don't send a double click event.
(eti_event, view_to_model_row): Set row_guess in a few extra
places.
svn path=/trunk/; revision=10791
2001-07-05 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Make a whole bunch of control keys
not start the ETableItem editing.
svn path=/trunk/; revision=10789
2001-07-05 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (e_table_item_row_diff): Make sure start_row and
end_row are within the number of rows in the table.
svn path=/trunk/; revision=10788
2001-07-05 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (e_tree_new, e_tree_new_from_spec_file): Handle an
error in construction a little bit better here.
(e_tree_get_cursor): Check for row == -1 here.
svn path=/trunk/; revision=10787
2001-07-05 Not Zed <NotZed@Ximian.com>
* camel-mime-filter-basic.c (filter): Fix the assertion slightly,
if we have a little bit of input the output size could be larger,
since we store upto 3 chars in the state.
svn path=/trunk/; revision=10786
2001-07-05 Not Zed <NotZed@Ximian.com>
* camel-folder-summary.c
(camel_folder_summary_info_new_from_message): When indexing a new
record, create a pseudo word 'ibexindexed' so we can always tell
that a message has already been idnexed, even if it contains no
words of its own. Things like maildir use this check to see if
its already been processed, and it matters if it is incorrect in
this case (not just wasted cycles).
(camel_folder_summary_info_new_from_parser): And same here.
* providers/local/camel-maildir-summary.c (maildir_summary_sync):
Changed the logicfor epoolv code to be different, we dont need to
update hash references or any tricky stuff.
(maildir_summary_check): Samehere.
* camel-folder-summary.h: Removed include of e-memory.h.
svn path=/trunk/; revision=10785
2001-07-04 Federico Mena Quintero <federico@ximian.com>
Fixes bug #4018 and what would be the analogous bugs for the other
component editors.
* gui/dialogs/comp-editor-page.h (CompEditorPageClass): New
virtual method "::focus_main_widget()".
* gui/dialogs/comp-editor-page.c
(comp_editor_page_focus_main_widget): New function.
* gui/dialogs/comp-editor.c (comp_editor_append_page): If we are
inserting the main page, ask it to focus its main widget.
* gui/dialogs/alarm-page.c (alarm_page_focus_main_widget):
Implemented.
* gui/dialogs/event-page.c (event_page_focus_main_widget):
Implemented.
#include "e-util/e-categories-config.h".
* gui/dialogs/meeting-page.c (meeting_page_focus_main_widget):
Implemented.
* gui/dialogs/recurrence-page.c
(recurrence_page_focus_main_widget): Implemented.
* gui/dialogs/task-details-page.c
(task_details_page_focus_main_widget): Implemented.
* gui/dialogs/task-page.c (task_page_focus_main_widget):
Implemented.
svn path=/trunk/; revision=10784
2001-07-04 Gediminas Paulauskas <menesis@delfi.lt>
* evolution-shell-component-utils.c (e_pixmaps_update): set
"pixname" value only if pixbuf was loaded successfully. Otherwise
component crashes if image is not found. Should be checked for
sanity in bonobo_ui_component_set_prop IMHO.
2001-07-04 Gediminas Paulauskas <menesis@delfi.lt>
* Makefile.am: install apply-filters-16.xpm
2001-07-04 Gediminas Paulauskas <menesis@delfi.lt>
* evolution-mail-message.xml: MessageApplyFilters now has an icon.
2001-07-04 Gediminas Paulauskas <menesis@delfi.lt>
* folder-browser-ui.c (message_pixcache): set icon for ApplyFilters
command.
svn path=/trunk/; revision=10783
2001-07-04 Federico Mena Quintero <federico@ximian.com>
* gui/calendar-commands.c (clear_folder_bar_label): New function.
(calendar_control_activate): Clear the folder bar label; we really
don't have anything interesting to display.
svn path=/trunk/; revision=10782
2001-07-04 Rodrigo Moya <rodrigo@ximian.com>
* e-categories-master-list-wombat.c (ecmlw_load): load all icons
and colors for each category
(ecmlw_save): save all icons and categories associated with
each category
* e-categories-config.c: use BonoboConf to store/retrieve settings,
and use ECategoriesMasterListWombat when creating a ECategories
dialog widget
svn path=/trunk/; revision=10781
2001-07-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_set_show_preview): Revert Sam's changes.
Note: Uhm, g_hash_table_lookup_extended gives us a pointer to the
original value which we can just change to update the hash table
without the need to re-insert - it's already there!! Also, you
don't want to g_hash_table_insert the new value with the same key
without at least first removing the existing bucket. And, you
certainly don't want to g_free() the key after you insert it -
eek!!
svn path=/trunk/; revision=10780
2001-07-04 Rodrigo Moya <rodrigo@ximian.com>
* e-categories-config.c: use BonoboConf to store/retrieve settings,
and use ECategoriesMasterListWombat when creating a ECategories
dialog widget
svn path=/trunk/; revision=10779
2001-07-04 Larry Ewing <lewing@ximian.com>
* e-msg-composer.c (autosave_load_draft): attach send and postpone
handlers. and be more tolerant of errors.
svn path=/trunk/; revision=10778
2001-07-03 Sam Creasey <sammy@oh.verio.com>
* mail-config.c (mail_config_set_show_preview): Replace value in
config->preview_hash when it already exists. Old code never
re-inserted into the hash, just assigned to val -- it's an int
here, not a real pointer.
svn path=/trunk/; revision=10776
2001-07-03 Joe Shaw <joe@ximian.com>
* mail-callbacks.c (expunge_folder): Unset the message being displayed
when expunging. This makes expunged messages not show in the preview
pane when they're not there anymore. Fixes#3591.
svn path=/trunk/; revision=10774
2001-07-03 Larry Ewing <lewing@ximian.com>
* e-msg-composer.c (autosave_save_draft): make sure we seek to the
begining.
svn path=/trunk/; revision=10773
2001-07-03 Joe Shaw <joe@ximian.com>
* mail-callbacks.c (mail_reply): If msg is NULL, fetch the message
and requeue a mail_reply call. Fixes bug #3816.
(requeue_mail_reply): Callback from mail_get_message().
svn path=/trunk/; revision=10772
001-07-03 Peter Williams <peterw@ximian.com>
* filter-source.c (get_widget): Prevent crashing while we work this out.
* filter-rule.c (get_widget): Don't try to gtk_widget_grab_default
with a widget that can't be the default. Altough it should be able
to....
svn path=/trunk/; revision=10771
2001-07-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_show_preview): Use a better
GHashTable technique that will hopefully solve some bugs and also
use _with_default bonobo-config call.
(mail_config_set_show_preview): No sense in removing the entry
from the hash table and then re-inserting it. Just reset the
value.
(mail_config_get_thread_list): Use the same logic.
(mail_config_set_thread_list): And again here.
svn path=/trunk/; revision=10770
2001-07-03 Joe Shaw <joe@ximian.com>
* providers/nntp/camel-nntp-resp-codes.h: Added NNTP_NO_PERMISSION
(502) to the list of response codes.
* providers/nntp/camel-nntp-store.c (nntp_store_connect): If we
receive a NNTP_NO_PERMISSION, don't get into an infinite loop trying
to reconnect, get extensions, etc. Just give up and return FALSE.
svn path=/trunk/; revision=10769
2001-07-03 Peter Williams <peterw@ximian.com>
* mail-folder-cache.c (make_folder_name, make_folder_status): Split
make_string into these.
(update_idle): Use (name and status) instead of (wide and thin) for
the text.
svn path=/trunk/; revision=10766
2001-07-03 Kevin Breit <battery841@mediaone.net>
* C/usage-mail.sgml: Put in lots of orderedlists...more SGML, less
for the user to read. They'll thank me in droves later.
svn path=/trunk/; revision=10764
`shortcuts.xml' file, and another bug that caused the default
group to be added at every start-up, even there were groups
already.]
* e-shortcuts.c (e_shortcuts_new): If loading the shortcuts fails,
set the file_name.
(load_shortcuts): Update `num_groups'.
svn path=/trunk/; revision=10763
2001-07-03 Larry Ewing <lewing@ximian.com>
* e-msg-composer.h: remove the timer id.
* e-msg-composer.c: use autosave manager.
(autosave_save_draft): moved initialization to
autosave_init_file. Only save the buffer if we get a valid
message.
(autosave_load_draft): unlink the old file, we own it now. and
unref the stream when we are done with it.
(autosave_is_owned): check if we own the file, this needs to be
extended to check for other valid processes.
(autosave_query_load_orphans): make this search through the
managers list as it walks the dir.
(autosave_query_load_orphans): make sure we use the full path.
(autosave_run_foreach_cb): timeout foreach handler.
(autosave_run): the timeout function.
(autosave_start): start timer.
(autosave_stop): stop timer.
(autosave_register): register a composer with the autosave manager.
(autosave_unregister): unregister a composer.
(destroy): unregister the composer, everything is okay.
(init): register the composer.
svn path=/trunk/; revision=10762
2001-07-02 Larry Ewing <lewing@ximian.com>
* e-msg-composer.c (autosave_query_load_orphans): querythe user to
check if they want to load any orphans we've found.
(autosave_query_cb): the dialog callback.
(autosave_is_orphan): test if if a particular file is orphaned.
(autosave_load_draft): load a message from an autosave file.
(autosave_save_draft): save the current buffer to the autosave file.
svn path=/trunk/; revision=10761
2001-07-03 Peter Williams <peterw@ximian.com>
Prevent folders from appearing to have -1 new messages. Prevent
nonactive folders from updating the title bar. Make the title
bar update when switching to an already-opened folder.
* mail-folder-cache.c (update_message_counts): Ignore the value for
'unread' if it is -1.
(get_mail_info_receive): Same
(mail_folder_cache_note_folderinfo): Same.
(get_folder_info): Initialize 'fb' to NULL.
(mail_folder_info): Add 'fb' member.
(mail_folder_cache_note_fb): Change note_message_list to this.
(update_idle): Only update the ShellView if the active folder browser
is the same as the one that the MFI references.
(mail_folder_cache_set_folder_browser): New function. Use it to set
the active folder browser. NULL is okay.
(check_for_fb_match): Called from the above. If the MFI has the
new folder browser as its view, queue an update.
* mail-folder-cache.h: Fix prototypes.
* mail-callbacks.c (create_folders): Check if fi->url is nonnull.
* folder-browser.c (got_folder): Change to use note_fb instead of
note_messge_list.
* folder-browser-factory.c (control_activate): Set the folder browser
(control_deactivate): Clear it here.
(fb_get_svi): Kill some inappropriately cut-n-pasted code.
svn path=/trunk/; revision=10755
* mail-config.glade: Rename some of the widgets in the news config
to not conflict with the mail config stuff, so the mail config
druid will work again.
svn path=/trunk/; revision=10754
2001-07-03 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (message_list_drag_data_get): Use mkdtemp if we
have it, else use mktemp but make the code safer than it was
previously.
* mail-display.c (launch_cb): Free the template string if the
tempdir failed to be created.
svn path=/trunk/; revision=10753
* providers/imap/camel-imap-message-cache.c
(camel_imap_message_cache_clear): Doh. Don't remove things from
the hash table while foreach'ing it. (And can't use foreach_remove
either because we have to remove them in a weird order). Fixes
#3618.
* providers/imap/camel-imap-folder.c (imap_get_message): If the
server returns OK from the FETCH BODY, but there's no parseable
BODY response, it's probably because there's an UN-parseable BODY
response, implying the message is badly formatted, MIMEwise. In
that case, fall back to fetching the message as a single part.
svn path=/trunk/; revision=10748