SF.net SVN: geany-plugins: [64] trunk/geanysendmail

frlan at users.sourceforge.net frlan at xxxxx
Sat Jun 14 09:24:43 UTC 2008


Revision: 64
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=64&view=rev
Author:   frlan
Date:     2008-06-14 02:24:42 -0700 (Sat, 14 Jun 2008)

Log Message:
-----------
GeanySendMail: Little update of used plugin API so its not using deprecated stuff anymore. Thanks to Enrico for the patch.

Modified Paths:
--------------
    trunk/geanysendmail/ChangeLog
    trunk/geanysendmail/src/geanysendmail.c

Modified: trunk/geanysendmail/ChangeLog
===================================================================
--- trunk/geanysendmail/ChangeLog	2008-06-10 12:56:30 UTC (rev 63)
+++ trunk/geanysendmail/ChangeLog	2008-06-14 09:24:42 UTC (rev 64)
@@ -1,3 +1,8 @@
+2008-06-14  Frank Lanitz  <frank at frank.uvena.de>
+
+ * Update of plugin API
+
+
 2008-05-20  Frank Lanitz  <frank at frank.uvena.de>
 
  * Ported build system from spellcheck plugin. Thanks for it.

Modified: trunk/geanysendmail/src/geanysendmail.c
===================================================================
--- trunk/geanysendmail/src/geanysendmail.c	2008-06-10 12:56:30 UTC (rev 63)
+++ trunk/geanysendmail/src/geanysendmail.c	2008-06-14 09:24:42 UTC (rev 64)
@@ -33,7 +33,7 @@
 #include "icon.h"
 #include "pluginmacros.h"
 
-#if HAVE_LOCALE_H
+#ifdef HAVE_LOCALE_H
 # include <locale.h>
 #endif
 
@@ -42,7 +42,7 @@
 GeanyData		*geany_data;
 GeanyFunctions	*geany_functions;
 
-VERSION_CHECK(64)
+PLUGIN_VERSION_CHECK(68)
 
 PLUGIN_SET_INFO(_("GeanySendMail"), _("A little plugin to send the current \
 file as attachment by user's favorite mailer"), "0.4dev", "Frank Lanitz <frank at frank.uvena.de>")
@@ -56,7 +56,6 @@
 
 PLUGIN_KEY_GROUP(sendmail, COUNT_KB)
 
-
 static gchar *config_file = NULL;
 static gchar *mailer = NULL;
 gboolean icon_in_toolbar = FALSE;	
@@ -71,7 +70,7 @@
 #ifdef ENABLE_NLS
 	gchar *locale_dir = NULL;
 
-#if HAVE_LOCALE_H
+#ifdef HAVE_LOCALE_H
 	setlocale(LC_ALL, "");
 #endif
 
@@ -160,7 +159,7 @@
 	int number_of_icons = 0;
 	number_of_icons = gtk_toolbar_get_n_items(GTK_TOOLBAR(main_widgets->toolbar));
 
-	mailbutton_pb = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), 
+	mailbutton_pb = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(),
 					"mail-message-new", size, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
 	
 	/* Fallback if icon is not part of theme */


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list