diff options
author | raveit65 <[email protected]> | 2017-06-29 12:00:20 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-07-02 10:31:44 +0200 |
commit | 96df021c4e87a284cad20e3cc445ec2b415dcb9b (patch) | |
tree | c0d7494aa251ceb59c5793d221568e6850dcca03 /applets | |
parent | f9b26cd79b439e0f29cbee5c4178f152443de729 (diff) | |
download | mate-panel-96df021c4e87a284cad20e3cc445ec2b415dcb9b.tar.bz2 mate-panel-96df021c4e87a284cad20e3cc445ec2b415dcb9b.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')
-rw-r--r-- | applets/clock/clock-location-tile.c | 1 |
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); |