Revision: 86 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=86&view=rev Author: frlan Date: 2008-06-25 15:42:47 -0700 (Wed, 25 Jun 2008)
Log Message: ----------- GeanySendMail: Update of used plugin API to v71
Modified Paths: -------------- trunk/geanysendmail/ChangeLog trunk/geanysendmail/src/geanysendmail.c
Modified: trunk/geanysendmail/ChangeLog =================================================================== --- trunk/geanysendmail/ChangeLog 2008-06-25 08:20:08 UTC (rev 85) +++ trunk/geanysendmail/ChangeLog 2008-06-25 22:42:47 UTC (rev 86) @@ -1,3 +1,8 @@ +2008-06-26 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> + + * Update of used plugin API to v71. + + 2008-06-16 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* Make plugin also work together with GTK-2.8. Thanks to Nick for
Modified: trunk/geanysendmail/src/geanysendmail.c =================================================================== --- trunk/geanysendmail/src/geanysendmail.c 2008-06-25 08:20:08 UTC (rev 85) +++ trunk/geanysendmail/src/geanysendmail.c 2008-06-25 22:42:47 UTC (rev 86) @@ -42,7 +42,7 @@ GeanyData *geany_data; GeanyFunctions *geany_functions;
-PLUGIN_VERSION_CHECK(68) +PLUGIN_VERSION_CHECK(71)
PLUGIN_SET_INFO(_("GeanySendMail"), _("A little plugin to send the current \ file as attachment by user's favorite mailer"), "0.4dev", "Frank Lanitz frank@frank.uvena.de") @@ -95,29 +95,30 @@ static void send_as_attachment(G_GNUC_UNUSED GtkMenuItem *menuitem, G_GNUC_UNUSED gpointer gdata) { - guint idx; + GeanyDocument *doc; gchar *locale_filename = NULL; gchar *command = NULL; GError *error = NULL; GString *cmd_str = NULL;
- idx = p_document->get_cur_idx(); + doc = p_document->get_current();
- if (documents[idx]->file_name == NULL) + + if (doc->file_name == NULL) { p_dialogs->show_save_as(); } else { - p_document->save_file(idx, FALSE); + p_document->save_file(doc, FALSE); }
- if (documents[idx]->file_name != NULL) + if (doc->file_name != NULL) { if (mailer) { - locale_filename = p_utils->get_locale_from_utf8(documents[idx]->file_name); + locale_filename = p_utils->get_locale_from_utf8(doc->file_name); cmd_str = g_string_new(mailer);
if (! p_utils->string_replace_all(cmd_str, "%f", locale_filename))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org