[totem] rotation: Update for Bvw API changes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] rotation: Update for Bvw API changes
- Date: Wed, 27 Jun 2012 22:22:23 +0000 (UTC)
commit d53c765bc512a0ee5f6bb520584b068c10e4b6d7
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jun 27 23:21:02 2012 +0100
rotation: Update for Bvw API changes
src/plugins/rotation/bacon-video.vapi | 8 ++++----
src/plugins/rotation/totem-rotation-plugin.vala | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/plugins/rotation/bacon-video.vapi b/src/plugins/rotation/bacon-video.vapi
index a17a6bf..e3b25b3 100644
--- a/src/plugins/rotation/bacon-video.vapi
+++ b/src/plugins/rotation/bacon-video.vapi
@@ -11,9 +11,9 @@ namespace Bacon {
}
[CCode (cname="BvwRotation", cprefix = "BVW_ROTATION_", cheader_filename = "bacon-video-widget.h")]
public enum Rotation {
- R_0 = 0,
- R_90R = 1,
- R_180 = 2,
- R_90L = 3
+ R_ZERO = 0,
+ R_90R = 1,
+ R_180 = 2,
+ R_90L = 3
}
}
diff --git a/src/plugins/rotation/totem-rotation-plugin.vala b/src/plugins/rotation/totem-rotation-plugin.vala
index 43d19b4..efeda89 100644
--- a/src/plugins/rotation/totem-rotation-plugin.vala
+++ b/src/plugins/rotation/totem-rotation-plugin.vala
@@ -87,7 +87,7 @@ class RotationPlugin: GLib.Object, Peas.Activatable
ui_manager.remove_action_group (this.action_group);
// undo transformations
- this.bvw.set_rotation (Bacon.Rotation.R_0);
+ this.bvw.set_rotation (Bacon.Rotation.R_ZERO);
}
public void update_state ()
@@ -119,7 +119,7 @@ class RotationPlugin: GLib.Object, Peas.Activatable
private void cb_file_closed ()
{
// reset the rotation
- this.bvw.set_rotation (Bacon.Rotation.R_0);
+ this.bvw.set_rotation (Bacon.Rotation.R_ZERO);
this.action_group.sensitive = false;
}
@@ -146,7 +146,7 @@ class RotationPlugin: GLib.Object, Peas.Activatable
string state_str = "";
rotation = this.bvw.get_rotation ();
- if (rotation != Bacon.Rotation.R_0) {
+ if (rotation != Bacon.Rotation.R_ZERO) {
state_str = "%u".printf ((uint) rotation);
}
file_info.set_attribute_string (GIO_ROTATION_FILE_ATTRIBUTE, state_str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]