Commit Graph

502 Commits

Author SHA1 Message Date
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
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
1c34dc5138 Do slightly better error handling for close() and loop until it closes
2002-08-07  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/util/e-xml-utils.c (e_xml_save_file): Do slightly better
	error handling for close() and loop until it closes successfully.

svn path=/trunk/; revision=17733
2002-08-07 18:30:32 +00:00
698c3b1afc Changed to handle saving to a temp file first, this allows us to remove a
2002-08-06  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/util/e-xml-utils.c (e_xml_save_file): Changed to handle
	saving to a temp file first, this allows us to remove a lot of
	duplicate code from everywhere.

svn path=/trunk/; revision=17725
2002-08-07 03:41:19 +00:00
ff5210dad5 Bumped version to 0.19.99.18
2002-08-06  Jeffrey Stedfast  <fejj@ximian.com>

	* configure.in: Bumped version to 0.19.99.18

	* gal/util/e-xml-utils.c (e_xml_save_file): New convenience
	function to save an xmlDocPtr. Replaces xmlSaveFile because
	xmlSaveFile isn't dependable.

svn path=/trunk/; revision=17718
2002-08-06 20:33:22 +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