2002-12-17 Chris Toshok <toshok@ximian.com>
[ fixes bug #34897 ]
* gui/widgets/e-addressbook-table-adapter.c
(addressbook_value_at): don't free the return of
e_card_simple_get_const, as this causes a double free later on.
svn path=/trunk/; revision=19163
2002-12-18 Chris Toshok <toshok@ximian.com>
* gui/component/e-address-popup.c: convert the clist in here to a
GtkTreeView. your guess is as good as mine if it works (i can't
test it at present) but it compiles.
svn path=/trunk/; revision=19162
2002-12-18 Chris Toshok <toshok@ximian.com>
* gui/widgets/e-minicard.c (e_minicard_realize): drop use of
"font" arg.
(get_left_width): use pango to calculate this instead of a GdkFont.
* gui/widgets/e-minicard-view.c: drop include of e-unicode.h.
* gui/widgets/e-minicard-label.c (e_minicard_label_construct):
don't need to create the font anymore.
* gui/search/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED.
* gui/search/e-addressbook-search-dialog.c
(e_addressbook_search_dialog_new): use g_object_new instead of
gtk_type_new.
* gui/merging/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED.
* gui/contact-list-editor/Makefile.am (INCLUDES): add
-D*_DISABLE_DEPRECATED.
* gui/contact-list-editor/e-contact-list-editor.c (is_named):
strdup (or not, if we don't need to save the value) instead of
using the e_utf8 functions.
(fill_in_info): same.
* gui/contact-editor/Makefile.am (INCLUDES): add
-D*_DISABLE_DEPRECATED.
* gui/contact-editor/e-contact-save-as.c (e_contact_save_as):
strdup (or not, if we don't need to save the value) instead of
using the e_utf8 functions.
(e_contact_list_save_as): same.
* gui/contact-editor/e-contact-quick-add.c (clicked_cb): strdup
(or not, if we don't need to save the value) instead of using the
e_utf8 functions.
(build_quick_add_dialog): same.
* gui/contact-editor/e-contact-editor.c (phone_entry_changed):
strdup (or not, if we don't need to save the value) instead of
using the e_utf8 functions.
(file_as_set_style): same.
(name_entry_changed): same.
(full_name_clicked): same.
(categories_clicked): same.
(set_field): same.
(fill_in_field): same.
(fill_in_single_field): same.
(extract_field): same.
(extract_single_field): same.
* gui/contact-editor/e-contact-editor-fullname.c (extract_field):
just strdup, it's already utf8.
* gui/contact-editor/e-contact-editor-address.c (extract_field):
they're all entries, use GTK_ENTRY foo here.
* gui/component/select-names/Makefile.am (INCLUDES): add
-D*_DISABLE_DEPRECATED.
* gui/component/select-names/e-select-names.c
(e_select_names_add_section): remove the extra
utf8_from_locale_string stuff.
* gui/component/select-names/e-select-names-popup.c
(set_uiinfo_label): gtk_container_children ->
gtk_container_get_children, and remove the extra utf8 stuff.
* gui/component/Makefile.am (INCLUDES): add
-D*_DISABLE_DEPRECATED.
* gui/component/addressbook-storage.c
(addressbook_storage_init_source_uri): g_string_sprintfa ->
g_string_append_printf.
* gui/component/addressbook-config.c (focus_help):
gtk_notebook_set_page -> gtk_notebook_set_current_page.
(addressbook_source_dialog_set_source): same.
(auth_optionmenu_activated): gtk_container_children ->
gtk_container_get_children.
(ssl_optionmenu_activated): same.
(ssl_optionmenu_selected): same, and gtk_notebook_set_page ->
gtk_notebook_set_current_page.
(scope_optionmenu_activated): same.
(set_advanced_button_state): same.
(addressbook_ldap_init): hook "response" to gtk_widget_destroy to
make the dialog go away when clicked.
(addressbook_ldap_auth): same.
(addressbook_root_dse_query): same.
(do_ldap_root_dse_query): same.
(addressbook_config_control_new): fix return type and cast.
(main): remove call to gtk_widget_push_visual.
* gui/component/addressbook-config.h:
addressbook_config_control_new returns a BonoboObject, not a
BonoboControl.
* gui/component/addressbook.c: remove e-unicode.h include.
* backend/pas/Makefile.am (INCLUDES): Add
-DLIBGNOME_DISABLE_DEPRECATED.
* backend/ebook/Makefile.am (INCLUDES): Add
-DLIBGNOME_DISABLE_DEPRECATED.
* backend/ebook/e-card.c (e_card_get_property): remove misleading
comment.
svn path=/trunk/; revision=19160
2002-12-17 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-utils.c: Replace calls to
g_string_sprintfa() with g_string_append_printf() since the former
seems to have been deprecated.
* providers/imap/camel-imap-search.c: Same.
* providers/imap/camel-imap-folder.c: Here too.
* providers/local/camel-mbox-summary.c: And here.
* providers/local/camel-local-summary.c: Replace
g_string_sprintf() with g_string_printf().
* camel-data-cache.c (data_cache_expire): Replace
g_string_sprintf() with g_string_printf().
* camel-url.c: Replace calls to g_string_sprintfa() with
g_string_append_printf() since the former seems to have been
deprecated.
* camel-service.c: Same.
* camel-mime-utils.c: Here too.
svn path=/trunk/; revision=19154
2002-12-17 Jeffrey Stedfast <fejj@ximian.com>
* camel-url.c: Replace calls to g_string_sprintfa() with
g_string_append_printf() since the former seems to have been
deprecated.
* camel-service.c: Same.
* camel-mime-utils.c: Here too.
svn path=/trunk/; revision=19153
2002-12-17 Jeffrey Stedfast <fejj@ximian.com>
...And a whole bunch more build fixes.
* mail-vfolder.c (mail_vfolder_delete_uri): Don't use
g_string_sprintfa() anymore since it is apparently deprecated.
* mail-session.c (main_get_filter_driver): Don't use
g_string_sprintfa() anymore since it is apparently deprecated.
* mail-ops.c (build_from): Don't use g_string_sprintfa() anymore
since it is apparently deprecated.
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Don't use
g_string_sprintfa() anymore since it is apparently deprecated.
* mail-autofilter.c: Don't use g_string_sprintfa() anymore since
it is apparently deprecated.
* folder-browser.c: Don't use g_string_sprintfa() anymore since it
is apparently deprecated.
* mail-search.c (mail_search_set_subject): Remove the unnecessary
g_strdup()'age as well as fix a possible buffer overrun.
* mail-local.c (mail_local_folder_construct): Use
g_path_get_basename().
* mail-config-druid.c (make_account): Don't use e_utf8_*
functions.
svn path=/trunk/; revision=19152
2002-12-17 Chris Toshok <toshok@ximian.com>
[ Fixes bug #35135 ]
* backend/ebook/e-book-util.c (set_default_book_uri_local): don't
free the default_book_uri here, it's done in set_default_book_uri.
(set_default_book_uri): break some stuff out from
set_default_book_uri_from_bonobo_conf to here so it can be used
both from that function and the bonobo listener.
(default_folder_listener): set the new default book uri.
(set_default_book_uri_from_bonobo_conf): install the bonobo conf
listener so we'll get updates.
svn path=/trunk/; revision=19148
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-part-utils.c
(simple_data_wrapper_construct_from_parser): Detect text/html
parts that were marked as text/plain and re-tag them as text/html
parts. Note: currently just checks if the first non-lwsp char is a
'<' - but we might need to be smarter about this? *sigh* Stupid
Windows mailers.
svn path=/trunk/; revision=19143
2002-12-16 Chris Toshok <toshok@ximian.com>
* e-table-header-utils.c (e_table_draw_elided_string): pass in the
pango layout so we don't have to create another one here. Also,
elide the string properly (same method that e-clipped-label uses)
and simplify the extent operations.
(e_table_header_compute_height): just use
pango_layout_get_pixel_size here.
(e_table_header_draw_button): make sure the clip rectangle is
NULL'ed on our gc, since random gtk calls seem to install one,
which sucks. Also, simplify the pango layout stuff a little.
svn path=/trunk/; revision=19142
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c #define a STANDARD_ISSUE_TABLE_OPEN string used
for wrapping textual message parts to keep them being fully-left
justified.
(mail_format_raw_message): Wrap the content with a table so that
text isn't fully left-justified.
(write_hr): Use it here too.
(handle_text_plain): And finally here.
svn path=/trunk/; revision=19141
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (mail_error_printf): Use camel_text_to_html()
instead of e_text_to_html().
(mail_text_write): Write the content directly to gtkhtml through
an html stream filter.
* mail-format.c (attachment_header): Use camel_text_to_html()
instead of e_text_to_html().
(write_text_header): Same.
(write_address): Here too.
(mail_get_message_rfc822): And here.
(mail_get_message_body): And finally here.
svn path=/trunk/; revision=19133
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* e-shell-importer.c: Don't #include "e-util/e-html-utils.h" as
we don't use it.
svn path=/trunk/; revision=19131
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* e-html-utils.[c,h]: Removed. Back to the fiery depths of hell
from whence ye came!
svn path=/trunk/; revision=19130
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-filter-tohtml.c (camel_text_to_html): New convenience
function to replace calls to e_text_to_html() in the
mailer/composer etc.
svn path=/trunk/; revision=19128
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_text_plain): Re-implemented to use
streams. Also no need to check for html since
camel-mime-part-utils.c now does this for us and will re-tag the
mime-type as text/html thus the UI can be completely ignorant of
this process.
(handle_text_plain_flowed): Removed.
(write_one_text_plain_chunk): Removed.
(try_uudecoding): Removed.
(try_inline_binhex): Removed.
(handle_text_enriched): Re-implemented to use streams too.
2002-12-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (write_text_header): Change the order of the args
to be consistant with other write functions.
(write_date): Same.
(write_field_row_begin): Here too.
(write_headers): Here too.
(write_one_text_plain_chunk): Don't strdup just to pass it to
mail_text_write() so that it can dup it yet again into html text
and dup it yet a 3rd time into a GByteArray. Instead just write it
to gtkhtml.
(handle_*): Fixed arguments to take a MailDisplayStream instead of
a GtkHTML widget and a GtkHMLStream.
* mail-display.c (mail_display_render): Create a MailDisplayStream
to pass to mail_format_mime_message() and
mail_format_raw_message().
* mail-display-stream.[c,h]: New stream to replace
mail-stream-gtkhtml.c
* mail-stream-gtkhtml.[c,h]: Removed.
svn path=/trunk/; revision=19126
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* camel.h: #include some headers we had forgotten to add
previously, also added camel-mime-filter-enriched.h.
* camel-mime-filter-enriched.[c,h]: New stream filter to convert
text/enriched and text/richtext into HTML.
svn path=/trunk/; revision=19124
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* gui/e-itip-control.c (write_html): Correctly convert text.value
into HTML here (ie, don't pass "<i>None</i>" into e_text_to_html()
if text.value is NULL).
svn path=/trunk/; revision=19123
2002-12-15 Jeffrey Stedfast <fejj@ximian.com>
* camel-multipart-signed.c (camel_multipart_signed_verify): Don't
apply the CANON_STRIP filter here, since we are verifying whatever
raw data we received (all we want to do is convert o the canonical
CRLF format).
svn path=/trunk/; revision=19122
2002-12-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (check_send_configuration): Make sure the
folder-browser is not NULL or we'll crash.
svn path=/trunk/; revision=19115
2002-12-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-preferences.c (mail_preferences_construct): Fix the colour
code to get a guint32 rgb correctly (I think - can't test because
the shell keeps crashing, yay).
svn path=/trunk/; revision=19114
2002-12-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c: Get rid of unneeded CamelObject casts.
(user_message_response): Don't unref the dialog object after we've
destroyed it.
* mail-display.c (write_data_to_file): Don't unref the dialog
object after we've destroyed it.
* mail-callbacks.c: Same here.
* component-factory.c: Here too.
* message-tag-editor.c: Added MESSAGE_TAG_EDITOR_GET_CLASS macros.
svn path=/trunk/; revision=19112
2002-12-12 Jeffrey Stedfast <fejj@ximian.com>
* rule-editor.c (cursor_changed): Use an easier method for getting
the iter.
svn path=/trunk/; revision=19108
2002-12-12 Jeffrey Stedfast <fejj@ximian.com>
* vfolder-rule.c (vfolder_editor_sourcelist_new): New custom
function for creating the source_list widget.
(get_widget): Removed the source_list creation code.
* rule-editor.c (rule_editor_construct): Listen to row-activated
for double-click events. Also, removed the model creation code out
of here.
(rule_editor_treeview_new): Moved the treeview and model creation
code into here instead, and made the glade widgets into custom
widgets.
svn path=/trunk/; revision=19106
2002-12-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (account_delete_clicked): Get rid of the ETable
#ifdef's - we won't ever be using ETable.
(account_default_clicked): Same.
(account_able_clicked): Here too.
(mail_accounts_load): And here.
(mail_accounts_treeview_new): Renamed from etable_new since we
won't ever be using an etable.
(mail_accounts_tab_construct): And finally here.
svn path=/trunk/; revision=19104
* Locations: Removed Marquette from the listing, it is no longer listed by METAR. This is per bug 29693.
* Locations.h: Removed Marquette from the listing, it is no longer listed by METAR.
svn path=/trunk/; revision=19100
2002-12-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_format_data_wrapper_write_to_stream): New
function to handle a lot of the filtering/etc that was done in
mail_format_get_data_wrapper_text(). This is the first step toward
getting rid of e-text-to-html crap and using my tohtml stream
filter instead.
(mail_format_get_data_wrapper_text): Use the new function.
(mail_format_raw_message): Use camel streams to write the content
to gtkhtml rather than using get_data_wrapper_text() and then
converting that to html and then writing it to the gtkhtml stream.
svn path=/trunk/; revision=19098