[clutter] Add debug note for text direction



commit 4578a87d1d9728c2ca00e0e136c8f8088439b9c8
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Sep 19 11:39:41 2012 +0100

    Add debug note for text direction
    
    It would be nice to have the text direction inside the debug log.

 clutter/clutter-main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c
index 3701605..7e8fe95 100644
--- a/clutter/clutter-main.c
+++ b/clutter/clutter-main.c
@@ -769,6 +769,9 @@ clutter_get_text_direction (void)
         g_warning ("Whoever translated default:LTR did so wrongly.");
     }
 
+  CLUTTER_NOTE (MISC, "Text direction: %s",
+                dir == CLUTTER_TEXT_DIRECTION_RTL ? "rtl" : "ltr");
+
   return dir;
 }
 



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