diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-02-14 17:42:20 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-02-14 17:42:20 +0100 |
commit | 440e948d6c0942148a2689f2a48c1f07b9de1d5c (patch) | |
tree | 4a517fc76318885e46683df7eb9e3a7a5affcc6a /src/plugins | |
parent | 54dd49b9ec2daa5d6b38001aac9a519fe3fadfde (diff) | |
download | totem-440e948d6c0942148a2689f2a48c1f07b9de1d5c.tar.gz |
rotation: Don't print errors when unsupported
When we can't save the rotation status because the location is
unsupported (unsupported scheme, or http locations).
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/rotation/totem-rotation-plugin.vala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/rotation/totem-rotation-plugin.vala b/src/plugins/rotation/totem-rotation-plugin.vala index 60b32a859..c2e3cb4b5 100644 --- a/src/plugins/rotation/totem-rotation-plugin.vala +++ b/src/plugins/rotation/totem-rotation-plugin.vala @@ -153,6 +153,7 @@ class RotationPlugin: GLib.Object, Peas.Activatable file_info.set_attribute_string (GIO_ROTATION_FILE_ATTRIBUTE, state_str); yield file.set_attributes_async (file_info, GLib.FileQueryInfoFlags.NONE, GLib.Priority.DEFAULT, null, null); + } catch (IOError.NOT_SUPPORTED e) { } catch (GLib.Error e) { GLib.warning ("Could not store file attribute: %s", e.message); } @@ -171,6 +172,7 @@ class RotationPlugin: GLib.Object, Peas.Activatable int state = (Bacon.Rotation) uint64.parse (state_str); this.bvw.set_rotation ((Bacon.Rotation) state); } + } catch (IOError.NOT_SUPPORTED e) { } catch (GLib.Error e) { GLib.warning ("Could not query file attribute: %s", e.message); } |