[gnome-control-center] Fix the layout-outputs-horizontally helper
- From: Federico Mena Quintero <federico src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-control-center] Fix the layout-outputs-horizontally helper
- Date: Mon, 8 Jun 2009 21:31:47 -0400 (EDT)
commit 9281a911cf86eda6e2b0e2d142d062d1d0d05e16
Author: Federico Mena Quintero <federico novell com>
Date: Sun May 31 13:52:26 2009 -0500
Fix the layout-outputs-horizontally helper
The horizontal coordinate was not always being updated.
Also, ensure that outputs are at y=0.
Signed-off-by: Federico Mena Quintero <federico novell com>
---
capplets/display/xrandr-capplet.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c
index e966899..015feaf 100644
--- a/capplets/display/xrandr-capplet.c
+++ b/capplets/display/xrandr-capplet.c
@@ -818,10 +818,11 @@ lay_out_outputs_horizontally (App *app)
GnomeOutputInfo *output;
output = app->current_configuration->outputs[i];
- if (output->connected && output->on)
+ if (output->connected && output->on) {
output->x = x;
-
- x += output->width;
+ output->y = 0;
+ x += output->width;
+ }
}
/* Second pass, all the black screens */
@@ -831,10 +832,11 @@ lay_out_outputs_horizontally (App *app)
GnomeOutputInfo *output;
output = app->current_configuration->outputs[i];
- if (!(output->connected && output->on))
+ if (!(output->connected && output->on)) {
output->x = x;
-
- x += output->width;
+ output->y = 0;
+ x += output->width;
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]