SF.net SVN: geany:[5598] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Thu Mar 17 12:54:42 UTC 2011
Revision: 5598
http://geany.svn.sourceforge.net/geany/?rev=5598&view=rev
Author: ntrel
Date: 2011-03-17 12:54:41 +0000 (Thu, 17 Mar 2011)
Log Message:
-----------
Fix GLib warning when creating classes and no documents are open
(patch by Matthew Brush, thanks).
Modified Paths:
--------------
trunk/ChangeLog
trunk/plugins/classbuilder.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-03-17 12:49:21 UTC (rev 5597)
+++ trunk/ChangeLog 2011-03-17 12:54:41 UTC (rev 5598)
@@ -7,6 +7,9 @@
* THANKS, plugins/classbuilder.c:
Improve Class Builder plugin dialog UI using a table (patch by
Matthew Brush, thanks).
+ * plugins/classbuilder.c:
+ Fix GLib warning when creating classes and no documents are open
+ (patch by Matthew Brush, thanks).
2011-03-15 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
Modified: trunk/plugins/classbuilder.c
===================================================================
--- trunk/plugins/classbuilder.c 2011-03-17 12:49:21 UTC (rev 5597)
+++ trunk/plugins/classbuilder.c 2011-03-17 12:54:41 UTC (rev 5598)
@@ -1040,16 +1040,16 @@
/* only create the files if the filename is not empty */
if (! utils_str_equal(class_info->source, ""))
{
+ doc = document_new_file(class_info->source, NULL, NULL);
text = get_template_class_source(class_info);
- doc = document_new_file(class_info->source, NULL, NULL);
editor_insert_text_block(doc->editor, text, 0, -1, 0, TRUE);
g_free(text);
}
if (! utils_str_equal(class_info->header, "") && class_info->type != GEANY_CLASS_TYPE_PHP)
{
+ doc = document_new_file(class_info->header, NULL, NULL);
text = get_template_class_header(class_info);
- doc = document_new_file(class_info->header, NULL, NULL);
editor_insert_text_block(doc->editor, text, 0, -1, 0, TRUE);
g_free(text);
}
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