CSun Mar 6 22:56:21 2005 Soeren Sandmann <sandmann@redhat.com>

* sfile.c: Generate id's for objects and pointers.
This commit is contained in:
Søren Sandmann Pedersen
2005-03-07 03:58:04 +00:00
parent bff84b87c0
commit d07d245228
4 changed files with 211 additions and 40 deletions

View File

@ -465,13 +465,14 @@ on_reset_clicked (gpointer widget, gpointer data)
static void
on_save_as_clicked (gpointer widget, gpointer data)
{
GError *err = NULL;
Application *app = data;
ensure_profile (app);
/* FIXME */
if (!profile_save (app->profile, "name.profile", NULL))
sorry (NULL, "Couldn't save\n");
if (!profile_save (app->profile, "name.profile", &err))
sorry (NULL, "Couldn't save: %s\n", err->message);
#if 0
sorry (NULL, "Saving profiles is not yet implemented.");