SF.net SVN: geany:[4537] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Fri Jan 22 16:41:04 UTC 2010
Revision: 4537
http://geany.svn.sourceforge.net/geany/?rev=4537&view=rev
Author: ntrel
Date: 2010-01-22 16:41:04 +0000 (Fri, 22 Jan 2010)
Log Message:
-----------
Fix GLib warning & beep if trying to insert multiline comment for a
filetype that doesn't support it.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/callbacks.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-01-22 16:23:12 UTC (rev 4536)
+++ trunk/ChangeLog 2010-01-22 16:41:04 UTC (rev 4537)
@@ -2,6 +2,9 @@
* src/build.c:
Prevent possible segfault in get_build_group().
+ * src/callbacks.c:
+ Fix GLib warning & beep if trying to insert multiline comment for a
+ filetype that doesn't support it.
2010-01-18 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c 2010-01-22 16:23:12 UTC (rev 4536)
+++ trunk/src/callbacks.c 2010-01-22 16:41:04 UTC (rev 4537)
@@ -1394,7 +1394,10 @@
verify_click_pos(doc); /* make sure that the click_pos is valid */
- editor_insert_multiline_comment(doc->editor);
+ if (doc->file_type->comment_open)
+ editor_insert_multiline_comment(doc->editor);
+ else
+ utils_beep();
}
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