
diff gnome-screensaver-2.28.0.old/src/gs-lock-plug.c gnome-screensaver-2.28.0/src/gs-lock-plug.c
31a32
> #include <langinfo.h>
67a69,70
> #define AUTH_CLOCK_LABEL_FORMAT "<span size=\"small\">%c</span>"
> 
68a72,73
> static void expand_string_for_label (GtkWidget       *label);
> static char *expand_string          (const char      *label);
83a89
>         GtkWidget   *auth_clock_label;
110a117
>         guint        clock_timeout_id;
328a336,363
> static gboolean
> dialog_clock_tick (GSLockPlug *plug)
> {
>         expand_string_for_label(plug->priv->auth_clock_label);
>         gchar *fmttext = expand_string( AUTH_CLOCK_LABEL_FORMAT );
>         gtk_label_set_label (GTK_LABEL (plug->priv->auth_clock_label), fmttext);
>         g_free(fmttext);
>         
>         return TRUE;
> }
> 
> static void
> set_clock_timeout (GSLockPlug *plug)
> {
>         plug->priv->clock_timeout_id = g_timeout_add (1000,
>                                                       (GSourceFunc)dialog_clock_tick,
>                                                       plug);
> }
> 
> static void
> remove_clock_timeout (GSLockPlug *plug)
> {
>         if (plug->priv->clock_timeout_id > 0) {
>                 g_source_remove (plug->priv->clock_timeout_id);
>                 plug->priv->clock_timeout_id = 0;
>         }
> }
> 
737c772
< 
---
>         set_clock_timeout (plug);
746a782
>         remove_clock_timeout ((GSLockPlug *)widget);
1441a1478,1496
>                                 {
>                                         struct tm t;
>                                         time_t itime;
>                                         gchar timestr[20];
>                                         const char *fmt_ampm;
>                                         
>                                         time (&itime);
>                                         localtime_r (&itime, &t);
>                                         fmt_ampm = nl_langinfo (T_FMT_AMPM);
>                                         
>                                         if (fmt_ampm != NULL && strlen(fmt_ampm) != 0)
>                                                 strftime (timestr, sizeof(timestr),
>                                                           fmt_ampm, &t);
>                                         else
>                                                 strftime (timestr, sizeof(timestr),
>                                                           nl_langinfo(T_FMT), &t);
>                                         
>                                         g_string_append (str, timestr);
>                                 }
1554c1609,1615
< 
---
>         
>         plug->priv->auth_clock_label = gtk_label_new (AUTH_CLOCK_LABEL_FORMAT);
>         expand_string_for_label (plug->priv->auth_clock_label);
>         gtk_misc_set_alignment (GTK_MISC (plug->priv->auth_clock_label), 0.5, 0.5);
>         gtk_label_set_use_markup (GTK_LABEL (plug->priv->auth_clock_label), TRUE);
>         gtk_box_pack_start (GTK_BOX (vbox2), plug->priv->auth_clock_label, FALSE, FALSE, 0);
>         
1696a1758
>         plug->priv->auth_clock_label = GTK_WIDGET (gtk_builder_get_object(builder, "auth-clock-label"));
1844a1907,1910
>         if (plug->priv->auth_clock_label != NULL) {
>                 expand_string_for_label (plug->priv->auth_clock_label);
>         }
> 
1922c1988,1989
< 
---
>         remove_clock_timeout (plug);
>   diff gnome-screensaver-2.28.0.old/data/lock-dialog-default.ui gnome-screensaver-2.28.0/data/lock-dialog-default.ui
117a118,141
>                                 <child>
>                                   <object class="GtkLabel" id="auth-clock-label">
>                                     <property name="visible">True</property>
>                                     <property name="label" translatable="yes">&lt;span size="small"&gt;%c&lt;/span&gt;</property>
>                                     <property name="use_underline">False</property>
>                                     <property name="use_markup">True</property>
>                                     <property name="justify">GTK_JUSTIFY_LEFT</property>
>                                     <property name="wrap">False</property>
>                                     <property name="selectable">False</property>
>                                     <property name="xalign">0.5</property>
>                                     <property name="yalign">0.5</property>
>                                     <property name="xpad">0</property>
>                                     <property name="ypad">0</property>
>                                     <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
>                                     <property name="width_chars">-1</property>
>                                     <property name="single_line_mode">False</property>
>                                     <property name="angle">0</property>
>                                   </object>
>                                   <packing>
>                                     <property name="padding">0</property>
>                                     <property name="expand">False</property>
>                                     <property name="fill">False</property>
>                                   </packing>
>                                 </child>
