[totem] rotation: Don't print errors when unsupported



commit 440e948d6c0942148a2689f2a48c1f07b9de1d5c
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Feb 14 17:42:20 2014 +0100

    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).

 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 60b32a8..c2e3cb4 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);
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]