aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-03-21 10:53:55 +0800
committerChris Lahey <clahey@src.gnome.org>2000-03-21 10:53:55 +0800
commitf60b9107e9d0a10bc54307c279f789c26a794736 (patch)
treef4912fca26063ba92abbddf3240f7a38d4ed8651 /addressbook
parent5fe5e0f7431c00d4438eaed35825cb6a33dbe05f (diff)
downloadgsoc2013-evolution-f60b9107e9d0a10bc54307c279f789c26a794736.tar.gz
gsoc2013-evolution-f60b9107e9d0a10bc54307c279f789c26a794736.tar.zst
gsoc2013-evolution-f60b9107e9d0a10bc54307c279f789c26a794736.zip
Added the ability to access the text event processor.
2000-03-20 Christopher James Lahey <clahey@helixcode.com> * widgets/e-text/e-text.c, widgets/e-text/e-text.h: Added the ability to access the text event processor. 2000-03-13 Christopher James Lahey <clahey@helixcode.com> * addressbook/demo/addressbook-widget.c: Made the addressbook component look in the users home directory for the addressbook.xml file. svn path=/trunk/; revision=2125
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/demo/addressbook-widget.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/addressbook/demo/addressbook-widget.c b/addressbook/demo/addressbook-widget.c
index 4efca22e3f..1252f9993c 100644
--- a/addressbook/demo/addressbook-widget.c
+++ b/addressbook/demo/addressbook-widget.c
@@ -79,25 +79,33 @@ static ETestModel *
get_model(char *filename)
{
ETestModel *model;
+ gboolean free_filename = FALSE;
- if ( filename == NULL )
- filename = "addressbook.xml";
+ if ( filename == NULL ) {
+ filename = gnome_util_prepend_user_home("addressbook.xml");
+ free_filename = TRUE;
+ }
if ( models == NULL ) {
models = g_hash_table_new(g_str_hash, g_str_equal);
}
model = g_hash_table_lookup(models, filename);
- if ( model )
+ if ( model ) {
+ if (free_filename)
+ g_free(filename);
return model;
+ }
- filename = g_strdup(filename);
+ if ( !free_filename )
+ filename = g_strdup(filename);
model = E_TEST_MODEL(e_test_model_new(filename));
g_hash_table_insert(models,
filename, model);
gtk_signal_connect(GTK_OBJECT(model), "destroy",
GTK_SIGNAL_FUNC(remove_model), filename);
+
return model;
}
r> * Upgrade to squeezecenter 7.2.1. Fixes scanner crashes, etc:brooks2008-11-113-21/+10 * Fix the LastFM plugin. It was broken due to the FreeBSD version of JSON::XSbrooks2008-10-072-1/+24 * Fix the plist.brooks2008-09-032-9/+45 * Upgrade to squeezecenter 7.2 which has:brooks2008-09-035-15/+14 * Upgrade to 7.1, mostly a bugfix release.brooks2008-08-124-59/+151 * Remove most bare references to "squeezecenter" in files subject tobrooks2008-06-253-22/+23 * Fix the softsqueeze wrapper script. The path was wrong in general and morebrooks2008-06-222-2/+2 * Add CPAN/Encode to the list of directories we exclude since the version ofbrooks2008-06-182-46/+34 * Actually update to 7.0.1 including referencing the right distfile.brooks2008-06-172-25/+8 * Upgrade to squeezecenter 7.0.1.brooks2008-06-123-15/+7 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * Don't install copies of GD files they get picked up before the portbrooks2008-05-132-7/+3 * The pkg-install script incorrectly listed the pid file path asbrooks2008-05-012-3/+3 * Install squeezecenter with more normal permissions using the COPYTREE_SHAREbrooks2008-04-043-50/+45 * Don't install fragments of Compress/Zlib and JSON. They conflict withbrooks2008-04-032-6/+3 * Introduce a port of SqueezeCenter 7.0.0, the latest release of the softwarebrooks2008-04-0314-384/+2829 * Depend on the ports version of p5-YAML-Syck instead of using the one frombrooks2008-03-282-19/+5 * Upgrade to slimserver 2.5.4, a minor bugfix release. See the releasebrooks2007-09-012-7/+5 * Upgrade to slimserver 6.5.3 see change log for details.brooks2007-07-156-23/+34 * Upgrade to 6.5.2. Basicly a bugfix release. See the changelog forbrooks2007-06-08