[gnome-control-center] display: Sort resolutions by width first



commit 048a9bc85e594eeeac85dd6dc21815eae0c1be99
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Mar 7 17:13:55 2012 +0100

    display: Sort resolutions by width first
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671465

 panels/display/cc-display-panel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index 33846d5..a7ccf13 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -59,7 +59,7 @@ enum {
   WIDTH_COL,
   HEIGHT_COL,
   RATE_COL,
-  AREA_COL,
+  SORT_COL,
   ROTATION_COL,
   NUM_COLS
 };
@@ -353,7 +353,7 @@ add_key (GtkTreeModel *model,
                                          WIDTH_COL, width,
                                          HEIGHT_COL, height,
                                          RATE_COL, rate,
-                                         AREA_COL, width * height,
+                                         SORT_COL, width * 10000 + height,
                                          ROTATION_COL, rotation,
                                          -1);
       return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]