[gnome-control-center] RANDR - Don't sort the outputs before creating the labeler



commit 04d2ad2b45e2de12c3ef379352277834d745d909
Author: Federico Mena Quintero <federico novell com>
Date:   Wed Aug 5 19:56:41 2009 -0500

    RANDR - Don't sort the outputs before creating the labeler
    
    We used to sort the outputs by their X coordinate, maybe to display a list of them in a
    reasonable order.  However, we don't display such a list at all, so it doesn't make
    sense to sort the outputs.  This also makes the capplet use the same ordering for outputs
    as gnome-settings-daemon for GnomeRRLabeler's purposes, so that the colors for the outputs
    match in both the capplet and g-s-d.
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 capplets/display/xrandr-capplet.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c
index fb37656..0187485 100644
--- a/capplets/display/xrandr-capplet.c
+++ b/capplets/display/xrandr-capplet.c
@@ -118,15 +118,6 @@ idle_free (gchar *s)
     return s;
 }
 
-static int
-compare_outputs (const void *p1, const void *p2)
-{
-    GnomeOutputInfo *const *o1 = p1;
-    GnomeOutputInfo *const *o2 = p2;
-
-    return (**o1).x - (**o2).x;
-}
-
 static void
 on_screen_changed (GnomeRRScreen *scr,
 		   gpointer data)
@@ -152,16 +143,6 @@ on_screen_changed (GnomeRRScreen *scr,
     }
 #endif
 
-#if 0
-    g_debug ("sorting");
-#endif
-    /* Sort outputs according to X coordinate */
-    for (i = 0; app->current_configuration->outputs[i] != NULL; ++i)
-	;
-
-    qsort (app->current_configuration->outputs, i, sizeof (GnomeOutputInfo *),
-	   compare_outputs);
-
     if (app->labeler) {
 	gnome_rr_labeler_hide (app->labeler);
 	g_object_unref (app->labeler);



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