[gedit] Remove tab-removed handler on modeline plugin deactivation
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit] Remove tab-removed handler on modeline plugin deactivation
- Date: Sun, 25 Oct 2009 12:58:24 +0000 (UTC)
commit 1595ed24113cdcec46964392c409d839a6a59983
Author: Jesse van den Kieboom <jesse icecrew nl>
Date: Sun Oct 25 13:57:25 2009 +0100
Remove tab-removed handler on modeline plugin deactivation
plugins/modelines/gedit-modeline-plugin.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/modelines/gedit-modeline-plugin.c b/plugins/modelines/gedit-modeline-plugin.c
index ba6c9d5..49fc2f6 100644
--- a/plugins/modelines/gedit-modeline-plugin.c
+++ b/plugins/modelines/gedit-modeline-plugin.c
@@ -228,7 +228,10 @@ gedit_modeline_plugin_deactivate (GeditPlugin *plugin,
gedit_debug (DEBUG_PLUGINS);
wdata = g_object_steal_data (G_OBJECT (window), WINDOW_DATA_KEY);
+
g_signal_handler_disconnect (window, wdata->tab_added_handler_id);
+ g_signal_handler_disconnect (window, wdata->tab_removed_handler_id);
+
window_data_free (wdata);
views = gedit_window_get_views (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]