SF.net SVN: geany: [1494] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Mon Apr 30 16:16:49 UTC 2007


Revision: 1494
          http://svn.sourceforge.net/geany/?rev=1494&view=rev
Author:   ntrel
Date:     2007-04-30 09:16:49 -0700 (Mon, 30 Apr 2007)

Log Message:
-----------
Disable the Build Includes run command field when there is a project
open with a valid run command set.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/build.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-04-30 16:16:15 UTC (rev 1493)
+++ trunk/ChangeLog	2007-04-30 16:16:49 UTC (rev 1494)
@@ -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 at btinternet.com>

Modified: trunk/src/build.c
===================================================================
--- trunk/src/build.c	2007-04-30 16:16:15 UTC (rev 1493)
+++ trunk/src/build.c	2007-04-30 16:16:49 UTC (rev 1494)
@@ -1551,6 +1551,10 @@
 
 		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"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list