[Xfce4-commits] <xfce4-settings:xrandr-display-settings> Fix missing modes in the UI
Jérôme Guelfucci
noreply at xfce.org
Sat Aug 28 17:42:01 CEST 2010
Updating branch refs/heads/xrandr-display-settings
to 19e06055689d8042a02f136db37d7e2a6156517a (commit)
from 712182aa781dd4aad4507d7ba49aaf81764a9a32 (commit)
commit 19e06055689d8042a02f136db37d7e2a6156517a
Author: Lionel Le Folgoc <mrpouit at gmail.com>
Date: Tue Aug 24 19:39:12 2010 +0200
Fix missing modes in the UI
Inverted logic in the test lead to this issue.
dialogs/display-settings/main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index ee64e67..22e9333 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -595,8 +595,8 @@ display_setting_resolutions_populate (GtkBuilder *builder)
for (n = 0; n < XFCE_RANDR_OUTPUT_INFO (xfce_randr)->nmode; ++n)
{
/* Try to avoid duplicates */
- if (n == 0 || (n > 0 && modes[n].width != modes[n - 1].width
- && modes[n].height != modes[n - 1].height))
+ if (n == 0 || (n > 0 && (modes[n].width != modes[n - 1].width
+ || modes[n].height != modes[n - 1].height)))
{
/* Insert the mode */
More information about the Xfce4-commits
mailing list