SF.net SVN: geany: [429] trunk/src

eht16 at users.sourceforge.net eht16 at xxxxx
Sun Jun 11 11:13:20 UTC 2006


Revision: 429
Author:   eht16
Date:     2006-06-11 04:13:14 -0700 (Sun, 11 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/geany/?rev=429&view=rev

Log Message:
-----------
Fixed an issue, which let the build menu item insensitive once a new file w/o template was opened.
Replaced "/" by G_DIR_SEPARATOR_S.

Modified Paths:
--------------
    trunk/src/highlighting.c
    trunk/src/utils.c
Modified: trunk/src/highlighting.c
===================================================================
--- trunk/src/highlighting.c	2006-06-10 16:22:51 UTC (rev 428)
+++ trunk/src/highlighting.c	2006-06-11 11:13:14 UTC (rev 429)
@@ -349,7 +349,7 @@
 	// load global tags file for C autocompletion
 	if (! app->ignore_global_tags && ! global_c_tags_loaded)
 	{
-		tm_workspace_load_global_tags(GEANY_DATA_DIR "/global.tags");
+		tm_workspace_load_global_tags(GEANY_DATA_DIR G_DIR_SEPARATOR_S "global.tags");
 		global_c_tags_loaded = TRUE;
 	}
 }
@@ -479,7 +479,7 @@
 	// load global tags file for C autocompletion
 	if (! app->ignore_global_tags && ! global_c_tags_loaded)
 	{
-		tm_workspace_load_global_tags(GEANY_DATA_DIR "/global.tags");
+		tm_workspace_load_global_tags(GEANY_DATA_DIR G_DIR_SEPARATOR_S "global.tags");
 		global_c_tags_loaded = TRUE;
 	}
 }

Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c	2006-06-10 16:22:51 UTC (rev 428)
+++ trunk/src/utils.c	2006-06-11 11:13:14 UTC (rev 429)
@@ -1257,10 +1257,13 @@
 	if (idx == -1 || doc_list[idx].file_type == NULL)
 	{
 		gtk_widget_set_sensitive(lookup_widget(app->window, "menu_build1"), FALSE);
+		gtk_menu_item_remove_submenu(GTK_MENU_ITEM(lookup_widget(app->window, "menu_build1")));
 		gtk_widget_set_sensitive(app->compile_button, FALSE);
 		gtk_widget_set_sensitive(app->run_button, FALSE);
 		return;
 	}
+	else
+		gtk_widget_set_sensitive(lookup_widget(app->window, "menu_build1"), TRUE);
 
 	ft = doc_list[idx].file_type;
 


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