SF.net SVN: geany-plugins:[201] trunk/spellcheck
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Oct 13 12:43:00 UTC 2008
Revision: 201
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=201&view=rev
Author: ntrel
Date: 2008-10-13 12:42:58 +0000 (Mon, 13 Oct 2008)
Log Message:
-----------
Update to Geany API 99 - use p_plugin->add_toolbar_item().
Modified Paths:
--------------
trunk/spellcheck/ChangeLog
trunk/spellcheck/src/spellcheck.c
Modified: trunk/spellcheck/ChangeLog
===================================================================
--- trunk/spellcheck/ChangeLog 2008-10-07 18:53:15 UTC (rev 200)
+++ trunk/spellcheck/ChangeLog 2008-10-13 12:42:58 UTC (rev 201)
@@ -1,3 +1,9 @@
+2008-10-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/spellcheck.c:
+ Update to Geany API 99 - use p_plugin->add_toolbar_item().
+
+
2008-09-18 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/spellcheck.c:
Modified: trunk/spellcheck/src/spellcheck.c
===================================================================
--- trunk/spellcheck/src/spellcheck.c 2008-10-07 18:53:15 UTC (rev 200)
+++ trunk/spellcheck/src/spellcheck.c 2008-10-13 12:42:58 UTC (rev 201)
@@ -50,12 +50,13 @@
#include "pluginmacros.h"
+GeanyPlugin *geany_plugin;
PluginFields *plugin_fields;
GeanyData *geany_data;
GeanyFunctions *geany_functions;
-PLUGIN_VERSION_CHECK(95)
+PLUGIN_VERSION_CHECK(99)
PLUGIN_SET_INFO(_("Spell Check"), _("Checks the spelling of the current document."), "0.2",
_("The Geany developer team"))
@@ -167,15 +168,13 @@
{
if (sc->toolbar_button == NULL)
{
- gint pos = p_ui->get_toolbar_insert_position();
-
sc->toolbar_button = gtk_toggle_tool_button_new_from_stock("gtk-spell-check");
#if GTK_CHECK_VERSION(2, 12, 0)
gtk_widget_set_tooltip_text(GTK_WIDGET(sc->toolbar_button),
_("Toggle spell check while typing."));
#endif
gtk_widget_show(GTK_WIDGET(sc->toolbar_button));
- gtk_toolbar_insert(GTK_TOOLBAR(geany->main_widgets->toolbar), sc->toolbar_button, pos);
+ p_plugin->add_toolbar_item(geany_plugin, sc->toolbar_button);
g_signal_connect(sc->toolbar_button, "toggled",
G_CALLBACK(toolbar_item_toggled_cb), NULL);
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