[gnome-desktop/wip/hadess/fix-ci] wall-clock: More debug in format function



commit 030b01f815d5a101a1c94071a40bcdb29bbfd2af
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 11 01:06:16 2019 +0100

    wall-clock: More debug in format function

 libgnome-desktop/gnome-wall-clock.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/libgnome-desktop/gnome-wall-clock.c b/libgnome-desktop/gnome-wall-clock.c
index 19f416a6..6e616065 100644
--- a/libgnome-desktop/gnome-wall-clock.c
+++ b/libgnome-desktop/gnome-wall-clock.c
@@ -314,6 +314,11 @@ gnome_wall_clock_string_for_datetime (GnomeWallClock      *self,
 {
        const char *format_string;
 
+       g_debug ("clock_format: %s", clock_format == G_DESKTOP_CLOCK_FORMAT_24H ? "24h" : "12h");
+       g_debug ("show_weekday: %s", show_weekday ? "TRUE" : "FALSE");
+       g_debug ("show_full_date: %s", show_full_date ? "TRUE" : "FALSE");
+       g_debug ("show_seconds: %s", show_seconds ? "TRUE" : "FALSE");
+
        if (clock_format == G_DESKTOP_CLOCK_FORMAT_24H) {
                if (show_full_date) {
                        if (show_weekday)
@@ -366,6 +371,8 @@ gnome_wall_clock_string_for_datetime (GnomeWallClock      *self,
                }
        }
 
+       g_debug ("format_string: %s", format_string);
+
        return date_time_format (now, format_string);
 }
 


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