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
This commit is contained in:
parent
561bfc46aa
commit
266c9db969
@ -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>
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user