Revision: 1062
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1062&view=rev
Author: eht16
Date: 2009-11-28 16:16:16 +0000 (Sat, 28 Nov 2009)
Log Message:
-----------
Add the possibility to perform a normal Spell Check when the selected text is too long for the editor menu.
Modified Paths:
--------------
trunk/geany-plugins/spellcheck/src/gui.c
Modified: trunk/geany-plugins/spellcheck/src/gui.c
===================================================================
--- trunk/geany-plugins/spellcheck/src/gui.c 2009-11-28 15:31:41 UTC (rev 1061)
+++ trunk/geany-plugins/spellcheck/src/gui.c 2009-11-28 16:16:16 UTC (rev 1062)
@@ -218,6 +218,12 @@
}
+static void perform_spell_check_cb(GtkWidget *menu_item, GeanyDocument *doc)
+{
+ sc_speller_check_document(doc);
+}
+
+
void sc_gui_update_editor_menu_cb(GObject *obj, const gchar *word, gint pos,
GeanyDocument *doc, gpointer user_data)
{
@@ -252,20 +258,20 @@
/* ignore too long search words */
if (strlen(search_word) > 100)
{
- gchar *label, *short_search_word;
GtkWidget *menu_item;
- short_search_word = utils_str_middle_truncate(search_word, 30);
- label = g_strdup_printf(_("Search term \"%s\" is too long to check."), short_search_word);
-
init_editor_submenu();
- menu_item = gtk_menu_item_new_with_label(label);
+ menu_item = gtk_menu_item_new_with_label(
+ _("Search term is too long to provide\nspelling suggestions in the editor menu."));
gtk_widget_set_sensitive(menu_item, FALSE);
gtk_widget_show(menu_item);
gtk_container_add(GTK_CONTAINER(sc_info->edit_menu_sub), menu_item);
- g_free(label);
- g_free(short_search_word);
+ menu_item = gtk_menu_item_new_with_label(_("Perform Spell Check"));
+ gtk_widget_show(menu_item);
+ gtk_container_add(GTK_CONTAINER(sc_info->edit_menu_sub), menu_item);
+ g_signal_connect(menu_item, "activate", G_CALLBACK(perform_spell_check_cb), doc);
+
g_free(search_word);
return;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1061
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1061&view=rev
Author: eht16
Date: 2009-11-28 15:31:41 +0000 (Sat, 28 Nov 2009)
Log Message:
-----------
Remove wrong comment
Modified Paths:
--------------
trunk/geany-plugins/addons/src/ao_bookmarklist.c
Modified: trunk/geany-plugins/addons/src/ao_bookmarklist.c
===================================================================
--- trunk/geany-plugins/addons/src/ao_bookmarklist.c 2009-11-28 13:55:04 UTC (rev 1060)
+++ trunk/geany-plugins/addons/src/ao_bookmarklist.c 2009-11-28 15:31:41 UTC (rev 1061)
@@ -196,7 +196,6 @@
GtkTreeIter iter;
GtkTreeModel *model;
- /* use switch_notebook_page to ignore changing the notebook page because it is already done */
if (gtk_tree_selection_get_selected(selection, &model, &iter))
{
gint line;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1058
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1058&view=rev
Author: eht16
Date: 2009-11-28 13:01:26 +0000 (Sat, 28 Nov 2009)
Log Message:
-----------
Try to make broker initialisation a bit more robust.
Modified Paths:
--------------
trunk/geany-plugins/spellcheck/ChangeLog
trunk/geany-plugins/spellcheck/src/speller.c
Modified: trunk/geany-plugins/spellcheck/ChangeLog
===================================================================
--- trunk/geany-plugins/spellcheck/ChangeLog 2009-11-23 10:46:15 UTC (rev 1057)
+++ trunk/geany-plugins/spellcheck/ChangeLog 2009-11-28 13:01:26 UTC (rev 1058)
@@ -1,3 +1,9 @@
+2009-11-28 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/speller.c:
+ Try to make broker initialisation a bit more robust.
+
+
2009-09-30 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/scplugin.c, src/scplugin.h, src/gui.c, src/gui.h, src/speller.c:
Modified: trunk/geany-plugins/spellcheck/src/speller.c
===================================================================
--- trunk/geany-plugins/spellcheck/src/speller.c 2009-11-23 10:46:15 UTC (rev 1057)
+++ trunk/geany-plugins/spellcheck/src/speller.c 2009-11-28 13:01:26 UTC (rev 1058)
@@ -378,7 +378,7 @@
void sc_speller_reinit_enchant_dict(void)
{
- gchar *lang = sc_info->default_language;
+ const gchar *lang = sc_info->default_language;
/* Release a previous dict object */
if (sc_speller_dict != NULL)
@@ -404,9 +404,9 @@
#endif
create_dicts_array();
- /* Check if the stored default dictionary is (still) avaiable, fall back to the first
+ /* Check if the stored default dictionary is (still) available, fall back to the first
* one in the list if not */
- if (! check_default_lang())
+ if (! NZV(lang) || ! check_default_lang())
{
if (sc_info->dicts->len > 0)
{
@@ -419,7 +419,10 @@
}
/* Request new dict object */
- sc_speller_dict = enchant_broker_request_dict(sc_speller_broker, lang);
+ if (NZV(lang))
+ sc_speller_dict = enchant_broker_request_dict(sc_speller_broker, lang);
+ else
+ sc_speller_dict = NULL;
if (sc_speller_dict == NULL)
{
broker_init_failed();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1055
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1055&view=rev
Author: ntrel
Date: 2009-11-12 12:44:23 +0000 (Thu, 12 Nov 2009)
Log Message:
-----------
Remove include of sciwrappers.h to fix build.
Modified Paths:
--------------
trunk/geany-plugins/shiftcolumn/src/shiftcolumn.c
Modified: trunk/geany-plugins/shiftcolumn/src/shiftcolumn.c
===================================================================
--- trunk/geany-plugins/shiftcolumn/src/shiftcolumn.c 2009-11-05 08:51:21 UTC (rev 1054)
+++ trunk/geany-plugins/shiftcolumn/src/shiftcolumn.c 2009-11-12 12:44:23 UTC (rev 1055)
@@ -28,7 +28,6 @@
#include "ui_utils.h"
-#include "sciwrappers.h"
#include "document.h"
#include "keybindings.h"
#include "plugindata.h"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1054
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1054&view=rev
Author: hyperair
Date: 2009-11-05 08:51:21 +0000 (Thu, 05 Nov 2009)
Log Message:
-----------
Fix original PKG_CONFIG_PATH if previously set
This is if PKG_CONFIG_PATH was altered from the --with-geany-prefix=
option.
Modified Paths:
--------------
trunk/geany-plugins/build/geany.m4
Modified: trunk/geany-plugins/build/geany.m4
===================================================================
--- trunk/geany-plugins/build/geany.m4 2009-11-04 19:01:51 UTC (rev 1053)
+++ trunk/geany-plugins/build/geany.m4 2009-11-05 08:51:21 UTC (rev 1054)
@@ -14,6 +14,6 @@
geanyversion=$(${PKG_CONFIG} --modversion geany)
AC_SUBST([geanypluginsdir])
- PKG_CONFIG_PATH="${PKG_CONFIG_PATH#*:}"
+ export PKG_CONFIG_PATH="${PKG_CONFIG_PATH#*:}"
test -z "${PKG_CONFIG_PATH}" && unset PKG_CONFIG_PATH
])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.