[anjuta] debug-manager: Avoid accumulating watches when a project is reopened
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] debug-manager: Avoid accumulating watches when a project is reopened
- Date: Tue, 13 Sep 2011 20:22:59 +0000 (UTC)
commit b3547eacc96fd95098c0ce5445bb3a36d82b810f
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Sun Sep 11 16:38:02 2011 +0200
debug-manager: Avoid accumulating watches when a project is reopened
plugins/debug-manager/watch.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/debug-manager/watch.c b/plugins/debug-manager/watch.c
index 26f5975..b58a6db 100644
--- a/plugins/debug-manager/watch.c
+++ b/plugins/debug-manager/watch.c
@@ -386,7 +386,7 @@ on_debug_tree_drag_data_received (GtkWidget *widget,
if (signal_data != NULL)
{
- var.expression = signal_data;
+ var.expression = (gchar *)signal_data;
debug_tree_add_watch (((ExprWatch *)user_data)->debug_tree, &var, FALSE);
}
@@ -541,7 +541,7 @@ on_session_load (AnjutaShell *shell, AnjutaSessionPhase phase, AnjutaSession *se
if (phase != ANJUTA_SESSION_PHASE_NORMAL)
return;
- /* debug_tree_remove_all (ew->debug_tree); */
+ debug_tree_remove_all (ew->debug_tree);
list = anjuta_session_get_string_list (session, "Debugger", "Watch");
if (list != NULL)
debug_tree_add_full_watch_list (ew->debug_tree, list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]