[anjuta] indentation-c-style: Rename action group to "C Indentation" and remove it on deactivation.



commit f5e0cb8459351b1a326f239ebf7f655ea6d92f25
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Mon Nov 5 17:05:48 2012 +0100

    indentation-c-style: Rename action group to "C Indentation" and remove it on deactivation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687663

 plugins/indentation-c-style/plugin.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/indentation-c-style/plugin.c b/plugins/indentation-c-style/plugin.c
index f6b8abc..08457cb 100644
--- a/plugins/indentation-c-style/plugin.c
+++ b/plugins/indentation-c-style/plugin.c
@@ -502,8 +502,8 @@ indent_c_plugin_activate_plugin (AnjutaPlugin *plugin)
 
     ui = anjuta_shell_get_ui (plugin->shell, NULL);
     lang_plugin->action_group =
-        anjuta_ui_add_action_group_entries (ui, "ActionGroupCppJavaAssist",
-                                            _("C++/Java Assistance"),
+        anjuta_ui_add_action_group_entries (ui, "ActionGroupCIndent",
+                                            _("C Indentation"),
                                             actions,
                                             G_N_ELEMENTS (actions),
                                             GETTEXT_PACKAGE, TRUE,
@@ -533,6 +533,7 @@ indent_c_plugin_deactivate_plugin (AnjutaPlugin *plugin)
                                 TRUE);
 
     ui = anjuta_shell_get_ui (plugin->shell, NULL);
+    anjuta_ui_remove_action_group (ui, lang_plugin->action_group);
     anjuta_ui_unmerge (ui, lang_plugin->uiid);
 
     lang_plugin->uiid = 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]