Revision: 893 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=893&view=rev Author: ctabin Date: 2009-08-11 22:22:32 +0000 (Tue, 11 Aug 2009)
Log Message: ----------- Fixed a wrong parameter for g_debug
Modified Paths: -------------- trunk/geany-plugins/pretty-printer/src/Plugin.c trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c
Modified: trunk/geany-plugins/pretty-printer/src/Plugin.c =================================================================== --- trunk/geany-plugins/pretty-printer/src/Plugin.c 2009-08-11 22:16:27 UTC (rev 892) +++ trunk/geany-plugins/pretty-printer/src/Plugin.c 2009-08-11 22:22:32 UTC (rev 893) @@ -43,7 +43,7 @@
//plugin information PLUGIN_VERSION_CHECK(130) -PLUGIN_SET_INFO("XML PrettyPrinter", "Formats an XML and make it readable for a human.", +PLUGIN_SET_INFO("XML PrettyPrinter", "Formats an XML and make it readable for human.", "1.0", "Cédric Tabin - http://www.astorm.ch");
static GtkWidget *main_menu_item = NULL; @@ -79,7 +79,7 @@ int result = processXMLPrettyPrinting(&buffer, &length, prettyPrintingOptions); if (result != 0) { - dialogs_show_msgbox(GTK_MESSAGE_ERROR, "Unable to process PrettyPrinting on the specified XML because some features are not supported."); + dialogs_show_msgbox(GTK_MESSAGE_ERROR, "Unable to process PrettyPrinting on the specified XML because some features are not supported.\n\nSee Help > Debug messages for more details..."); return; }
@@ -115,6 +115,8 @@ gtk_widget_destroy(main_menu_item); }
+//TODO create configuration widget +/* GtkWidget* plugin_configure(GtkDialog * dialog) { //default printing options @@ -156,3 +158,4 @@ gtk_widget_show_all(globalBox); return globalBox; } +*/
Modified: trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c =================================================================== --- trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c 2009-08-11 22:16:27 UTC (rev 892) +++ trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c 2009-08-11 22:22:32 UTC (rev 893) @@ -836,10 +836,10 @@
void printDebugStatus() { - g_debug(stderr, "\n===== INPUT =====\n%s\n=================\ninputLength = %d\ninputIndex = %d\noutputLength = %d\noutputIndex = %d\n", - inputBuffer, - inputBufferLength, - inputBufferIndex, - xmlPrettyPrintedLength, - xmlPrettyPrintedIndex); + g_debug("\n===== INPUT =====\n%s\n=================\ninputLength = %d\ninputIndex = %d\noutputLength = %d\noutputIndex = %d\n", + inputBuffer, + inputBufferLength, + inputBufferIndex, + xmlPrettyPrintedLength, + xmlPrettyPrintedIndex); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org