[gnome-desktop] gnome-rr: Add definition for next rotation
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] gnome-rr: Add definition for next rotation
- Date: Fri, 9 Mar 2012 11:10:03 +0000 (UTC)
commit 1746f00f459b60aa7eb440324da60547ddb1a2ca
Author: Bastien Nocera <hadess hadess net>
Date: Fri Mar 9 12:00:59 2012 +0100
gnome-rr: Add definition for next rotation
In gnome-settings-daemon's XRandR plugin, we were relying on -1
meaning "next rotation" so that the "rotate display" button would
work as expected. But given its values, GnomeRRRotation would
probably have been made unsigned, and thus never matching -1.
We now add an "next rotation" member for the benefit of that
XRandR plugin.
Spotted by Sjoerd Simons <sjoerd luon net>
libgnome-desktop/gnome-rr.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr.h b/libgnome-desktop/gnome-rr.h
index ff5cc2d..38e5fb5 100644
--- a/libgnome-desktop/gnome-rr.h
+++ b/libgnome-desktop/gnome-rr.h
@@ -52,6 +52,7 @@ typedef struct {
typedef enum
{
+ GNOME_RR_ROTATION_NEXT = 0,
GNOME_RR_ROTATION_0 = (1 << 0),
GNOME_RR_ROTATION_90 = (1 << 1),
GNOME_RR_ROTATION_180 = (1 << 2),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]