diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/egg/egg-toolbars-model.c | 6 | ||||
-rwxr-xr-x | lib/egg/egg-toolbars-model.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/egg/egg-toolbars-model.c b/lib/egg/egg-toolbars-model.c index 091604087..7fbafe99c 100755 --- a/lib/egg/egg-toolbars-model.c +++ b/lib/egg/egg-toolbars-model.c @@ -431,7 +431,7 @@ parse_toolbars (EggToolbarsModel *t, } } -void +gboolean egg_toolbars_model_load (EggToolbarsModel *t, const char *xml_file) { @@ -444,7 +444,7 @@ egg_toolbars_model_load (EggToolbarsModel *t, if (doc == NULL) { g_warning ("Failed to load XML data from %s", xml_file); - return; + return FALSE; } root = xmlDocGetRootElement (doc); @@ -452,6 +452,8 @@ egg_toolbars_model_load (EggToolbarsModel *t, parse_toolbars (t, root->children); xmlFreeDoc (doc); + + return TRUE; } static char * diff --git a/lib/egg/egg-toolbars-model.h b/lib/egg/egg-toolbars-model.h index baf4b6ac6..0f3b2d31a 100755 --- a/lib/egg/egg-toolbars-model.h +++ b/lib/egg/egg-toolbars-model.h @@ -87,7 +87,7 @@ struct EggToolbarsModelClass GType egg_toolbars_model_get_type (void); EggToolbarsModel *egg_toolbars_model_new (void); -void egg_toolbars_model_load (EggToolbarsModel *t, +gboolean egg_toolbars_model_load (EggToolbarsModel *t, const char *xml_file); void egg_toolbars_model_save (EggToolbarsModel *t, const char *xml_file, |