diff options
author | mbkma <[email protected]> | 2021-11-23 22:40:26 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-11-25 18:05:20 +0100 |
commit | c7d460d479891b305c96b3de18817c541929d0a8 (patch) | |
tree | ba1d4191223cec344857d0efd9cf51772f320ee8 | |
parent | 8543488f7f41a0fbbc42a9592d1721a2b73ce08a (diff) | |
download | pluma-c7d460d479891b305c96b3de18817c541929d0a8.tar.bz2 pluma-c7d460d479891b305c96b3de18817c541929d0a8.tar.xz |
Fix double activation of extensions
-rw-r--r-- | pluma/pluma-view.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/pluma/pluma-view.c b/pluma/pluma-view.c index 4a353e16..672cca83 100644 --- a/pluma/pluma-view.c +++ b/pluma/pluma-view.c @@ -413,11 +413,6 @@ on_notify_buffer_cb (PlumaView *view, "search_highlight_updated", G_CALLBACK (search_highlight_updated_cb), view); - - /* We only activate the extensions when the right buffer is set, - * because most plugins will expect this behaviour, and we won't - * change the buffer later anyway. */ - peas_extension_set_call (view->priv->extensions, "activate", view); } #ifdef GTK_SOURCE_VERSION_3_24 @@ -2320,9 +2315,9 @@ extension_removed (PeasExtensionSet *extensions, static void pluma_view_realize (GtkWidget *widget) { - PlumaView *view = PLUMA_VIEW (widget); + PlumaView *view = PLUMA_VIEW (widget); - GTK_WIDGET_CLASS (pluma_view_parent_class)->realize (widget); + GTK_WIDGET_CLASS (pluma_view_parent_class)->realize (widget); g_signal_connect (view->priv->extensions, "extension-added", G_CALLBACK (extension_added), |