Disable the Build Includes run command field when there is a project

open with a valid run command set.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1494 ea778897-0a13-0410-b9d1-a72fbfd435f5
master
Nick Treleaven 2007-04-30 16:16:49 +00:00
parent 561bfc46aa
commit 266c9db969
2 changed files with 9 additions and 0 deletions

View File

@ -14,6 +14,11 @@
documents had replacements made.
* src/search.c:
Show number of matches when using Mark command.
* src/utils.h:
Add NZV() macro for checking a char* points to a non-empty string.
* src/build.c:
Disable the Build Includes run command field when there is a project
open with a valid run command set.
2007-04-29 Nick Treleaven <nick.treleaven@btinternet.com>

View File

@ -1551,6 +1551,10 @@ static void show_includes_arguments_gen()
g_object_set_data_full(G_OBJECT(dialog), "includes_entry3",
gtk_widget_ref(entries[2]), (GDestroyNotify)gtk_widget_unref);
// disable the run command if there is a valid project run command set
if (app->project && NZV(app->project->run_cmd))
gtk_widget_set_sensitive(entries[2], FALSE);
}
label = gtk_label_new(_("%f will be replaced by the current filename, e.g. test_file.c\n"