Commit Graph

514 Commits

Author SHA1 Message Date
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
c29a83e4f6 fix parameter list for e_trie_search
svn path=/trunk/; revision=19082
2002-12-10 04:24:49 +00:00
a39c3ef6fb oops, forgot to add the pattern_id arg to e_trie_add
svn path=/trunk/; revision=19081
2002-12-10 04:20:53 +00:00
62398da200 EMemChunk, duh
svn path=/trunk/; revision=19080
2002-12-10 04:17:11 +00:00
74d6e5e8d5 s/E_MemChunk/EMemChunk/
svn path=/trunk/; revision=19079
2002-12-10 04:13:28 +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
1d8a9f2443 Add a "collate" sort callback that uses the new g_collate_compare().
2002-12-05  Jeffrey Stedfast  <fejj@ximian.com>

	* e-table-extras.c (ete_init): Add a "collate" sort callback that
	uses the new g_collate_compare().

2002-12-05  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/util/e-util.c (g_str_compare): Revert back to using just
	strcmp - this fixes bug #33933 but reopens bug #26355.
	(g_collate_compare): New function meant to address the sorting
	required by bug #26335.

svn path=/trunk/; revision=19014
2002-12-05 18:31:30 +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
68b8639345 fix c&p typo.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-reflow.c (e_reflow_class_init): fix c&p typo.

	* gal/widgets/e-categories-master-list-dialog.c: switch to
	GtkDialogism's.

	* gal/widgets/gal-categories.[ch]: same.

	* gal/widgets/e-categories-master-list-dialog.glade: libglade-convert.

	* gal/widgets/e-categories.glade: same.

	* gal/util/e-text-event-processor.[ch]: subclass this from
	GObject.

	* gal/util/e-text-event-processor-emacs-like.[ch]: clean up the
	gtk cruft a bit.

	* gal/e-text/e-text.c (_get_tep): remove the _sink call.
	(e_text_init): same.

	* gal/e-text/e-text-model.[ch]: subclass this from GObject instead
	of GtkObject.

svn path=/trunk/; revision=18808
2002-11-17 05:40:18 +00:00
6e93dd6be8 add lots of marshallers (most, if not all, for etable).
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal/util/e-marshal.list: add lots of marshallers (most, if not
	all, for etable).

	* gal/util/e-text-event-processor-emacs-like.[ch]: lotsa GObject work.

	* gal/util/e-text-event-processor.[ch]: lotsa GObject work.

	* gal/util/e-util.c: same.

	* gal/e-paned/e-hpaned.[ch]: lotsa GObject work.

	* gal/e-paned/e-paned.[ch]: same.

	* gal/e-paned/e-vpaned.[ch]: same.

svn path=/trunk/; revision=18797
2002-11-16 23:31:47 +00:00
b39be53775 deal with EBitArray/ESorter being a GObject now.
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-selection-model-array.c: deal with
	EBitArray/ESorter being a GObject now.

	* gal/widgets/e-selection-model-simple.c: same.

	* gal/util/e-bit-array.[ch]: this derives from GObject now.

	* gal/util/e-sorter.[ch]: same.

	* gal/util/e-sorter-array.[ch]: same.

svn path=/trunk/; revision=18774
2002-11-15 02:47:18 +00:00
d020bcad5c add more marshallers for e-table.
2002-11-13  Chris Toshok  <toshok@ximian.com>

	* gal/util/e-marshal.list: add more marshallers for e-table.

svn path=/trunk/; revision=18750
2002-11-14 01:56:40 +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
88e9abec50 fix a comment (e_localtime_with_offset returns the offset in seconds
after UTC, not minutes)

svn path=/trunk/; revision=18670
2002-11-08 15:19:09 +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
fc0d5a9556 (E_MAKE_X_TYPE): Update for libbonobo 2.0.
svn path=/trunk/; revision=18491
2002-11-01 21:47:55 +00:00
613453b109 merging the gal-2 branch back to the trunk.
merging the gal-2 branch back to the trunk.

svn path=/trunk/; revision=18471
2002-10-31 21:30:57 +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
14432d0716 [ Fixes evolution bug #26355 ] use g_utf8_collate here instead of strcmp.
2002-10-20  Chris Toshok  <toshok@ximian.com>

	[ Fixes evolution bug #26355 ]
	* gal/util/e-util.c (g_str_compare): use g_utf8_collate here
	instead of strcmp.

	* gal/e-text/Makefile.am (e_completion_test_LDADD): reorder so
	that util comes before unicode.

svn path=/trunk/; revision=18400
2002-10-21 15:56:09 +00:00
2d412847ea new helper function, g_strdown with forced C locale (e_iconv_init): use
2002-09-26  Radek Doulik  <rodo@ximian.com>

	* gal/util/e-iconv.c (C_g_strdown): new helper function, g_strdown
	with forced C locale
	(e_iconv_init): use C_g_strdown
	(e_iconv_charset_name): ditto

svn path=/trunk/; revision=18235
2002-09-26 17:34:26 +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
71d8e11c45 Make locale_charset a char *, not const char *. Kills a warning in the
* gal/util/e-iconv.c: Make locale_charset a char *, not
        const char *. Kills a warning in the !HAVE_CODESET case.
        (e_iconv_init): No longer need to cast locale_charset to (char *)
        while mangling it in the HAVE_CODESET case.

        * gal/util/e-xml-utils.c: #include <stdlib.h> for free()

        * gal/widgets/e-categories-master-list-array.c: Likewise

svn path=/trunk/; revision=18129
2002-09-20 00:01:25 +00:00
9b16cf6443 apply patch for 27447 from Matt Avery for a bug in the solaris iconv
2002-09-17  Mike Kestner  <mkestner@ximian.com>

	* gal/util/e-iconv.c : apply patch for 27447 from Matt Avery for
	a bug in the solaris iconv implementation.

svn path=/trunk/; revision=18100
2002-09-17 21:44:31 +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