[caja] 01/01: debian/patches: Add 0001_fix-high-cpu-while-loading-background-image.patch. (Closes: #875717).

Pablo Barciela zenwalker-guest at moszumanska.debian.org
Wed Sep 13 23:33:14 UTC 2017


This is an automated email from the git hooks/post-receive script.

zenwalker-guest pushed a commit to branch master
in repository caja.

commit 61ac4cb83364594e84115bea7f7a6e8a045a8268
Author: Pablo Barciela <scow at riseup.net>
Date:   Thu Sep 14 01:32:00 2017 +0200

    debian/patches: Add 0001_fix-high-cpu-while-loading-background-image.patch. (Closes: #875717).
---
 ...x-high-cpu-while-loading-background-image.patch | 29 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 30 insertions(+)

diff --git a/debian/patches/0001_fix-high-cpu-while-loading-background-image.patch b/debian/patches/0001_fix-high-cpu-while-loading-background-image.patch
new file mode 100644
index 0000000..743f2d9
--- /dev/null
+++ b/debian/patches/0001_fix-high-cpu-while-loading-background-image.patch
@@ -0,0 +1,29 @@
+From b9cf3667fa5563d52bffb9e3618aa41c7c908aa6 Mon Sep 17 00:00:00 2001
+From: Pablo Barciela <scow at riseup.net>
+Date: Fri, 1 Sep 2017 02:25:53 +0200
+Subject: [PATCH] Fix: high cpu while loading background image
+
+Fixes https://github.com/mate-desktop/caja/issues/606
+---
+ eel/eel-background.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/eel/eel-background.c b/eel/eel-background.c
+index a3392c2b..53e0a652 100644
+--- a/eel/eel-background.c
++++ b/eel/eel-background.c
+@@ -1062,6 +1062,14 @@ void
+ eel_bg_load_from_gsettings (EelBackground *self,
+ 			    GSettings     *settings)
+ {
++    char *keyfile = g_settings_get_string (settings, MATE_BG_KEY_PICTURE_FILENAME);
++
++    if (!g_file_test (keyfile, G_FILE_TEST_EXISTS) && (*keyfile != '\0'))
++    {
++        *keyfile = '\0';
++        g_settings_set_string (settings, MATE_BG_KEY_PICTURE_FILENAME, keyfile);
++    }
++
+     if (self->details->bg)
+         mate_bg_load_from_gsettings (self->details->bg,
+         			     settings);
diff --git a/debian/patches/series b/debian/patches/series
index 3a9f387..e3791d6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0000_revert_add_column_autosizing.patch
+0001_fix-high-cpu-while-loading-background-image.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/caja.git



More information about the pkg-mate-commits mailing list