[anjuta] symbol-db: bgo#616560 - Symbol views do not display names containing especial chars correctly
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] symbol-db: bgo#616560 - Symbol views do not display names containing especial chars correctly
- Date: Sun, 8 Aug 2010 20:32:49 +0000 (UTC)
commit 46dd80d5f44530ef83493e94033afc9e51c4697e
Author: Johannes Schmid <jhs gnome org>
Date: Sun Aug 8 22:12:38 2010 +0200
symbol-db: bgo#616560 - Symbol views do not display names containing especial chars correctly
plugins/symbol-db/symbol-db-model-project.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-model-project.c b/plugins/symbol-db/symbol-db-model-project.c
index 3ac49a7..508722d 100644
--- a/plugins/symbol-db/symbol-db-model-project.c
+++ b/plugins/symbol-db/symbol-db-model-project.c
@@ -19,6 +19,7 @@
#include "symbol-db-engine.h"
#include "symbol-db-model-project.h"
+#include <libanjuta/anjuta-debug.h>
#define SDB_MODEL_PROJECT_SQL " \
SELECT \
@@ -234,8 +235,11 @@ sdb_model_project_get_query_value (SymbolDBModel *model,
DATA_COL_SYMBOL_NAME);
if (ret_value && G_VALUE_HOLDS_STRING (ret_value))
{
+ gchar* escaped;
name = g_value_get_string (ret_value);
- g_string_assign (label, name);
+ escaped = g_markup_escape_text (name, -1);
+ g_string_assign (label, escaped);
+ g_free (escaped);
}
ret_value = gda_data_model_iter_get_value_at (iter,
DATA_COL_SYMBOL_ARGS);
@@ -297,6 +301,7 @@ sdb_model_project_get_query_value (SymbolDBModel *model,
file_name, file_line);
}
}
+ DEBUG_PRINT ("Output string: %s", label->str);
g_value_take_string (value, label->str);
g_string_free (label, FALSE);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]