Merge lp:~darkxst/ubuntu/saucy/gnome-control-center/lp1196196 into lp:~ubuntu-desktop/gnome-control-center/ubuntu

Proposed by Tim Lunn
Status: Merged
Merged at revision: 579
Proposed branch: lp:~darkxst/ubuntu/saucy/gnome-control-center/lp1196196
Merge into: lp:~ubuntu-desktop/gnome-control-center/ubuntu
Diff against target: 96 lines (+72/-1)
3 files modified
debian/changelog (+6/-1)
debian/patches/git-fix-background-panel-crash.patch (+65/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~darkxst/ubuntu/saucy/gnome-control-center/lp1196196
Reviewer Review Type Date Requested Status
Jeremy Bícha Approve
Review via email: mp+176577@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-07-22 21:41:14 +0000
3+++ debian/changelog 2013-07-24 02:55:32 +0000
4@@ -21,7 +21,12 @@
5 * debian/patches/input-sources-text-entry.patch:
6 - Implement text entry panel by modifying input sources panel.
7
8- -- William Hua <william.hua@canonical.com> Mon, 15 May 2013 18:10:36 -0400
9+ [ Tim Lunn ]
10+ * debian/patches/git-fix-background-panel-crash.patch:
11+ git patch to fix crash after selecting new background in gnome
12+ background panel (LP: #1196196)
13+
14+ -- Tim Lunn <tim@feathertop.org> Wed, 24 Jul 2013 12:43:47 +1000
15
16 gnome-control-center (1:3.6.3-0ubuntu30) saucy; urgency=low
17
18
19=== added file 'debian/patches/git-fix-background-panel-crash.patch'
20--- debian/patches/git-fix-background-panel-crash.patch 1970-01-01 00:00:00 +0000
21+++ debian/patches/git-fix-background-panel-crash.patch 2013-07-24 02:55:32 +0000
22@@ -0,0 +1,65 @@
23+From cd2495787209cb11492e86ecfbfb1f5505ac4240 Mon Sep 17 00:00:00 2001
24+From: Bastien Nocera <hadess@hadess.net>
25+Date: Tue, 26 Mar 2013 14:43:39 +0000
26+Subject: background: Fix handling of cancellation in async calls
27+
28+A few of the async calls were still handling the user_data before
29+checking that it was still valid (eg. the operation was not cancelled),
30+and also printing warnings when the error was a cancellation.
31+---
32+--- a/panels/background/bg-pictures-source.c
33++++ b/panels/background/bg-pictures-source.c
34+@@ -413,7 +413,7 @@
35+ GAsyncResult *res,
36+ gpointer user_data)
37+ {
38+- BgPicturesSource *bg_source = BG_PICTURES_SOURCE (user_data);
39++ BgPicturesSource *bg_source;
40+ GList *files, *l;
41+ GError *err = NULL;
42+ GFile *parent;
43+@@ -423,7 +423,8 @@
44+
45+ if (err)
46+ {
47+- g_warning ("Could not get pictures file information: %s", err->message);
48++ if (!g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED))
49++ g_warning ("Could not get pictures file information: %s", err->message);
50+ g_error_free (err);
51+
52+ g_list_foreach (files, (GFunc) g_object_unref, NULL);
53+@@ -431,6 +432,8 @@
54+ return;
55+ }
56+
57++ bg_source = BG_PICTURES_SOURCE (user_data);
58++
59+ parent = g_file_enumerator_get_container (G_FILE_ENUMERATOR (source));
60+
61+ /* iterate over the available files */
62+@@ -453,7 +456,7 @@
63+ GAsyncResult *res,
64+ gpointer user_data)
65+ {
66+- BgPicturesSourcePrivate *priv = BG_PICTURES_SOURCE (user_data)->priv;
67++ BgPicturesSourcePrivate *priv;
68+ GFileEnumerator *enumerator;
69+ GError *err = NULL;
70+
71+@@ -461,12 +464,15 @@
72+
73+ if (err)
74+ {
75+- if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) == FALSE)
76++ if (!g_error_matches (err, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) &&
77++ !g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED))
78+ g_warning ("Could not fill pictures source: %s", err->message);
79+ g_error_free (err);
80+ return;
81+ }
82+
83++ priv = BG_PICTURES_SOURCE (user_data)->priv;
84++
85+ /* get the files */
86+ g_file_enumerator_next_files_async (enumerator,
87+ G_MAXINT,
88
89=== modified file 'debian/patches/series'
90--- debian/patches/series 2013-07-15 22:12:34 +0000
91+++ debian/patches/series 2013-07-24 02:55:32 +0000
92@@ -39,3 +39,4 @@
93 zz_add_fallback_panels_dir.patch
94 rename_screenshot_media_keys.patch
95 input-sources-text-entry.patch
96+git-fix-background-panel-crash.patch

Subscribers

People subscribed via source and target branches