type and a name too. The name will allow renaming shortcuts (thus
decoupling the name of the folder the shortcuts points to from the
name of the shortcut); the type member is used to cache the type of
the folder we point to so that we can still display the right icon
even if the folder is currently not in the storage (e.g. this happens
for IMAP folders when you haven't opened the corresponding IMAP node
yet).
I don't like the way this is designed at all (mainly, the
responsibility for saving the values should be moved elsewhere), but
I'll fix it later.
Also, I added an "Open in New Window" right-click menu item for
shortcuts.
svn path=/trunk/; revision=10649
2001-06-30 Federico Mena Quintero <federico@ximian.com>
Fixes bug #1406.
* gui/calendar-config.c (config_read): Handle the options for the
task list colors.
(calendar_config_write): Ditto.
(calendar_config_get_tasks_due_today_color): New function.
(calendar_config_set_tasks_due_today_color): New function.
(calendar_config_get_tasks_overdue_color): New function.
(calendar_config_set_tasks_overdue_color): New function.
(calendar_config_configure_e_calendar_table): Use
e_table_model_changed() for the colors.
* gui/dialogs/cal-prefs-dialog.glade: Updated the options for the
task list and alarms.
* gui/dialogs/cal-prefs-dialog.c (cal_prefs_dialog_show_config):
Update the task list settings.
(cal_prefs_dialog_update_config): Ditto.
* gui/calendar-model.c (get_color): Deal with tasks for today as
well as overdue tasks. Make it cleaner, even though we have to
duplicate a chunk of is_overdue().
* gui/calendar-commands.c (preferences_cmd): Renamed from
properties_cmd().
svn path=/trunk/; revision=10648
2001-06-30 Jon Trowbridge <trow@ximian.com>
* backend/ebook/e-card.c (e_card_evolution_list): Check args.
Somewhere in the code (somewhere in the minicard stuff) this can
be called with a NULL arg, which was causing crashes.
(e_card_evolution_list_show_addresses): Check args.
svn path=/trunk/; revision=10644
2001-06-30 Jon Trowbridge <trow@ximian.com>
* mail-display.c (make_popup_window): Changed to return the
created window.
(find_socket): Added. Copied from e-shell-view.c. The fact
that I'm copying this bit of code all over isn't cool.
(html_button_press_event): Properly destroy the popup window when
the widget inside the control is destroyed.
* mail-callbacks.c (addrbook_sender): Added. Implements
the "Add sender to addressbook" right-click. (Bug #3645)
(find_socket): Added. Copied from e-shell-view.c.
* folder-browser.c: Added "Add sender to addressbook" to
context_menu[].
* mail-display.c: (handle_embedded_address_object): Removed.
(on_object_requested): Removed handling for embedded address
objects. (Which was obsolete crap.)
svn path=/trunk/; revision=10643
2001-07-01 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-day-view.c (e_day_view_*_clipboard): fixed clibpoard
command activation from the menu entries. CTRL-C and CTRL-X don't
work though, since it seems the key presses are being captured by
the text item
gui/e-week-view.c (e_week_view_*_clipboard): ditto
svn path=/trunk/; revision=10641
2001-06-30 Federico Mena Quintero <federico@ximian.com>
* gui/e-week-view-event-item.c
(e_week_view_event_item_button_press): Only set the
pressed_event_num and pressed_span_num if button 1 was pressed.
Fix up return values a bit. This fixes bug #3780.
svn path=/trunk/; revision=10637
2001-06-30 Federico Mena Quintero <federico@ximian.com>
* gui/gnome-cal.c
(gnome_calendar_on_date_navigator_selection_changed): Doh, the
call for the day view was supposed to be
gnome_calendar_set_view(), not set_view(). Fixes bug #3779.
svn path=/trunk/; revision=10636
2001-06-30 Jon Trowbridge <trow@ximian.com>
* backend/ebook/e-destination.c (build_field): I was accidentally
comparing characters and strings here, and didn't see the compiler
warning. Fixed.
(e_destination_exportv): Don't export any empty destinations.
(bug#3825).
svn path=/trunk/; revision=10635
2001-06-30 Federico Mena Quintero <federico@ximian.com>
* e-storage-set-view.c (popup_folder_menu): Pass the event time to
gtk_menu_popup() so that we can release the button and have the
menu stay up.
svn path=/trunk/; revision=10633
2001-06-30 Rodrigo Moya <rodrigo@ximian.com>
* gui/tasks-control.c (tasks_control_cut_cmd): call
e_calendar_table_cut_clipboard with the correct object
(tasks_control_copy_cmd): ditto
(sensitize_commands): sensitize clipboard commands based on the
number of selected tasks
svn path=/trunk/; revision=10631
2001-06-30 Jon Trowbridge <trow@ximian.com>
* e-msg-composer-hdrs.c (set_recipients): Touch all of our
EDestinations before we unref them, updating the last-use records
in the addressbook.
svn path=/trunk/; revision=10627
2001-06-30 Jon Trowbridge <trow@ximian.com>
* gui/merging/e-card-merging.c (match_query_callback): Make the
standard for considering two cards to be match stricter.
* gui/component/select-names/e-select-names-completion.c
(make_match): Use the card's use-score to set the match's
sort_major value.
(match_name): Removed obsolete code.
(e_select_names_completion_begin): Added (double) cast to make
match->score calculation come out properly.
* backend/ebook/e-card.c: Added X-EVOLUTION-LAST-USE and
X-EVOLUTION-USE-SCORE to attribute_jump_array.
(e_card_get_today): Added. A convenience routine for getting
today's date and putting it in a GDate.
(e_card_get_use_score): Added. Compute the current, time-decayed,
use-score for the card.
(e_card_touch): Increment the use-score by one; update the last
used date.
(e_card_date_to_string): Added as a convenience routine, getting
rid of some code duplication.
(e_card_get_vobject): Add handlers for X-EVOLUTION-USE-SCORE and
X-EVOLUTION-LAST-USE.
(parse_last_use): Added.
(parse_use_score): Added.
(e_card_class_init): Added args for last-use and use-score.
(e_card_get_arg): Added handlers for last-use and use-score.
o
(e_card_set_arg): Added handlers for last-use and use-score.
* backend/ebook/e-destination.c: Added pending_card_id to
EDestinationPrivate struct.
(e_destination_copy): Copy the pending_card_id.
(e_destination_is_empty): Check for a pending_card_id. We are
non-empty if we have one.
(e_destination_clear_card): Clear pending_card_id.
(e_destination_set_card): Clear pending_card_id.
(e_destination_has_pending_card): Added.
(e_destination_use_card): Added. An asynchronous way to load a
pending card and then apply a callback to it.
(build_field): Be paranoid, map our special characters to '_'.
(e_destination_export): Use EXPORT_MAX_FIELDS symbol rather than a
hard-wired array size. Added the "card" entry.
(e_destination_import): Fix bug in handling of the "name" field.
Process the "card" field.
(e_destination_touch): "Touch" and commit the ECard corresponding
to the e-mail address in the destination. (A query against the
local addressbook is actually performed, in case the destination
isn't cardified.
* backend/ebook/e-card-compare.c (e_card_compare_name): Revamp the
way E_CARD_MATCH_FOO results are mapped to comparison results.
Report better matches when the family name is matched.
svn path=/trunk/; revision=10626
2001-06-29 Jon Trowbridge <trow@ximian.com>
* gal/e-text/e-completion-match.c (e_completion_match_unref): Do
nothing if passed NULL.
(e_completion_match_compare): Move the sort_major comparison out
to make it the primary sort key (followed by score and then
sort_minor).
(e_completion_match_compare_alpha): Move the sort_major comparison
out to make it the primary sort key.
svn path=/trunk/; revision=10625
2001-06-29 Christopher James Lahey <clahey@ximian.com>
* gui/component/select-names/e-select-names.c (update_query):
Added a search field to the query here.
(e_select_names_init): Update the query on a number of signals here.
* gui/component/select-names/e-select-names.h: Added search_entry
here.
* gui/component/select-names/select-names.glade: Added the search
entry here. Added some labels. Removed the update button.
svn path=/trunk/; revision=10624
2001-06-29 Christopher James Lahey <clahey@ximian.com>
* gui/component/select-names/e-select-names.c
(e_select_names_option_activated): Change the uri here to have
addressbook.db at the end.
* gui/component/select-names/select-names.glade: Changed the name
of the folder option menu here to match the name used in the code.
svn path=/trunk/; revision=10623
unfinished. Also, it causes the shortcut bar to stop displaying
message unread count, but this is unfixable until we get rid of the
::LocalStorage interface, which should hopefully happen soon.
svn path=/trunk/; revision=10621
2001-06-29 Christopher James Lahey <clahey@ximian.com>
* e-shortcuts-view-model.c (load_all_shortcuts_into_model):
Replaced GList with GSList here to fix a type mismatch.
svn path=/trunk/; revision=10619
2001-06-29 Christopher James Lahey <clahey@ximian.com>
* e-shortcuts-view-model.c (load_group_into_model): Replaced GList
with GSList here to fix a type mismatch.
svn path=/trunk/; revision=10617
2001-06-29 Larry Ewing <lewing@ximian.com>
* mail-callbacks.c (create_msg_composer): make sure we show the
sig file.
* e-msg-composer.c (e_msg_composer_show_sig_file): remove now
invalid argument in the documentation.
svn path=/trunk/; revision=10616
2001-06-29 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-factory.c (control_deactivate): Turn folder
syncing back on here so that IMAP folders will sync without
needing to hit Send & Receive.
svn path=/trunk/; revision=10611
2001-06-29 Jeffrey Stedfast <fejj@ximian.com>
* rule-editor.c (rule_editor_construct): Set the filter-rule
dialog to be user-resizable.
svn path=/trunk/; revision=10607
2001-06-29 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (ask_confirm_for_only_bcc): Throw up the
confirmation dialog.
(composer_get_message): If the user only specified Bcc recipients,
prompt him/her to make sure we should continue and risk the server
adding an Apparently-To header.
* mail-config.c (config_read): Read in config option for prompting
when only Bcc recipients are specified.
(mail_config_write_on_exit): Save the option.
(mail_config_get_prompt_only_bcc): New.
(mail_config_set_prompt_only_bcc): New.
svn path=/trunk/; revision=10606