From 077c7326355dd2881e3a4686ccdf4c2a7446df4f Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 24 Mar 2010 09:56:20 +0000 Subject: Alter UI conditional syntax to be more familiar cpp style, which avoids the need for intltool changes. --- e-util/e-ui-manager.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'e-util/e-ui-manager.c') diff --git a/e-util/e-ui-manager.c b/e-util/e-ui-manager.c index d7c249af06..8c7455a054 100644 --- a/e-util/e-ui-manager.c +++ b/e-util/e-ui-manager.c @@ -97,24 +97,23 @@ ui_manager_filter_ui (EUIManager *ui_manager, express_mode = e_ui_manager_get_express_mode (ui_manager); /* - * Very simple line based pre-processing based on comments: - * \n ... \n\n + * Very simple C style pre-processing in-line in the XML: + * #if [!]EXPRESS\n ... \n#endif\n */ - lines = g_strsplit (ui_definition, "\n", -1); for (ii = 0; lines[ii] != NULL; ii++) { - gchar *cp; - - if ((cp = strstr (lines[ii], "