[gimp/gimp-2-10] app: show time of last version update check.



commit 9d03027fb33b8638593099c6c99210a65d75a572
Author: Jehan <jehan girinstud io>
Date:   Mon Mar 30 14:52:18 2020 +0200

    app: show time of last version update check.
    
    As noted on IRC, after the first update check on a given day, it looks
    like the check button does nothing. Therefore also display the check
    time to clearly show the button click was taken into account (simply
    there are no updates, hence only displayed check time is updated).
    
    (cherry picked from commit a05b08511242f975ae63f8c814d104bf803bf62e)

 app/dialogs/about-dialog.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/app/dialogs/about-dialog.c b/app/dialogs/about-dialog.c
index 0629621fa8..797396db06 100644
--- a/app/dialogs/about-dialog.c
+++ b/app/dialogs/about-dialog.c
@@ -360,12 +360,15 @@ about_dialog_add_update (GimpAboutDialog *dialog,
   if (config->check_update_timestamp > 0)
     {
       gchar *subtext;
+      gchar *time;
 
       datetime = g_date_time_new_from_unix_local (config->check_update_timestamp);
       date = g_date_time_format (datetime, "%x");
-      subtext = g_strdup_printf (_("Last checked on %s"), date);
+      time = g_date_time_format (datetime, "%X");
+      subtext = g_strdup_printf (_("Last checked on %s at %s"), date, time);
       g_date_time_unref (datetime);
       g_free (date);
+      g_free (time);
 
       text = g_strdup_printf ("%s\n<i>%s</i>",
                               _("Check for updates"), subtext);


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