[totem] main: Add (disabled) debug for scrolling



commit 466ffba7de29febf10f1c5c9b79d14a81810cad0
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Feb 5 10:52:52 2014 +0100

    main: Add (disabled) debug for scrolling

 src/totem-grilo.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index 631d8df..5450a06 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -1337,6 +1337,13 @@ unload_grilo_plugins (TotemGrilo *self)
 static gboolean
 adjustment_over_limit (GtkAdjustment *adjustment)
 {
+#if 0
+       g_message ("adj: %lf", gtk_adjustment_get_value (adjustment));
+       g_message ("page size: %lf", gtk_adjustment_get_page_size (adjustment));
+       g_message ("upper: %lf", gtk_adjustment_get_page_size (adjustment));
+       g_message ("total: %lf", (gtk_adjustment_get_value (adjustment) + gtk_adjustment_get_page_size 
(adjustment)) / gtk_adjustment_get_upper (adjustment));
+       g_message ("limit: %lf", SCROLL_GET_MORE_LIMIT);
+#endif
        if ((gtk_adjustment_get_value (adjustment) + gtk_adjustment_get_page_size (adjustment)) / 
gtk_adjustment_get_upper (adjustment) > SCROLL_GET_MORE_LIMIT) {
                return TRUE;
        } else {


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