[Xfce4-commits] <xfce4-settings:bluesabre/display-settings> Fix for -1 is list terminator on mirror variable.

Sean Davis noreply at xfce.org
Thu Sep 27 15:20:01 CEST 2012


Updating branch refs/heads/bluesabre/display-settings
         to 207fe4d903bc9ba09b742627f04e0bc99c888ff9 (commit)
       from e4b524ca64eb37f4688e922fc725118314368e8d (commit)

commit 207fe4d903bc9ba09b742627f04e0bc99c888ff9
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Thu Sep 27 09:18:33 2012 -0400

    Fix for -1 is list terminator on mirror variable.

 dialogs/display-settings/main.c       |    1 -
 dialogs/display-settings/xfce-randr.h |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index d7b9c59..79a948a 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -426,7 +426,6 @@ display_setting_positions_populate (GtkBuilder *builder)
     gtk_list_store_set (GTK_LIST_STORE (model), &iter,
                         COLUMN_COMBO_NAME, _("Below"),
                         COLUMN_COMBO_VALUE, XFCE_RANDR_PLACEMENT_DOWN, -1);
-
     
     /* Reconnect the signal */
     g_signal_connect (G_OBJECT (combobox), "changed", G_CALLBACK (display_setting_positions_changed), builder);
diff --git a/dialogs/display-settings/xfce-randr.h b/dialogs/display-settings/xfce-randr.h
index 4f40305..78a0e7e 100644
--- a/dialogs/display-settings/xfce-randr.h
+++ b/dialogs/display-settings/xfce-randr.h
@@ -34,11 +34,11 @@
 #define XFCE_RANDR_POS_Y(randr)           (randr->position[randr->active_output].y)
 #define XFCE_RANDR_ROTATIONS_MASK         (RR_Rotate_0|RR_Rotate_90|RR_Rotate_180|RR_Rotate_270)
 #define XFCE_RANDR_REFLECTIONS_MASK       (RR_Reflect_X|RR_Reflect_Y)
-#define XFCE_RANDR_PLACEMENT_MIRROR       -1
 #define XFCE_RANDR_PLACEMENT_UP           0
 #define XFCE_RANDR_PLACEMENT_RIGHT        1
 #define XFCE_RANDR_PLACEMENT_DOWN         2
 #define XFCE_RANDR_PLACEMENT_LEFT         3
+#define XFCE_RANDR_PLACEMENT_MIRROR       4
 
 /* check for randr 1.3 or better */
 #if RANDR_MAJOR > 1 || (RANDR_MAJOR == 1 && RANDR_MINOR >= 3)


More information about the Xfce4-commits mailing list