From 8f59e620cf8437c18297457fa17d157d1ed59cae Mon Sep 17 00:00:00 2001 From: sgranjoux Date: Mon, 18 Feb 2008 21:16:45 +0000 Subject: [PATCH] * plugins/debug-manager/start.c: Avoid a glib warning if no project is loaded git-svn-id: http://svn.gnome.org/svn/anjuta/trunk@3690 1dbfb86a-d425-0410-a06b-cb591aac69f6 --- ChangeLog | 5 +++++ plugins/debug-manager/start.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 279efd3d..b10cb9a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-02-18 Sébastien Granjoux + * plugins/debug-manager/start.c: + Avoid a glib warning if no project is loaded + +2008-02-18 Sébastien Granjoux + * manuals/anjuta-manual/C/debugger.xml: Remove warning about new debugger diff --git a/plugins/debug-manager/start.c b/plugins/debug-manager/start.c index f817c75b..3e862938 100644 --- a/plugins/debug-manager/start.c +++ b/plugins/debug-manager/start.c @@ -930,7 +930,7 @@ dma_set_parameters (DmaStart *this) gtk_combo_box_entry_set_text_column( GTK_COMBO_BOX_ENTRY(target), 0); anjuta_shell_get_value (this->plugin->shell, "project_root_uri", &value, NULL); - project_root_uri = g_value_get_string (&value); + project_root_uri = G_VALUE_HOLDS_STRING (&value) ? g_value_get_string (&value) : NULL; if (project_root_uri != NULL) { /* One project loaded, get all executable target */ -- 2.11.4.GIT