diff options
author | mbkma <[email protected]> | 2021-11-23 22:40:26 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-31 13:57:13 +0200 |
commit | e1d9f852ab4f9b1c162385f5aac1b598f563b17a (patch) | |
tree | 0a9c311c2d91e754f2e621c8c7557fe26d868526 | |
parent | f46395ba21cc7fd14e1679ee6c4bc1c5cda81355 (diff) | |
download | pluma-e1d9f852ab4f9b1c162385f5aac1b598f563b17a.tar.bz2 pluma-e1d9f852ab4f9b1c162385f5aac1b598f563b17a.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), |