[gedit] Fix double deactivate for AppActivatable and ViewActivatable plugins
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix double deactivate for AppActivatable and ViewActivatable plugins
- Date: Sat, 1 Jan 2011 23:02:27 +0000 (UTC)
commit 832addd97579ad5cc6b853e349bb9f4ed1c31d25
Author: Garrett Regier <alias301 gmail com>
Date: Sat Jan 1 15:02:15 2011 -0800
Fix double deactivate for AppActivatable and ViewActivatable plugins
gedit/gedit-app.c | 6 ++----
gedit/gedit-view.c | 3 ++-
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index cf3f0b8..b18de86 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -123,10 +123,8 @@ gedit_app_dispose (GObject *object)
if (app->priv->extensions != NULL)
{
- peas_extension_set_call (app->priv->extensions,
- "deactivate",
- app);
-
+ /* Note that unreffing the extensions will automatically remove
+ all extensions which in turn will deactivate the extension */
g_object_unref (app->priv->extensions);
app->priv->extensions = NULL;
}
diff --git a/gedit/gedit-view.c b/gedit/gedit-view.c
index 190e02c..b5846e5 100644
--- a/gedit/gedit-view.c
+++ b/gedit/gedit-view.c
@@ -431,7 +431,8 @@ gedit_view_destroy (GtkWidget *widget)
if (view->priv->extensions != NULL)
{
- peas_extension_set_call (view->priv->extensions, "deactivate");
+ /* Note that unreffing the extensions will automatically remove
+ all extensions which in turn will deactivate the extension */
g_object_unref (view->priv->extensions);
view->priv->extensions = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]