[gnome-desktop: 1/2] Say when we start trying to assign a CRTC



commit 415ff9f57669a3f3e5b0e8550b5d027579424266
Author: Federico Mena Quintero <federico novell com>
Date:   Fri Apr 9 14:41:12 2010 -0500

    Say when we start trying to assign a CRTC
    
    We use this to know if there were CRTCs at all, as opposed to not having
    any modes for a particular CRTC.
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 libgnome-desktop/gnome-rr-config.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr-config.c b/libgnome-desktop/gnome-rr-config.c
index 6db57dd..5bc573b 100644
--- a/libgnome-desktop/gnome-rr-config.c
+++ b/libgnome-desktop/gnome-rr-config.c
@@ -1631,15 +1631,19 @@ real_assign_crtcs (GnomeRRScreen *screen,
 
     for (i = 0; crtcs[i] != NULL; ++i)
     {
+	GnomeRRCrtc *crtc = crtcs[i];
+	int crtc_id = gnome_rr_crtc_get_id (crtc);
 	int pass;
 
+	g_string_append_printf (accumulated_error,
+				_("Trying modes for CRTC %d\n"),
+				crtc_id);
+
 	/* Make two passes, one where frequencies must match, then
 	 * one where they don't have to
 	 */
 	for (pass = 0; pass < 2; ++pass)
 	{
-	    GnomeRRCrtc *crtc = crtcs[i];
-	    int crtc_id = gnome_rr_crtc_get_id (crtc);
 	    GnomeRROutput *gnome_rr_output = gnome_rr_screen_get_output_by_name (screen, output->name);
 	    GnomeRRMode **modes = gnome_rr_output_list_modes (gnome_rr_output);
 	    int j;



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