Commit Graph

336 Commits

Author SHA1 Message Date
186d1089e5 New.
* e-config-listener.c (e_config_listener_remove_value): New.

	* e-passwords.c (e_passwords_get_password): Don't look at the
	passwords hash until calling e_passwords_init().

svn path=/trunk/; revision=19253
2003-01-07 15:04:07 +00:00
24ee471cb1 Add this back: Connector needs it, and there's no reason for addressbook
* e-html-utils.c: Add this back: Connector needs it, and there's
	no reason for addressbook and calendar to be using camel to get
	this functionality.

	* Makefile.am (libeutil_la_SOURCES): re-add e-html-utils

svn path=/trunk/; revision=19246
2003-01-06 18:55:31 +00:00
64ea8d10a8 A bunch of fixes to make e-util build with -DG_DISABLE_DEPRECATED and
2003-01-02  Jeffrey Stedfast  <fejj@ximian.com>

	A bunch of fixes to make e-util build with -DG_DISABLE_DEPRECATED
	and -DGTK_DISABLE_DEPRECATED.

svn path=/trunk/; revision=19210
2003-01-02 21:32:14 +00:00
070543d8c2 (e_signal_connect_full_while_alive): Get to
compile.
(e_signal_connect_while_alive): Like.

svn path=/trunk/; revision=19201
2003-01-02 16:54:56 +00:00
128eba1c6d (e_signal_connect_while_alive): New.
(e_signal_connect_full_while_alive): Renamed from
e_gtk_signal_connect_full_while_alive().

svn path=/trunk/; revision=19171
2002-12-19 22:11:01 +00:00
d3d65d9bec Removed. Back to the fiery depths of hell from whence ye came!
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 19:47:33 +00:00
2dd7fb3a14 new function.
2002-12-10  Rodrigo Moya <rodrigo@ximian.com>

	* e-config-listener.[ch] (e_config_listener_remove_dir): new function.

svn path=/trunk/; revision=19086
2002-12-10 17:03:03 +00:00
3b74718def New implementation of an Aho-Corasick trie.
2002-12-09  Jeffrey Stedfast  <fejj@ximian.com>

	* e-trie.c: New implementation of an Aho-Corasick trie.

svn path=/trunk/; revision=19074
2002-12-09 23:16:38 +00:00
2efdf9ac4a track changes to api (e_passwords_init is gone, and several functions take
2002-12-09  Chris Toshok  <toshok@ximian.com>

	* e-passwords.h: track changes to api (e_passwords_init is gone,
	and several functions take the component name as an arg.)

	* e-passwords.c (e_passwords_init): make this static, and allow
	multiple calls.  Also, it no longer takes the component name.
	(e_passwords_shutdown): make this deal with the case where
	e_passwords_init wasn't called (no hashtable), and it no longer
	needs to free component_name.
	(e_passwords_forget_passwords): call e_passwords_init.
	(e_passwords_clear_component_passwords): take component_name as an
	arg, and call e_passwords_init.
	(password_path): take component_name as an arg.
	(e_passwords_remember_password): same, and call e_passwords_init.
	(e_passwords_forget_password): same.
	(e_passwords_get_password): same.
	(e_passwords_add_password): call e_passwords_init.
	(e_passwords_ask_password): take component_name as an arg.

svn path=/trunk/; revision=19071
2002-12-09 21:39:41 +00:00
c43c83145a Allow an e-mutex to be used with standard condition variables.
2002-12-07  Not Zed  <NotZed@Ximian.com>

        * e-msgport.c (e_mutex_cond_wait): Allow an e-mutex to be used
        with standard condition variables.

svn path=/trunk/; revision=19055
2002-12-09 00:23:58 +00:00
2e2fa87f50 change to a more gconf-like path (with underscores, etc.) (ecmlw_save):
2002-12-06  Chris Toshok  <toshok@ximian.com>

	* e-categories-master-list-wombat.c (ecmlw_load): change to a more
	gconf-like path (with underscores, etc.)
	(ecmlw_save): same.

svn path=/trunk/; revision=19051
2002-12-07 05:15:26 +00:00
57d76d9b31 If the language is something like "fr_FR", return both "fr_FR" and "fr" in
* e-lang-utils.c (e_get_language_list): If the language is
	something like "fr_FR", return both "fr_FR" and "fr" in the list.
	Oaf doesn't consider "fr_FR" to match a "-fr" translation.

svn path=/trunk/; revision=18926
2002-11-26 17:20:16 +00:00
554b987da7 Added an optional nspr pipe field. (e_msgport_new): Init nspr pipe to
2002-11-22  Not Zed  <NotZed@Ximian.com>

	* e-msgport.c (EMsgPort): Added an optional nspr pipe field.
	(e_msgport_new): Init nspr pipe to null.
	(e_msgport_destroy): close prfiledesc's if they're open.
	(e_msgport_prfd): get the prfiledesc to wait asynchronously on.
	(e_msgport_put): Write notify to nspr pipe if it exists.
	(e_msgport_wait): poll nspr pipe fd if it is set, and the pipe fd
	isn't.
	(e_msgport_get): skim off a notify byte on the pr pipe if set.
	(): Include config.h, and nspr stuff if HAVE_NSS is set.

svn path=/trunk/; revision=18893
2002-11-22 22:28:49 +00:00
777954dd8a (e_config_listener_get_string_with_default):
Make sure we don't use a string value from a GConfValue that got
freed.

svn path=/trunk/; revision=18743
2002-11-13 19:54:55 +00:00
becc84e5c5 add e-password.h (libeutil_la_SOURCES): add e-password.c
2002-11-12  Chris Toshok  <toshok@ximian.com>

	* Makefile.am
	(eutilinclude_HEADERS): add e-password.h
	(libeutil_la_SOURCES): add e-password.c

	* e-passwords.[ch]: port this to gnome2's gnome-config-private.

svn path=/trunk/; revision=18727
2002-11-12 23:05:06 +00:00
bffbf68143 (add_key): g_strdup() the value in the case
of a string value.

svn path=/trunk/; revision=18708
2002-11-11 19:53:06 +00:00
46612a17c3 Re-add e-proxy.c to the build.
2002-11-11  Jeffrey Stedfast  <fejj@ximian.com>

	* Makefile.am: Re-add e-proxy.c to the build.

svn path=/trunk/; revision=18693
2002-11-11 15:35:26 +00:00
0a9f515185 add e-categories-config.h and e-categories-master-list-wombat.h
2002-11-08  Chris Toshok  <toshok@ximian.com>

	* Makefile.am (eutilinclude_HEADERS): add e-categories-config.h
	and e-categories-master-list-wombat.h
	(libeutil_la_SOURCES): add e-categories-master-list-wombat.c

	* e-categories-master-list-wombat.[ch]: port work.

svn path=/trunk/; revision=18683
2002-11-09 03:45:48 +00:00
4f21ad07f0 pass extra pixbuf param
2002-11-07  JP Rosevear  <jpr@ximian.com>

	* e-categories-config.c (e_categories_config_get_icon_for): pass
	extra pixbuf param

	* e-categories-config.h: use G_*_DECLS

	* e-dialog-utils.c (save_ok): update g_file_test params

	* Makefile.am: Compile some additional files

svn path=/trunk/; revision=18646
2002-11-07 22:37:32 +00:00
e27effde19 init err to NULL so if there isn't an error we aren't left with an
2002-11-06  Chris Toshok  <toshok@ximian.com>

	* e-config-listener.c (e_config_listener_set_boolean): init err to
	NULL so if there isn't an error we aren't left with an unitialized
	GError.  Fixes crash.
	(e_config_listener_set_float): same.
	(e_config_listener_set_long): same.
	(e_config_listener_set_string): same.

svn path=/trunk/; revision=18593
2002-11-06 08:30:39 +00:00
f8bad51867 ported to GObject.
2002-11-05  Rodrigo Moya <rodrigo@ximian.com>

	* e-component-listener.[ch]: ported to GObject.

	* Makefile.am: re-enabled e-component-listener.[ch]

svn path=/trunk/; revision=18546
2002-11-05 11:37:58 +00:00
f3608fedd8 new simpler functions, without a default value.
2002-11-03  Rodrigo Moya <rodrigo@ximian.com>

	* e-config-listener.[ch] (e_config_listener_get_boolean,
	e_config_listener_get_float, e_config_listener_get_long,
	e_config_listener_get_string): new simpler functions, without
	a default value.

svn path=/trunk/; revision=18516
2002-11-03 23:22:00 +00:00
b4afa536b3 Removed unused variable. (e_config_listener_get_long_with_default):
* e-config-listener.c (e_config_listener_get_float_with_default):
Removed unused variable.
(e_config_listener_get_long_with_default): Likewise.
(e_config_listener_get_string_with_default): Likewise.

* Makefile.am: Compile e-config-listener.[ch].

svn path=/trunk/; revision=18507
2002-11-03 16:16:11 +00:00
805e75e7d9 add marshal building stuff, add e-util-marshal.c to SOURCES, and add
2002-11-02  Chris Toshok  <toshok@ximian.com>

	* Makefile.am: add marshal building stuff, add e-util-marshal.c to
	SOURCES, and add e-util-marshal.list to EXTRA_DIST.

	* e-util-marshal.list: add marshallers for e-util.

	* e-list.c: convert to GObject.

	* e-list.h: convert to GObject.

	* e-iterator.c: convert to GObject.

	* e-iterator.h: convert to GObject.

	* e-list-iterator.c: convert to GObject.

	* e-list-iterator.h: convert to GObject.

	* .cvsignore: ignore e-util-marshal.[ch]

svn path=/trunk/; revision=18504
2002-11-03 05:46:46 +00:00
9c73777f22 First big sync of my GNOME 2 porting work (incomplete, and still
pretty broken).

Weeeeee!

svn path=/trunk/; revision=18503
2002-11-02 08:25:03 +00:00
baff6e4ee4 ported to GConf and GObject.
2002-11-02  Rodrigo Moya <rodrigo@ximian.com>

	* e-config-listener.[ch]: ported to GConf and GObject.

svn path=/trunk/; revision=18500
2002-11-02 03:00:30 +00:00
e5f0f54052 compilation fixes for GNOME 2 porting.
2002-11-01  Rodrigo Moya <rodrigo@ximian.com>

	* e-config-listener.[ch]:
	* e-component-listener.[ch]: compilation fixes for GNOME 2 porting.

svn path=/trunk/; revision=18494
2002-11-02 00:18:48 +00:00
96a2f2dd49 Fixes #32764
2002-10-24  Rodrigo Moya <rodrigo@ximian.com>

	Fixes #32764

	* e-config-listener.c (add_key): store the value returned by
	bonobo_event_source_client_add_listener, so that we can remove it
	later, when freeing the key structure.
	(free_key_hash): remove listener.
	(e_config_listener_set_boolean):
	(e_config_listener_set_float):
	(e_config_listener_set_long):
	(e_config_listener_set_string): only set the cache values if there's
	no exception.
	(e_config_listener_destroy): remove all keys before unrefing the db
	component.

svn path=/trunk/; revision=18429
2002-10-24 22:08:01 +00:00
14a1e40964 Cast chars to unsigned char before passing to ctype macros since they are
* ename/e-name-western.c: Cast chars to unsigned char before
	passing to ctype macros since they are not defined on negative
	numbers. Fixes parsing problems with names with accented
	characters on Solaris. (At least part of #32146)

svn path=/trunk/; revision=18427
2002-10-24 19:32:55 +00:00
a6f94541f4 added a comment about the fix for #30918.
2002-09-25  Rodrigo Moya <rodrigo@ximian.com>

	* e-component-listener.c (ping_component_callback): added a comment
	about the fix for #30918.

svn path=/trunk/; revision=18214
2002-09-25 16:57:00 +00:00
b6adbdba7d gtk_object_ref the component listener before emitting the "component_died"
2002-09-23  Rodrigo Moya <rodrigo@ximian.com>

	* e-component-listener.c (ping_component_callback): gtk_object_ref the
	component listener before emitting the "component_died" signal, since
	in most cases, the component listener will be destroyed in the
	callbacks for that signal.

svn path=/trunk/; revision=18164
2002-09-23 11:49:37 +00:00
8aa08c6316 Fix some non-ANSI switch statements
* e-config-listener.c: Fix some non-ANSI switch statements

        * e-path.c: #include <sys/types.h> for OS X

svn path=/trunk/; revision=18156
2002-09-22 22:53:21 +00:00
2f31a96e35 [ Fixes #27546 ] add "di" to e_name_western_complex_last_table.
2002-09-11  Chris Toshok  <toshok@ximian.com>

	[ Fixes #27546 ]
	* ename/e-name-western-tables.h
	(e_name_western_complex_last_table): add "di" to
	e_name_western_complex_last_table.

svn path=/trunk/; revision=18054
2002-09-12 04:22:40 +00:00
9c2d49aa46 update the local copy (if we've got one) so that we don't return values if
2002-09-05  Rodrigo Moya <rodrigo@ximian.com>

	* e-config-listener.c (e_config_listener_set_boolean,
	e_config_listener_set_float, e_config_listener_set_long,
	e_config_listener_set_string): update the local copy (if we've
	got one) so that we don't return values if asked before getting
	the change notification.

svn path=/trunk/; revision=17985
2002-09-05 11:23:42 +00:00
4270c51a98 New. Like mktime(3), but assumes the input time is UTC.
* e-time-utils.c (e_mktime_utc): New. Like mktime(3), but assumes
	the input time is UTC.
	(e_localtime_with_offset): New. Like localtime_r(3), but also
	returns an offset from UTC.

svn path=/trunk/; revision=17971
2002-09-04 19:13:14 +00:00
a202ae6795 Don't call g_list_foreach with the free func if the free func is NULL.
* e-list.c (e_list_destroy): Don't call g_list_foreach with the
	free func if the free func is NULL.

svn path=/trunk/; revision=17928
2002-08-29 19:16:10 +00:00
bd8e7f9978 Convert file: urls too. Fixes bug #29557.
2002-08-28  Jeffrey Stedfast  <fejj@ximian.com>

	* e-html-utils.c (e_text_to_html_full): Convert file: urls
	too. Fixes bug #29557.

svn path=/trunk/; revision=17899
2002-08-28 19:51:44 +00:00
f50e61ffab New convenience function to initialise the proxy settings for soup to use.
2002-08-28  Jeffrey Stedfast  <fejj@ximian.com>

	* e-proxy.[c,h] (e_proxy_init): New convenience function to
	initialise the proxy settings for soup to use.

svn path=/trunk/; revision=17896
2002-08-28 19:02:16 +00:00
7414b86684 new functions. (property_change_cb, add_key): added support for FLOAT
2002-08-27  Rodrigo Moya <rodrigo@ximian.com>

	* e-config-listener.c[ch] (e_config_listener_get_float_with_default,
	  e_config_listener_set_boolean, e_config_listener_set_float): new
	functions.
	(property_change_cb, add_key): added support for FLOAT values.
	(e_config_listener_set_string): free strings before returning.

svn path=/trunk/; revision=17873
2002-08-27 14:10:42 +00:00
c19d5d6d8b If gdk_window_foreign_new returned NULL, we're probably screwed, but try
2002-08-26  Peter Williams  <peterw@ximian.com>

	* e-dialog-utils.c (set_transient_for_gdk): If gdk_window_foreign_new
	returned NULL, we're probably screwed, but try to avoid a segfault.
	(Preemptive fix suggested by kmaraas).

svn path=/trunk/; revision=17866
2002-08-26 19:33:49 +00:00
c0a5e7b789 call g_strdup in the correct place, or we'll return the internal copy.
2002-08-26  Rodrigo Moya <rodrigo@ximian.com>

	* e-config-listener.c (e_config_listener_get_string_with_default):
	call g_strdup in the correct place, or we'll return the internal copy.

svn path=/trunk/; revision=17860
2002-08-26 16:14:35 +00:00
f95a463451 only set the key if the value is different from what we've already read
2002-08-26  Rodrigo Moya <rodrigo@ximian.com>

	* e-config-listener.c (e_config_listener_set_long): only set the key
	if the value is different from what we've already read from the
	database, to avoid extra change notifications.
	(e_config_listener_set_string): likewise.

svn path=/trunk/; revision=17858
2002-08-26 15:55:28 +00:00
c0ffa42483 added "key_changed" signal to class. (property_change_cb): emit
2002-08-22  Rodrigo Moya <rodrigo@ximian.com>

	* e-config-listener.[ch]: added "key_changed" signal to class.
	(property_change_cb): emit "key_changed" signal.
	(e_config_listener_set_long): new function.
	(e_config_listener_get_long_with_default): new function.

svn path=/trunk/; revision=17847
2002-08-23 10:54:49 +00:00
f726a2a5d8 Remove an e_path directory, and its parent "subfolders" dir if it's now
* e-path.c (e_path_rmdir): Remove an e_path directory, and its
	parent "subfolders" dir if it's now empty.

svn path=/trunk/; revision=17837
2002-08-22 16:10:47 +00:00
cd45f4c590 Add bug fix number.
svn path=/trunk/; revision=17836
2002-08-22 15:42:56 +00:00
51e6a4e0ac if the year was two digits, add the current century
2002-08-22  JP Rosevear  <jpr@ximian.com>

	* e-time-utils.c (e_time_parse_date): if the year was two digits,
	add the current century

svn path=/trunk/; revision=17833
2002-08-22 15:39:41 +00:00
809fdd0e3e new class for config database access and monitoring.
2002-08-16  Rodrigo Moya <rodrigo@ximian.com>

	* e-config-listener.[ch]: new class for config database access and
	monitoring.

	* Makefile.am: added new files.

svn path=/trunk/; revision=17816
2002-08-20 14:04:03 +00:00
83c35905a8 new class for controlling a component, to detect when it dies.
2002-08-14  Rodrigo Moya <rodrigo@ximian.com>

	* e-component-listener.[ch]: new class for controlling a component,
	to detect when it dies.

svn path=/trunk/; revision=17786
2002-08-16 12:45:59 +00:00
fb410a4f98 Remove the logic that assumes "Rupert> " is a citation, since it misfires
* e-html-utils.c (is_citation): Remove the logic that assumes
	"Rupert> " is a citation, since it misfires more often than it
	hits.

svn path=/trunk/; revision=17696
2002-08-05 13:39:16 +00:00
3a2c51d2a3 Don't use "isprint(c)" to mean "c >= 32 && c < 128" since it doesn't in
* e-html-utils.c (is_addr_char, is_trailing_garbage): Don't use
	"isprint(c)" to mean "c >= 32 && c < 128" since it doesn't in most
	locales.
	(is_domain_name_char): new macro for dns-valid characters
	(email_address_extract): Use is_domain_name_char rather than
	is_addr_char for the part after the @.

svn path=/trunk/; revision=17655
2002-07-31 19:02:02 +00:00