Update to 40.0
This commit is contained in:
parent
e88e71c757
commit
9f7531b2da
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
100
102.patch
@ -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
|
||||
|
||||
18
gedit.spec
18
gedit.spec
@ -4,30 +4,27 @@
|
||||
%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
|
||||
%global apiver 40.0
|
||||
|
||||
Name: gedit
|
||||
Epoch: 2
|
||||
Version: 3.38.1
|
||||
Release: 3%{?dist}
|
||||
Version: 40.0
|
||||
Release: 1%{?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}-%{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 +37,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
|
||||
@ -174,6 +171,9 @@ 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-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)
|
||||
|
||||
|
||||
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (gedit-3.38.1.tar.xz) = cd52cbcece3b007692294ab01b95fae7deb744b08a44da2d3cafa82a86d94c104abcdd4dcbe10630e0d633c8cc3c75f5e5dc6c8452a8c4bc2e6bb3c0de7d5547
|
||||
SHA512 (gedit-40.0.tar.xz) = b1f6fc4f4894c3ada8e85b81df2fca6870acf725074b56b2c85b1c8f04e004f193e8fad3ac0c641bd0df6a704604ec054e130c60f0480c1abf62a91cb181429e
|
||||
|
||||
Loading…
Reference in New Issue
Block a user