Revision: 1238 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1238&view=re... Author: ctabin Date: 2010-04-11 15:46:52 +0000 (Sun, 11 Apr 2010)
Log Message: ----------- Warnings fixed in pretty-printer plugin
Modified Paths: -------------- trunk/geany-plugins/pretty-printer/src/ConfigUI.c trunk/geany-plugins/pretty-printer/src/PluginEntry.c
Modified: trunk/geany-plugins/pretty-printer/src/ConfigUI.c =================================================================== --- trunk/geany-plugins/pretty-printer/src/ConfigUI.c 2010-04-11 15:23:12 UTC (rev 1237) +++ trunk/geany-plugins/pretty-printer/src/ConfigUI.c 2010-04-11 15:46:52 UTC (rev 1238) @@ -27,6 +27,8 @@ if (prettyPrintingOptions == NULL) { prettyPrintingOptions = createDefaultPrettyPrintingOptions(); } //TODO create configuration widget + + return NULL; }
void saveSettings()
Modified: trunk/geany-plugins/pretty-printer/src/PluginEntry.c =================================================================== --- trunk/geany-plugins/pretty-printer/src/PluginEntry.c 2010-04-11 15:23:12 UTC (rev 1237) +++ trunk/geany-plugins/pretty-printer/src/PluginEntry.c 2010-04-11 15:46:52 UTC (rev 1238) @@ -39,7 +39,7 @@
//declaration of the functions static void xml_format(GtkMenuItem *menuitem, gpointer gdata); -static void config_closed(GtkWidget* configWidget, gint response, gpointer data); +//static void config_closed(GtkWidget* configWidget, gint response, gpointer data); void plugin_init(GeanyData *data); void plugin_cleanup(void);
@@ -78,14 +78,15 @@
//========================================== LISTENERS ===================================================================
-void config_closed(GtkWidget* configWidget, gint response, gpointer gdata) +//TODO uncomment when configuration widget ready +/*void config_closed(GtkWidget* configWidget, gint response, gpointer gdata) { //if the user clicked OK or APPLY, then save the settings if (response == GTK_RESPONSE_OK || response == GTK_RESPONSE_APPLY) { saveSettings(); } -} +}*/
void xml_format(GtkMenuItem* menuitem, gpointer gdata) { @@ -129,7 +130,7 @@ sci_set_text(sco, buffer);
//set the line - int xOffset = scintilla_send_message(sco, SCI_GETXOFFSET, NULL, NULL); + int xOffset = scintilla_send_message(sco, SCI_GETXOFFSET, 0, 0); scintilla_send_message(sco, SCI_LINESCROLL, -xOffset, 0); //TODO update with the right function-call for geany-0.19
//sets the type
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org