[gedit] Disconnect signal when switching between pages.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Disconnect signal when switching between pages.
- Date: Sat, 22 May 2010 15:04:35 +0000 (UTC)
commit dbac82b60bfb9a24d87ff3c131d3b774b139ed50
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat May 22 17:03:38 2010 +0200
Disconnect signal when switching between pages.
gedit/gedit-window.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 0e65e64..96d9e6d 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -2560,6 +2560,14 @@ notebook_switch_page (GtkNotebook *book,
window->priv->spaces_instead_of_tabs_id = 0;
}
+
+ if (window->priv->language_changed_id)
+ {
+ g_signal_handler_disconnect (gedit_tab_get_document (window->priv->active_tab),
+ window->priv->language_changed_id);
+
+ window->priv->language_changed_id = 0;
+ }
}
/* set the active tab */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]