Revision: 618 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=618&view=rev Author: eht16 Date: 2009-05-02 17:39:57 +0000 (Sat, 02 May 2009)
Log Message: ----------- Fix broken menu item "Default".
Modified Paths: -------------- trunk/spellcheck/ChangeLog trunk/spellcheck/src/gui.c
Modified: trunk/spellcheck/ChangeLog =================================================================== --- trunk/spellcheck/ChangeLog 2009-05-02 11:40:07 UTC (rev 617) +++ trunk/spellcheck/ChangeLog 2009-05-02 17:39:57 UTC (rev 618) @@ -1,3 +1,9 @@ +2009-05-02 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/gui.c: + Fix broken menu item "Default". + + 2009-04-17 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/gui.c, src/scplugin.c, src/gui.h:
Modified: trunk/spellcheck/src/gui.c =================================================================== --- trunk/spellcheck/src/gui.c 2009-05-02 11:40:07 UTC (rev 617) +++ trunk/spellcheck/src/gui.c 2009-05-02 17:39:57 UTC (rev 618) @@ -418,9 +418,12 @@ if (sc_ignore_callback) return;
- if (menuitem != NULL && ! gtk_check_menu_item_get_active(menuitem)) + if (menuitem != NULL && + GTK_IS_CHECK_MENU_ITEM(menuitem) && + ! gtk_check_menu_item_get_active(menuitem)) + { return; - + } doc = document_get_current();
/* Another language was chosen from the menu item, so make it default for this session. */ @@ -442,15 +445,9 @@ }
-static void menu_item_activate_cb(GtkMenuItem *menuitem, gpointer gdata) -{ - menu_item_toggled_cb(NULL, gdata); -} - - void sc_gui_kb_run_activate_cb(guint key_id) { - menu_item_activate_cb(NULL, NULL); + menu_item_toggled_cb(NULL, NULL); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org