From 6a456fd7b243b73177b1f9ddf9eddc315295b11a Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 6 Jul 2005 20:10:13 +0000 Subject: [PATCH] Return a boolean from timeout func. Fix ported from gedit. 2005-07-06 Christian Persch * shell/ev-metadata-manager.c: (ev_metadata_manager_save): Return a boolean from timeout func. Fix ported from gedit. --- ChangeLog | 6 ++++++ shell/ev-metadata-manager.c | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index db437f8a..8544a85d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-06 Christian Persch + + * shell/ev-metadata-manager.c: (ev_metadata_manager_save): + + Return a boolean from timeout func. Fix ported from gedit. + 2005-07-07 Iñaki Larrañaga * configure.ac: Added "eu" (Basque) to ALL_LINGUAS. diff --git a/shell/ev-metadata-manager.c b/shell/ev-metadata-manager.c index be550c81..712f124f 100644 --- a/shell/ev-metadata-manager.c +++ b/shell/ev-metadata-manager.c @@ -67,7 +67,7 @@ struct _GeditMetadataManager GHashTable *items; }; -static void ev_metadata_manager_save (gpointer data); +static gboolean ev_metadata_manager_save (gpointer data); static GeditMetadataManager *ev_metadata_manager = NULL; @@ -516,7 +516,7 @@ resize_items () } } -static void +static gboolean ev_metadata_manager_save (gpointer data) { xmlDocPtr doc; @@ -524,7 +524,7 @@ ev_metadata_manager_save (gpointer data) gchar *file_name; if (!ev_metadata_manager->modified) - return; + return TRUE; resize_items (); @@ -532,7 +532,7 @@ ev_metadata_manager_save (gpointer data) doc = xmlNewDoc ((const xmlChar *)"1.0"); if (doc == NULL) - return; + return TRUE; /* Create metadata root */ root = xmlNewDocNode (doc, NULL, (const xmlChar *)"metadata", NULL); @@ -549,6 +549,8 @@ ev_metadata_manager_save (gpointer data) xmlFreeDoc (doc); ev_metadata_manager->modified = FALSE; + + return TRUE; } void -- 2.43.5