Commit Graph

323 Commits

Author SHA1 Message Date
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
61d063ada0 If the user has enabled IPv6 support, use getaddrinfo to resolve hostnames
2002-07-30  Jeffrey Stedfast  <fejj@ximian.com>

	* e-host-utils.c (e_gethostbyname_r): If the user has enabled IPv6
	support, use getaddrinfo to resolve hostnames and then manually
	fit the result into a struct hostent.
	(e_gethostbyaddr_r): Same.

svn path=/trunk/; revision=17650
2002-07-31 01:00:37 +00:00
f4b8c08e31 Return the actual count, rather than always 0!
2002-07-25  Not Zed  <NotZed@Ximian.com>

        * e-msgport.c (e_dlist_length): Return the actual count, rather
        than always 0!

svn path=/trunk/; revision=17587
2002-07-25 10:10:35 +00:00
515ebfd45c Install libversit.a so that people compiling against the addressbook can
2002-07-09  Peter Williams  <peterw@ximian.com>

       * libversit/Makefile.am (privlib_LIBRARIES): Install libversit.a so
       that people compiling against the addressbook can do so successfully.

       * Makefile.am: create our *Conf.sh files and dist them and install
       them.

       * configure.in: Define and subst some variables that the Conf.sh
       file need.

 2002-07-08  Peter Williams  <peterw@ximian.com>

       * backend/ebook/Makefile.am: Install libebook-static.la.
       Also change --all-static to -all-static, which is the right flag.

       * backend/pas/Makefile.am: Install the PAS headers in
       $(includedir)/evolution/pas. Install libpas.a


2002-07-08  Peter Williams  <peterw@ximian.com>

       * cal-util/Makefile.am: Install libcal-util-static.la
       and fix the -all-static flag to make it install statically.

       * pcs/Makefile.am: Install libpcs.a and its headers.

       * pcs/cal-backend-util.h: Same sort of include namespacing fix,
       but for pcs.

       * pcs/cal.h:
       * pcs/query.h:
       * pcs/cal-factory.h:
       * pcs/cal-backend.h:
       * pcs/cal-backend-file.h: Same.

2002-07-17  Peter Williams  <peterw@ximian.com>

       * calendar/cal-util/Makefile.am (GTKDOC_LIBS): Because we're
       using libtool as our LD, we can reference .la's and libtool
       will DTRT for us.

       * calendar/cal-client/Makefile.am (GTKDOC_LIBS): Same here.


2002-07-03  Peter Williams  <peterw@ximian.com>

       * Makefile.am: Install libeutil, libeconduit, and libedb3util and
       their headers.


2002-07-08  Peter Williams  <peterw@ximian.com>

       * Makefile.am: Reference the new libefilterbar.a.

 2002-07-12  Peter Williams  <peterw@ximian.com>

       * Makefile.am (INCLUDES): Add -I$(builddir)/libical/src/libical
       for the generated ical.h (some headers rely on this because
       they too get installed.)


2002-07-09  Peter Williams  <peterw@ximian.com>

       * e-timezone-dialog/Makefile.am: Add -I$(top_builddir)/libical/src/libical;
       some headers that we rely on get installed, so they point to the ical.h that
       gets generated and installed; consequently we need to be able to find the
       generated ical.h

       * misc/Makefile.am: Install libemiscwidgets.a and its headers. However,
       break EFilterBar into a separate libefilterbar.a because we don't want
       the installed library to depend on libfilter.

svn path=/trunk/; revision=17496
2002-07-17 21:03:19 +00:00
8d208b95bb Cast to a string type. (term_eval_castint): Cast to an int type.
2002-07-15  Not Zed  <NotZed@Ximian.com>

        * e-sexp.c (term_eval_caststring): Cast to a string type.
        (term_eval_castint): Cast to an int type.
        (symbols[]): Add to symbol table.

	* e-memory.c: Some more profiling for epoolv's.

svn path=/trunk/; revision=17474
2002-07-16 02:41:01 +00:00
ef2ae67bad #include <string.h>
* e-categories-config.c: #include <string.h>

svn path=/trunk/; revision=17395
2002-07-09 20:24:14 +00:00
df61377255 *** empty log message ***
svn path=/trunk/; revision=17358
2002-07-02 23:29:40 +00:00
4f31e9f283 Ñchanged to return a gboolean (TRUE if the icon is found, FALSE if not).
2002-07-02  Rodrigo Moya <rodrigo@ximian.com>

	* e-categories-config.c (e_categories_config_get_icon_for):Ñchanged to
	return a gboolean (TRUE if the icon is found, FALSE if not).

svn path=/trunk/; revision=17356
2002-07-02 23:16:47 +00:00
6467816bac Use connect_while_alive, so we're not called after we've quit. See bug
2002-06-07  Not Zed  <NotZed@Ximian.com>

        * e-dialog-utils.c (e_gnome_warning_dialog_parented):
        (e_gnome_ok_cancel_dialog_parented): Use connect_while_alive, so
        we're not called after we've quit.  See bug #15397.

svn path=/trunk/; revision=17207
2002-06-17 07:06:30 +00:00
839b4be584 Protect against EINTR (irix?), see bug #24086.
2002-06-03  Not Zed  <NotZed@Ximian.com>

        * e-msgport.c (e_msgport_wait): Protect against EINTR (irix?), see
        bug #24086.

svn path=/trunk/; revision=17074
2002-06-03 12:08:38 +00:00
f20ed7f2c6 New.
* e-corba-utils.c (e_safe_corba_string_dup): New.

svn path=/trunk/; revision=16702
2002-05-07 15:09:40 +00:00
95f58c95b6 Destroy our mutex too. (e_thread_new): Add thread to a new list of all
2002-05-06  Not Zed  <NotZed@Ximian.com>

        * e-msgport.c (e_thread_destroy): Destroy our mutex too.
        (e_thread_new): Add thread to a new list of all threads.
        (e_thread_destroy): Remove thread from list of all threads.
        (e_thread_busy): New function, returh true if we're busy somewhere
        processing work.

svn path=/trunk/; revision=16683
2002-05-06 11:46:36 +00:00
c2dbcb18f2 Don't leak the base64 encoded password buffer.
2002-04-19  Jeffrey Stedfast  <fejj@ximian.com>

	* e-passwords.c (e_passwords_get_password): Don't leak the base64
	encoded password buffer.

svn path=/trunk/; revision=16551
2002-04-20 02:25:01 +00:00
b06b0051c5 New wrapper around gethostbyaddr_r if the system has it, else a whole new
2002-04-16  Jeffrey Stedfast  <fejj@ximian.com>

	* e-host-utils.c (e_gethostbyaddr_r): New wrapper around
	gethostbyaddr_r if the system has it, else a whole new
	implementation.

svn path=/trunk/; revision=16483
2002-04-17 01:17:24 +00:00