[gtranslator] Fix double deactivate for windowactivatable plugins
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Fix double deactivate for windowactivatable plugins
- Date: Sun, 19 Dec 2010 22:35:59 +0000 (UTC)
commit 5fd72b3875722b368cd2ef6e342e1df287d4ee97
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Sun Dec 19 23:35:35 2010 +0100
Fix double deactivate for windowactivatable plugins
src/gtr-window.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/gtr-window.c b/src/gtr-window.c
index f9ce6a8..f20cf41 100644
--- a/src/gtr-window.c
+++ b/src/gtr-window.c
@@ -1925,10 +1925,8 @@ gtr_window_dispose (GObject * object)
{
save_panes_state (window);
- peas_extension_set_call (priv->extensions,
- "deactivate",
- window);
-
+ /* Note that unreffing the extensions will automatically remove
+ all extensions which in turn will deactivate the extension */
g_object_unref (priv->extensions);
peas_engine_garbage_collect (PEAS_ENGINE (gtr_plugins_engine_get_default ()));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]