[gedit-plugins] Unregister completion from views on deactivate
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Unregister completion from views on deactivate
- Date: Sat, 14 Nov 2009 22:31:22 +0000 (UTC)
commit 8095ae0b8c17b3a7bc459dc94d32f07143345b8e
Author: Jesse van den Kieboom <jesse icecrew nl>
Date: Sat Nov 14 23:30:38 2009 +0100
Unregister completion from views on deactivate
.../wordcompletion/gedit-word-completion-plugin.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wordcompletion/gedit-word-completion-plugin.c b/plugins/wordcompletion/gedit-word-completion-plugin.c
index 36811d1..60dff70 100644
--- a/plugins/wordcompletion/gedit-word-completion-plugin.c
+++ b/plugins/wordcompletion/gedit-word-completion-plugin.c
@@ -172,13 +172,20 @@ impl_deactivate (GeditPlugin *plugin,
GeditWordCompletionPlugin *ds_plugin = GEDIT_WORD_COMPLETION_PLUGIN (plugin);
GtkUIManager *manager;
WindowData *data;
+ GList *views, *l;
gedit_debug (DEBUG_PLUGINS);
data = (WindowData *) g_object_get_data (G_OBJECT (window),
WINDOW_DATA_KEY);
g_return_if_fail (data != NULL);
-
+
+ views = gedit_window_get_views (window);
+ for (l = views; l != NULL; l = g_list_next (l))
+ {
+ remove_view (data, GTK_SOURCE_VIEW (l->data));
+ }
+
g_signal_handler_disconnect (window, data->tab_added_id);
g_signal_handler_disconnect (window, data->tab_removed_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]