From ced0b3913385748b6490a4215d7cc9a1681bca77 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Thu, 11 Jan 2018 15:30:10 +0100 Subject: put 'peas_engine_enable_loader' in the correct place and this commit reverts: https://github.com/mate-desktop/pluma/commit/e81883304c118abc3f8b7198cdc336a9a10f6571 now it isn't needed --- pluma/pluma-plugins-engine.c | 4 ++-- pluma/pluma-tab.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pluma/pluma-plugins-engine.c b/pluma/pluma-plugins-engine.c index fcedd86f..e765b0f2 100644 --- a/pluma/pluma-plugins-engine.c +++ b/pluma/pluma-plugins-engine.c @@ -60,14 +60,14 @@ pluma_plugins_engine_init (PlumaPluginsEngine *engine) pluma_debug (DEBUG_PLUGINS); + peas_engine_enable_loader (PEAS_ENGINE (engine), "python"); + engine->priv = G_TYPE_INSTANCE_GET_PRIVATE (engine, PLUMA_TYPE_PLUGINS_ENGINE, PlumaPluginsEnginePrivate); engine->priv->plugin_settings = g_settings_new (PLUMA_SCHEMA); - peas_engine_enable_loader (PEAS_ENGINE (engine), "python"); - /* This should be moved to libpeas */ if (!g_irepository_require (g_irepository_get_default (), "Peas", "1.0", 0, &error)) diff --git a/pluma/pluma-tab.c b/pluma/pluma-tab.c index 02024e89..8e0d4d47 100644 --- a/pluma/pluma-tab.c +++ b/pluma/pluma-tab.c @@ -1031,8 +1031,6 @@ document_loaded (PlumaDocument *document, { GtkWidget *w; - pluma_tab_get_view (tab); - tab->priv->not_editable = TRUE; w = pluma_file_already_open_warning_message_area_new (uri); -- cgit v1.2.1