SF.net SVN: geany-plugins:[1004] trunk/geany-plugins/addons
ntrel at users.sourceforge.net
ntrel at xxxxx
Wed Oct 14 12:35:45 UTC 2009
Revision: 1004
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1004&view=rev
Author: ntrel
Date: 2009-10-14 12:35:44 +0000 (Wed, 14 Oct 2009)
Log Message:
-----------
Fix switching to an untitled document with the tool button.
Modified Paths:
--------------
trunk/geany-plugins/addons/ChangeLog
trunk/geany-plugins/addons/src/addons.c
trunk/geany-plugins/addons/src/ao_doclist.c
Modified: trunk/geany-plugins/addons/ChangeLog
===================================================================
--- trunk/geany-plugins/addons/ChangeLog 2009-10-14 12:01:07 UTC (rev 1003)
+++ trunk/geany-plugins/addons/ChangeLog 2009-10-14 12:35:44 UTC (rev 1004)
@@ -1,3 +1,9 @@
+2009-10-14 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/ao_doclist.c, src/addons.c:
+ Fix switching to an untitled document with the tool button.
+
+
2009-10-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/ao_doclist.c, src/addons.c:
Modified: trunk/geany-plugins/addons/src/addons.c
===================================================================
--- trunk/geany-plugins/addons/src/addons.c 2009-10-14 12:01:07 UTC (rev 1003)
+++ trunk/geany-plugins/addons/src/addons.c 2009-10-14 12:35:44 UTC (rev 1004)
@@ -36,7 +36,7 @@
GeanyFunctions *geany_functions;
-PLUGIN_VERSION_CHECK(160)
+PLUGIN_VERSION_CHECK(161)
PLUGIN_SET_INFO(_("Addons"), _("Various small addons for Geany."), VERSION,
"Enrico Tröger, Bert Vermeulen")
Modified: trunk/geany-plugins/addons/src/ao_doclist.c
===================================================================
--- trunk/geany-plugins/addons/src/ao_doclist.c 2009-10-14 12:01:07 UTC (rev 1003)
+++ trunk/geany-plugins/addons/src/ao_doclist.c 2009-10-14 12:35:44 UTC (rev 1004)
@@ -136,7 +136,6 @@
static void ao_doclist_menu_item_activate_cb(GtkMenuItem *menuitem, gpointer data)
{
GeanyDocument *doc = data;
- gchar *locale_filename;
if (GPOINTER_TO_INT(data) == ACTION_CLOSE_OTHER)
{
@@ -154,12 +153,8 @@
if (! DOC_VALID(doc))
return;
- locale_filename = utils_get_locale_from_utf8(doc->file_name);
- /* Go the easy way and let document_open_file() handle finding the right document and
- * switch the notebook page accordingly. */
- document_open_file(locale_filename, FALSE, NULL, NULL);
-
- g_free(locale_filename);
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(geany->main_widgets->notebook),
+ document_get_notebook_page(doc));
}
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