From a42135f8cb9e8c442e57c9990cb8e8ed7ced4412 Mon Sep 17 00:00:00 2001 From: sgranjoux Date: Sun, 20 Jul 2008 19:36:09 +0000 Subject: [PATCH] * plugins/build-basic-autotools/build-basic-autotools.c: Fix #522825: Opening files from shell disable build->compile menu git-svn-id: http://svn.gnome.org/svn/anjuta/trunk@4092 1dbfb86a-d425-0410-a06b-cb591aac69f6 --- ChangeLog | 5 +++++ plugins/build-basic-autotools/build-basic-autotools.c | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 55bdd670..5a657bc9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-07-20 Sébastien Granjoux + * plugins/build-basic-autotools/build-basic-autotools.c: + Fix #522825: Opening files from shell disable build->compile menu + +2008-07-20 Sébastien Granjoux + * plugins/build-basic-autotools/configuration-list.c, plugins/build-basic-autotools/configuration-list.h, plugins/build-basic-autotools/build-options.c: diff --git a/plugins/build-basic-autotools/build-basic-autotools.c b/plugins/build-basic-autotools/build-basic-autotools.c index d97102d8..1e052478 100644 --- a/plugins/build-basic-autotools/build-basic-autotools.c +++ b/plugins/build-basic-autotools/build-basic-autotools.c @@ -2242,13 +2242,15 @@ update_module_ui (BasicAutotoolsPlugin *bb_plugin) gchar *filename= NULL; gchar *module = NULL; gchar *label; + gboolean has_file = FALSE; gboolean has_makefile= FALSE; ui = anjuta_shell_get_ui (ANJUTA_PLUGIN (bb_plugin)->shell, NULL); DEBUG_PRINT ("Updating module UI"); - - if (bb_plugin->current_editor_filename != NULL) + + has_file = bb_plugin->current_editor_filename != NULL; + if (has_file) { gchar *dirname; gchar *build_dirname; @@ -2288,7 +2290,7 @@ update_module_ui (BasicAutotoolsPlugin *bb_plugin) action = anjuta_ui_get_action (ui, "ActionGroupBuild", "ActionBuildCompileFile"); label = g_strdup_printf (filename ? _("Co_mpile (%s)") : _("Co_mpile"), filename); - g_object_set (G_OBJECT (action), "sensitive", has_makefile, + g_object_set (G_OBJECT (action), "sensitive", has_file, "label", label, NULL); g_free (label); -- 2.11.4.GIT