Revision: 464 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=464&view=rev Author: eht16 Date: 2009-02-08 20:57:41 +0000 (Sun, 08 Feb 2009)
Log Message: ----------- Remove unnecessary gpointer casts.
Modified Paths: -------------- trunk/spellcheck/ChangeLog trunk/spellcheck/src/gui.c
Modified: trunk/spellcheck/ChangeLog =================================================================== --- trunk/spellcheck/ChangeLog 2009-02-08 20:54:25 UTC (rev 463) +++ trunk/spellcheck/ChangeLog 2009-02-08 20:57:41 UTC (rev 464) @@ -1,3 +1,9 @@ +2009-02-08 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/gui.c: + Remove unnecessary gpointer casts. + + 2009-02-02 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* configure.in, Makefile.am:
Modified: trunk/spellcheck/src/gui.c =================================================================== --- trunk/spellcheck/src/gui.c 2009-02-08 20:54:25 UTC (rev 463) +++ trunk/spellcheck/src/gui.c 2009-02-08 20:57:41 UTC (rev 464) @@ -112,7 +112,7 @@ sc->toolbar_button = gtk_toggle_tool_button_new_from_stock(GTK_STOCK_SPELL_CHECK); #if GTK_CHECK_VERSION(2, 12, 0) gtk_tool_item_set_tooltip_text(GTK_TOOL_ITEM(sc->toolbar_button), - _("Toggle spell check while typing.")); + _("Toggle spell check while typing")); #endif gtk_widget_show(GTK_WIDGET(sc->toolbar_button)); plugin_add_toolbar_item(geany_plugin, sc->toolbar_button); @@ -307,7 +307,7 @@ } menu_item = gtk_menu_item_new_with_label(suggs[i]); gtk_container_add(GTK_CONTAINER(menu), menu_item); - g_signal_connect((gpointer) menu_item, "activate", + g_signal_connect(menu_item, "activate", G_CALLBACK(menu_suggestion_item_activate_cb), NULL); } if (suggs == NULL) @@ -322,12 +322,12 @@ label = g_strdup_printf(_("Add "%s" to Dictionary"), search_word); menu_item = image_menu_item_new(GTK_STOCK_ADD, label); gtk_container_add(GTK_CONTAINER(sc->edit_menu_sub), menu_item); - g_signal_connect((gpointer) menu_item, "activate", + g_signal_connect(menu_item, "activate", G_CALLBACK(on_menu_addword_item_activate), GINT_TO_POINTER(0));
menu_item = image_menu_item_new(GTK_STOCK_REMOVE, _("Ignore All")); gtk_container_add(GTK_CONTAINER(sc->edit_menu_sub), menu_item); - g_signal_connect((gpointer) menu_item, "activate", + g_signal_connect(menu_item, "activate", G_CALLBACK(on_menu_addword_item_activate), GINT_TO_POINTER(1));
gtk_widget_show(sc->edit_menu); @@ -461,7 +461,7 @@
subitem = gtk_menu_item_new_with_mnemonic(_("Default")); gtk_container_add(GTK_CONTAINER(menu), subitem); - g_signal_connect((gpointer) subitem, "activate", G_CALLBACK(menu_item_activate_cb), NULL); + g_signal_connect(subitem, "activate", G_CALLBACK(menu_item_activate_cb), NULL);
subitem = gtk_separator_menu_item_new(); gtk_container_add(GTK_CONTAINER(menu), subitem); @@ -472,7 +472,7 @@
menu_item = gtk_menu_item_new_with_label(g_ptr_array_index(sc->dicts, i)); gtk_container_add(GTK_CONTAINER(menu), menu_item); - g_signal_connect((gpointer) menu_item, "activate", + g_signal_connect(menu_item, "activate", G_CALLBACK(menu_item_activate_cb), g_ptr_array_index(sc->dicts, i)); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.