[gnome-control-center/gnome-3-4] display: Do not add preferred mode to drop down in clone mode.
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-4] display: Do not add preferred mode to drop down in clone mode.
- Date: Fri, 21 Sep 2012 12:51:33 +0000 (UTC)
commit 072638781d0a26c9951a4a614a88557029aa7da3
Author: Cyrus Lien <cyrus lien canonical com>
Date: Tue Aug 7 14:23:21 2012 +0800
display: Do not add preferred mode to drop down in clone mode.
Use preferred resolution to switch to mirror mode will popup error
messages if preferred resolution is not a common resolution.
https://bugzilla.gnome.org/show_bug.cgi?id=680969
panels/display/cc-display-panel.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index ec14a35..112c531 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -804,8 +804,10 @@ rebuild_resolution_combo (CcDisplayPanel *self)
for (i = 0; modes[i] != NULL; ++i)
add_mode (self, modes[i], output_width, output_height, preferred_id);
- /* And force the preferred mode in the drop-down */
- add_mode (self, mode, output_width, output_height, preferred_id);
+ /* And force the preferred mode in the drop-down (when not in clone mode)
+ * https://bugzilla.gnome.org/show_bug.cgi?id=680969 */
+ if (!gnome_rr_config_get_clone (self->priv->current_configuration))
+ add_mode (self, mode, output_width, output_height, preferred_id);
current = make_resolution_string (output_width, output_height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]