[gedit] Fix double deactivate for windowactivatable plugins
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix double deactivate for windowactivatable plugins
- Date: Sun, 19 Dec 2010 20:51:04 +0000 (UTC)
commit e63de5a2396a56eeba46479a54628843538da29e
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Sun Dec 19 21:47:58 2010 +0100
Fix double deactivate for windowactivatable plugins
gedit/gedit-window.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 9532833..6d1f527 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -266,10 +266,8 @@ gedit_window_dispose (GObject *object)
save_window_state (GTK_WIDGET (window));
save_panels_state (window);
- peas_extension_set_call (window->priv->extensions,
- "deactivate",
- window);
-
+ /* Note that unreffing the extensions will automatically remove
+ all extensions which in turn will deactivate the extension */
g_object_unref (window->priv->extensions);
peas_engine_garbage_collect (PEAS_ENGINE (gedit_plugins_engine_get_default ()));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]