Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/gedit.git#535679d4db358f2df11abd306e2b0f4155ff691f
This commit is contained in:
DistroBaker 2021-03-26 20:10:41 +00:00
parent 977041dce2
commit f812dd2228
4 changed files with 20 additions and 113 deletions

1
.gitignore vendored
View File

@ -127,3 +127,4 @@ gedit-2.31.6.tar.bz2
/gedit-3.37.92.tar.xz
/gedit-3.38.0.tar.xz
/gedit-3.38.1.tar.xz
/gedit-40.0.tar.xz

100
102.patch
View File

@ -1,100 +0,0 @@
From 8f6490c602991a456413e0053429bb7b4c70d4b6 Mon Sep 17 00:00:00 2001
From: Zander Brown <zbrown@gnome.org>
Date: Thu, 11 Feb 2021 10:26:55 +0000
Subject: [PATCH] file-browser: drop use of confirm-trash
Nautilus has removed their key as it was being (ab)used by other apps:
https://gitlab.gnome.org/GNOME/nautilus/-/commit/e96aac1f6526f5373405e071703b5f18b0c728d3
This then caused gedit to crash on launch as the plug-in is enabled by
default:
https://gitlab.gnome.org/GNOME/gedit/-/issues/408
Fix #408 by simply assuming the default value of the key
---
.../filebrowser/gedit-file-browser-plugin.c | 32 -------------------
1 file changed, 32 deletions(-)
diff --git a/plugins/filebrowser/gedit-file-browser-plugin.c b/plugins/filebrowser/gedit-file-browser-plugin.c
index 2e8e13e7f..983e5de74 100644
--- a/plugins/filebrowser/gedit-file-browser-plugin.c
+++ b/plugins/filebrowser/gedit-file-browser-plugin.c
@@ -50,7 +50,6 @@
#define NAUTILUS_BASE_SETTINGS "org.gnome.nautilus.preferences"
#define NAUTILUS_FALLBACK_SETTINGS "org.gnome.gedit.plugins.filebrowser.nautilus"
#define NAUTILUS_CLICK_POLICY_KEY "click-policy"
-#define NAUTILUS_CONFIRM_TRASH_KEY "confirm-trash"
#define TERMINAL_BASE_SETTINGS "org.gnome.desktop.default-applications.terminal"
#define TERMINAL_EXEC_KEY "exec"
@@ -66,10 +65,8 @@ struct _GeditFileBrowserPluginPrivate
GeditFileBrowserWidget *tree_widget;
gboolean auto_root;
gulong end_loading_handle;
- gboolean confirm_trash;
guint click_policy_handle;
- guint confirm_trash_handle;
};
enum
@@ -321,14 +318,6 @@ on_click_policy_changed (GSettings *settings,
gedit_file_browser_view_set_click_policy (view, policy);
}
-static void
-on_confirm_trash_changed (GSettings *settings,
- const gchar *key,
- GeditFileBrowserPlugin *plugin)
-{
- plugin->priv->confirm_trash = g_settings_get_boolean (settings, key);
-}
-
static void
install_nautilus_prefs (GeditFileBrowserPlugin *plugin)
{
@@ -349,18 +338,6 @@ install_nautilus_prefs (GeditFileBrowserPlugin *plugin)
"changed::" NAUTILUS_CLICK_POLICY_KEY,
G_CALLBACK (on_click_policy_changed),
plugin);
-
- /* Get confirm_trash */
- prefb = g_settings_get_boolean (priv->nautilus_settings,
- NAUTILUS_CONFIRM_TRASH_KEY);
-
- priv->confirm_trash = prefb;
-
- priv->confirm_trash_handle =
- g_signal_connect (priv->nautilus_settings,
- "changed::" NAUTILUS_CONFIRM_TRASH_KEY,
- G_CALLBACK (on_confirm_trash_changed),
- plugin);
}
static void
@@ -588,12 +565,6 @@ gedit_file_browser_plugin_deactivate (GeditWindowActivatable *activatable)
priv->click_policy_handle);
}
- if (priv->confirm_trash_handle)
- {
- g_signal_handler_disconnect (priv->nautilus_settings,
- priv->confirm_trash_handle);
- }
-
panel = gedit_window_get_side_panel (priv->window);
gtk_container_remove (GTK_CONTAINER (panel), GTK_WIDGET (priv->tree_widget));
}
@@ -932,9 +903,6 @@ on_confirm_delete_cb (GeditFileBrowserWidget *widget,
gchar *secondary;
gboolean result;
- if (!priv->confirm_trash)
- return TRUE;
-
if (paths->next == NULL)
{
normal = get_filename_from_path (GTK_TREE_MODEL (store), (GtkTreePath *)(paths->data));
--
GitLab

View File

@ -1,33 +1,33 @@
%global __python %{__python3}
%global glib2_version 2.64
%global gtk3_version 3.22
%global gtksourceview_version 4.0.2
%global libpeas_version 1.14.1
%global tepl_version 4.99.2
%global tepl_version 5.99.0
%global gspell_version 1.0
%global pygo_version 3.0.0
%global apiver 3.38
# Filter provides for plugin .so files
%global __provides_exclude_from ^%{_libdir}/gedit/plugins/
%global apiver 40.0
%global tarball_version %%(echo %{version} | tr '~' '.')
Name: gedit
Epoch: 2
Version: 3.38.1
Release: 3%{?dist}
Version: 40.0
Release: 2%{?dist}
Summary: Text editor for the GNOME desktop
License: GPLv2+ and GFDL
URL: https://wiki.gnome.org/Apps/Gedit
Source0: https://download.gnome.org/sources/%{name}/3.38/%{name}-%{version}.tar.xz
Source0: https://download.gnome.org/sources/%{name}/40/%{name}-%{tarball_version}.tar.xz
# https://gitlab.gnome.org/GNOME/gnome-build-meta/issues/252#note_742198
Patch1: restore-overlay-scrollbars.patch
# Override meson default change so Gedit.py installs to %%{python3_sitearch}
# as expected (instead of %%{python3_sitelib})
Patch2: python3-install-path-fix.patch
# Don't use gsettings key that was removed from nautilus 40
# https://gitlab.gnome.org/GNOME/gedit/-/merge_requests/102
Patch3: 102.patch
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(gobject-introspection-1.0)
@ -40,7 +40,7 @@ BuildRequires: pkgconfig(libpeas-gtk-1.0) >= %{libpeas_version}
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(pygobject-3.0)
BuildRequires: pkgconfig(tepl-5) >= %{tepl_version}
BuildRequires: pkgconfig(tepl-6) >= %{tepl_version}
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: gtk-doc
@ -98,7 +98,7 @@ to gedit.
Install gedit-devel if you want to write plugins for gedit.
%prep
%autosetup -p1
%autosetup -p1 -n %{name}-%{tarball_version}
%build
%meson -Dgtk_doc=true
@ -174,6 +174,12 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.gedit.de
%{_datadir}/vala/
%changelog
* Wed Mar 24 2021 Kalev Lember <klember@redhat.com> - 2:40.0-2
- Filter provides for plugin .so files
* Wed Mar 24 2021 Kalev Lember <klember@redhat.com> - 2:40.0-1
- Update to 40.0
* Sat Feb 20 2021 Kalev Lember <klember@redhat.com> - 2:3.38.1-3
- Don't use gsettings key that was removed from nautilus 40 (#1931020)

View File

@ -1 +1 @@
SHA512 (gedit-3.38.1.tar.xz) = cd52cbcece3b007692294ab01b95fae7deb744b08a44da2d3cafa82a86d94c104abcdd4dcbe10630e0d633c8cc3c75f5e5dc6c8452a8c4bc2e6bb3c0de7d5547
SHA512 (gedit-40.0.tar.xz) = b1f6fc4f4894c3ada8e85b81df2fca6870acf725074b56b2c85b1c8f04e004f193e8fad3ac0c641bd0df6a704604ec054e130c60f0480c1abf62a91cb181429e