From 96df021c4e87a284cad20e3cc445ec2b415dcb9b Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 29 Jun 2017 12:00:20 +0200 Subject: 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. --- applets/clock/clock-location-tile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'applets') 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); -- cgit v1.2.1