2003-04-14 Jeffrey Stedfast <fejj@ximian.com>
* e-sexp.c: Finished an #if 0'd out port to GObject from an #if
0'd out GtkObject subclassing.
svn path=/trunk/; revision=20864
2003-04-15 Hans Petter Jansson <hpj@ximian.com>
* e-sexp.c (e_sexp_add_function)
(e_sexp_add_ifunction): Make sure any old symbol with the same name
as the one being added, is removed first.
svn path=/trunk/; revision=20852
2003-04-14 Not Zed <NotZed@Ximian.com>
* e-gtk-utils.c (e_gtk_button_new_with_icon): Utility function to
create a button with a stock icon.
svn path=/trunk/; revision=20843
2003-04-09 Jeffrey Stedfast <fejj@ximian.com>
* e-host-utils.c (e_gethostbyaddr_r): Change the 'len' argument to
'addrlen' so that when IPv6 is enabled, our temp vriable (also
named len) does not cause confusion. Fixes bug #40979.
svn path=/trunk/; revision=20791
* e-account-list.c (gconf_accounts_changed): Don't start emitting
ACCOUNT_ADDED signals until we've added all of the new accounts to
our list. Otherwise if the signal handler calls
e_account_list_get_default_account() it will end up causing the
first account in the list to become the default. #40675
svn path=/trunk/; revision=20680
2003-04-02 Chris Toshok <toshok@ximian.com>
[ either fixes#39702 or comes damn, damn close. also, fixes EText
to not suck *nearly* as much. ]
* gal/util/e-marshal.list: add NONE:POINTER,INT,OBJECT.
* gal/e-text/e-entry.h: (struct _EEntryClass): popup ->
populate_popup.
* gal/e-text/e-entry.c (proxy_changed): rename, the old name was
too damn long.
(proxy_activate): same.
(proxy_populate_popup): same, and change from popup to
populate_popup.
(e_entry_init): track change to cb names, and populate_popup.
also, pass the ECanvas's im_context to the EText.
(e_entry_class_init): POPUP -> POPULATE_POPUP.
* gal/e-text/e-text.h (struct _EText): remove the old selection
stuff, and add im_context/reset_im_context fields.
(struct _ETextClass): popup -> populate_popup.
* gal/e-text/e-text.c (e_text_dispose): remove all the
GtkInvisible based selection stuff, and disconnect from/unref the
im_context.
(e_text_set_property): add "im_context" handling.
(e_text_get_property): same.
(e_text_event): connect/disconnect from the IM context's signals
in the FOCUS_CHANGE handler. in the KEY_PRESS/RELEASE handler,
use gtk_im_context_filter_keypress if we have an im_context.
also, use e_text_do_popup now instead of just emitting the "popup"
signal.
(e_text_copy_clipboard): new function.
(e_text_delete_selection): new function.
(e_text_cut_clipboard): new function.
(e_text_paste_clipboard): new function.
(e_text_select_all): new function.
(primary_get_cb): new function, handle requests for the primary
selection when we're the owner.
(primary_clear_cb): new function, unfinished.
(e_text_update_primary_selection): new function.
(paste_received): new function, insert pasted text.
(e_text_paste): new function,
(popup_menu_detach): new function, not needed really.
(popup_targets_received): new function, pop up the popup once we
have the selection information necessary to sensitize the c/c/p
buttons.
(e_text_do_popup): new function, request the selection.
(e_text_reset_im_context): new function.
(e_text_command): for E_TEP_SELECT, call
e_text_update_primary_selection. for E_TEP_DELETE/INSERT,
_delete_selection -> e_text_delete_selection. for E_TEP_COPY,
call e_text_copy_clipboard. for E_TEP_PASTE/E_TEP_GET_SELECTION
call e_text_paste.
(e_text_class_init): change the "popup" signal to
"populate_popup". Also, add the "im_context" property.
(e_text_commit_cb): new function. IM context callback.
(e_text_retrieve_surrounding_cb): new function. IM context
callback.
(e_text_delete_surrounding_cb): new function. IM context
callback. unfinished.
svn path=/trunk/; revision=20653
2003-04-02 Not Zed <NotZed@Ximian.com>
* e-passwords.c (e_passwords_forget_passwords): Delete all
Passwords-* sections. Should make this work.
svn path=/trunk/; revision=20631
2003-03-31 Chris Toshok <toshok@ximian.com>
* ename/test-ename-western.c (do_name): print "" if the value is
NULL.
(main): add a couple of utf8 test cases (that still use western
orderings).
* ename/e-name-western.c (e_name_western_str_count_words):
utf8-ize this.
(e_name_western_cleanup_string): same.
(e_name_western_get_words_at_idx): same.
(e_name_western_get_one_prefix_at_str): same.
(e_name_western_get_prefix_at_str): same.
(e_name_western_extract_first): same.
(e_name_western_extract_middle): same.
(e_name_western_extract_nickname): same.
(e_name_western_extract_last): same.
(e_name_western_get_preceding_word): same.
(e_name_western_get_suffix_at_str_end): same.
(e_name_western_detect_backwards): same.
(e_name_western_reorder_asshole): same.
(FINISH_CHECK_MIDDLE_NAME_FOR_CONJUNCTION): same.
(e_name_western_fixup): same.
(e_name_western_parse): validate the string and truncate it if
need be.
svn path=/trunk/; revision=20594
* e-dialog-utils.c (e_notice): Move this here from gal. Use
e_dialog_set_transient_for so it DTRT for out-of-proc components.
(e_notice_with_xid): Like e_notice but with an X Window ID as the
parent window
(e_gnome_dialog_set_parent): Remove this, since it was marked
deprecated and only used in one place.
(e_file_dialog_save): Make this use GtkMessageDialog instead of
GnomeDialog
svn path=/trunk/; revision=20498
2003-03-25 Not Zed <NotZed@Ximian.com>
* Makefile.am: Added e-meta.[ch] to libeutil
* e-meta.[ch]: simple api to implement meta-data for keyed
objects.
svn path=/trunk/; revision=20477
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* e-trie.c (e_trie_search): If the gunichar is 0xfffe, just skip
processing it. Maybe this will fix bug #39900.
(trie_utf8_getc): Removed unused labels to shutup the compiler.
svn path=/trunk/; revision=20448
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* e-trie.c (e_trie_search): If the gunichar is 0xfffe, just skip
processing it. Maybe this will fix bug #39900.
svn path=/trunk/; revision=20436
2003-03-19 Jeffrey Stedfast <fejj@ximian.com>
* e-sexp.h: Fix ESExpClass to never be an empty struct. Also make
ESExp optionally a subclass of GObject rather than GtkObject (not
that we'll probably ever make it so, but for completeness sake?).
2003-03-18 Jeffrey Stedfast <fejj@ximian.com>
* e-trie.c (trie_utf8_getc): Don't use __inline__ as it is not
always defined.
svn path=/trunk/; revision=20360
* ename/e-address-western.c (e_address_western_parse): When
declaring a line to be part of "extended" because we don't know
what else to call it, keep the preceding "\n" so that the address
still looks the same when we reassemble the pieces later. Fixes
handling of non-US addresses
svn path=/trunk/; revision=20306
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
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
2003-03-13 Jeffrey Stedfast <fejj@ximian.com>
* gal/util/e-xml-utils.c (e_xml_save_file): Updated to use
xmlDocDumpFormatMemory() so that we get structured xml rather than
just a clump of xml mess.
svn path=/trunk/; revision=20275
2003-03-06 Jeffrey Stedfast <fejj@ximian.com>
* gal/util/e-iconv.c: Alias gb-2312 to gb2312 also (since iconv
doesn't have "gb-2312"). I wonder if we should capitalise GB2312?
At least my iconv lists it in all caps (although I have the
benefit of having gnu iconv which is case insensitive so I dunno).
(e_strdown, e_strup): New functions to replace
g_ascii_str[down,up]: because the glib versions return a newly
allocated string buf and that is not what we want.
(e_iconv_charset_name): Use the new e_strdown.
(e_iconv_open): Save errno.
svn path=/trunk/; revision=20212
2003-02-25 Jeffrey Stedfast <fejj@ximian.com>
* gal/util/e-iconv.c (locale_parse_lang): New internal function to
parse the locale language code.
(e_iconv_init): Parse and set the locale_lang variable.
(e_iconv_locale_language): Return the locale_lang.
(e_iconv_charset_language): Map some CJKR charsets to a language
code.
svn path=/trunk/; revision=20063
2003-02-20 Not Zed <NotZed@Ximian.com>
* e-account-list.c (e_account_list_get_default): helper to get the
dfault account.
(e_account_list_set_default): helper to set the default account.
(e_account_list_find): Helper to find accounts based on differnet
key types.
(e_account_list_add): helper to add account + emit added event.
(e_account_list_change): helper to emit changed event.
(e_account_list_remove): herlper to remove account + emit changed event.
svn path=/trunk/; revision=20015
2003-02-22 Hans Petter Jansson <hpj@ximian.com>
* e-categories-config.c (e_categories_config_open_dialog_for_entry):
A result of 0 no longer indicates success; GTK_RESPONSE_OK does.
svn path=/trunk/; revision=19998
2003-02-12 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
* gal/util/e-iconv.c: Fix for Solaris Bug "31081 Mailer
sender/Subject/Date fields blank for Solaris 8 ko_KR.EUC locale." and
partial fix for Solaris Bug "32747 additional issues with evolution
beta2 in ja_JP.PCK locale"
svn path=/trunk/; revision=19909
2003-02-11 Not Zed <NotZed@Ximian.com>
* e-trie.c (trie_utf8_getc): Instead of simply ignoring bad chars,
return the sentinal invalid char 0xfffe, so that we properly track
the start of sequences.
svn path=/trunk/; revision=19881
libeutil-static.la depend on libeutil.la so that parallel
compilations work; building them at the same time confuses
libtool.
(e-util-marshal.h, e-util-marshal.c): Use different tmp files so
these rules can happen in parallel.
svn path=/trunk/; revision=19871
* e-request.c (e_request_string): Port to GtkDialog. Strdup the
text returned by GtkEntry after destroying the dialog, not before.
Use gtk_editable_select_region() instead of
gtk_entry_select_region(). Add a little bit of padding to make it
look less crampy and set a default width.
* e-dialog-utils.h (e_gnome_dialog_set_parent): Declare only if
GNOME_DISABLE_DEPRECATED is not #defined.
(e_gnome_warning_dialog_parented): Likewise.
(e_gnome_ok_cancel_dialog_parented): Likewise.
svn path=/trunk/; revision=19657
2003-01-26 Chris Toshok <toshok@ximian.com>
* e-pilot-settings.c (e_pilot_settings_new): ref/sink the pilot
settings to clear up that gtk warning.
svn path=/trunk/; revision=19644
2003-01-24 Hans Petter Jansson <hpj@ximian.com>
* e-categories-config.c (initialize_categories_config): Enable
getting the categories master list from wombat.
(e_categories_config_open_dialog_for_entry): It's now a GtkDialog.
svn path=/trunk/; revision=19625