[gedit] spell: rename GAction to contain "spell" in the name
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] spell: rename GAction to contain "spell" in the name
- Date: Thu, 7 Jan 2016 17:14:02 +0000 (UTC)
commit a2755dda5d339b1b6aa932cb5fdb14849c95d0e8
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Jan 7 18:01:36 2016 +0100
spell: rename GAction to contain "spell" in the name
Since the GAction is added to the GeditWindow. There can be another
"inline-checker".
plugins/spell/gedit-spell-app-activatable.c | 2 +-
plugins/spell/gedit-spell-plugin.c | 12 ++++++++----
2 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/plugins/spell/gedit-spell-app-activatable.c b/plugins/spell/gedit-spell-app-activatable.c
index 3d96e81..9e42d53 100644
--- a/plugins/spell/gedit-spell-app-activatable.c
+++ b/plugins/spell/gedit-spell-app-activatable.c
@@ -148,7 +148,7 @@ gedit_spell_app_activatable_activate (GeditAppActivatable *activatable)
gedit_menu_extension_append_menu_item (priv->menu_ext, item);
g_object_unref (item);
- item = g_menu_item_new (_("_Highlight Misspelled Words"), "win.inline-checker");
+ item = g_menu_item_new (_("_Highlight Misspelled Words"), "win.inline-spell-checker");
gedit_menu_extension_append_menu_item (priv->menu_ext, item);
g_object_unref (item);
}
diff --git a/plugins/spell/gedit-spell-plugin.c b/plugins/spell/gedit-spell-plugin.c
index 4b48351..f9e598b 100644
--- a/plugins/spell/gedit-spell-plugin.c
+++ b/plugins/spell/gedit-spell-plugin.c
@@ -371,7 +371,7 @@ update_ui (GeditSpellPlugin *plugin)
gtk_text_view_get_editable (GTK_TEXT_VIEW (view)));
inline_checker_action = g_action_map_lookup_action (G_ACTION_MAP (priv->window),
- "inline-checker");
+ "inline-spell-checker");
g_simple_action_set_enabled (G_SIMPLE_ACTION (inline_checker_action),
(view != NULL) &&
gtk_text_view_get_editable (GTK_TEXT_VIEW (view)));
@@ -433,7 +433,7 @@ set_inline_checker_from_metadata (ViewData *data)
GAction *action;
action = g_action_map_lookup_action (G_ACTION_MAP (plugin->priv->window),
- "inline-checker");
+ "inline-spell-checker");
g_action_change_state (action, g_variant_new_boolean (active));
}
}
@@ -600,7 +600,11 @@ gedit_spell_plugin_activate (GeditWindowActivatable *activatable)
{
{ "check-spell", spell_cb },
{ "config-spell", set_language_cb },
- { "inline-checker", inline_checker_activate_cb, NULL, "false", inline_checker_change_state_cb
}
+ { "inline-spell-checker",
+ inline_checker_activate_cb,
+ NULL,
+ "false",
+ inline_checker_change_state_cb }
};
gedit_debug (DEBUG_PLUGINS);
@@ -649,7 +653,7 @@ gedit_spell_plugin_deactivate (GeditWindowActivatable *activatable)
g_action_map_remove_action (G_ACTION_MAP (priv->window),
"config-spell");
g_action_map_remove_action (G_ACTION_MAP (priv->window),
- "inline-checker");
+ "inline-spell-checker");
g_signal_handler_disconnect (priv->window, priv->tab_added_id);
g_signal_handler_disconnect (priv->window, priv->tab_removed_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]