[anjuta/python-support] python-support: Fix a Gtk-Critical
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/python-support] python-support: Fix a Gtk-Critical
- Date: Wed, 4 Aug 2010 17:12:28 +0000 (UTC)
commit 346799002673ac0da393e13f149f03e1dcec0e47
Author: Johannes Schmid <jhs gnome org>
Date: Tue Aug 3 22:14:20 2010 +0200
python-support: Fix a Gtk-Critical
plugins/language-support-python/plugin.c | 21 +--------------------
1 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/plugins/language-support-python/plugin.c b/plugins/language-support-python/plugin.c
index 4b255a4..30b29c5 100644
--- a/plugins/language-support-python/plugin.c
+++ b/plugins/language-support-python/plugin.c
@@ -948,7 +948,6 @@ install_support (PythonPlugin *lang_plugin)
{
AnjutaPlugin *plugin;
AnjutaUI *ui;
- GtkAction *action;
IAnjutaEditorAssist* iassist;
const gchar *project_root;
@@ -970,12 +969,6 @@ install_support (PythonPlugin *lang_plugin)
sym_manager,
docman,
lang_plugin->prefs, editor_filename, project_root);
-
- /* Enable autocompletion action */
- action = gtk_action_group_get_action (lang_plugin->action_group,
- "ActionEditAutocomplete");
- g_object_set (G_OBJECT (action), "visible", TRUE,
- "sensitive", TRUE, NULL);
}
lang_plugin->support_installed = TRUE;
@@ -996,21 +989,9 @@ uninstall_support (PythonPlugin *lang_plugin)
}
if (lang_plugin->assist)
- {
- AnjutaPlugin *plugin;
- AnjutaUI *ui;
- GtkAction *action;
-
+ {
g_object_unref (lang_plugin->assist);
lang_plugin->assist = NULL;
-
- /* Disable autocompletion action */
- plugin = ANJUTA_PLUGIN (lang_plugin);
- ui = anjuta_shell_get_ui (plugin->shell, NULL);
- action = gtk_action_group_get_action (lang_plugin->action_group,
- "ActionEditAutocomplete");
- g_object_set (G_OBJECT (action), "visible", FALSE,
- "sensitive", FALSE, NULL);
}
lang_plugin->support_installed = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]