summaryrefslogtreecommitdiff
path: root/applets/clock
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-06-29 12:00:20 +0200
committerraveit65 <[email protected]>2017-07-02 10:22:42 +0200
commitd43dda4b8dbb9377289c61b715a0a14dc7e2ff8e (patch)
tree958cd5e3e98209ee21a67cde608fa82301fda440 /applets/clock
parent0b60b4bc66c8aae24a255b3bf82e07a59a2a9d07 (diff)
downloadmate-panel-d43dda4b8dbb9377289c61b715a0a14dc7e2ff8e.tar.bz2
mate-panel-d43dda4b8dbb9377289c61b715a0a14dc7e2ff8e.tar.xz
clock: set width_chars for time label
fixes https://github.com/mate-desktop/mate-panel/issues/594 Note: in my language setting width_chars to 20 is minimum value to avoid a jumping clock UI, if hovering over another location which use another day. Maybe we need to increase the chosen value for other languages.
Diffstat (limited to 'applets/clock')
-rw-r--r--applets/clock/clock-location-tile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/applets/clock/clock-location-tile.c b/applets/clock/clock-location-tile.c
index 6e1d36b6..6a927b99 100644
--- a/applets/clock/clock-location-tile.c
+++ b/applets/clock/clock-location-tile.c
@@ -288,6 +288,7 @@ clock_location_tile_fill (ClockLocationTile *this)
gtk_box_pack_start (GTK_BOX (head_section), priv->city_label, FALSE, FALSE, 0);
priv->time_label = gtk_label_new (NULL);
+ gtk_label_set_width_chars (GTK_LABEL (priv->time_label), 20);
gtk_widget_set_margin_end (priv->time_label, 3);
#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (priv->time_label), 0.0);