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

Subscribers

People subscribed via source and target branches