summaryrefslogtreecommitdiff
path: root/applets/clock/clock-location-tile.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-05-19 17:35:40 -0400
committerlukefromdc <[email protected]>2017-05-21 13:46:22 -0400
commit69f396b25e993e04fe7efcdb8ff99c687d14d568 (patch)
treef512bac32ba8b3e716e5be50d7dbd74f93b83010 /applets/clock/clock-location-tile.c
parent6ae0ea92a925fae699a608b12d2274d52c12695d (diff)
downloadmate-panel-69f396b25e993e04fe7efcdb8ff99c687d14d568.tar.bz2
mate-panel-69f396b25e993e04fe7efcdb8ff99c687d14d568.tar.xz
clock: move GtkButton in another horizontal GtkBox parent
Fixes https://github.com/mate-desktop/mate-panel/issues/520
Diffstat (limited to 'applets/clock/clock-location-tile.c')
-rw-r--r--applets/clock/clock-location-tile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/applets/clock/clock-location-tile.c b/applets/clock/clock-location-tile.c
index fd1ea82c..e263e88b 100644
--- a/applets/clock/clock-location-tile.c
+++ b/applets/clock/clock-location-tile.c
@@ -309,6 +309,7 @@ clock_location_tile_fill (ClockLocationTile *this)
priv->current_label = gtk_label_new ("");
gtk_widget_show (priv->current_label);
gtk_widget_set_no_show_all (priv->current_button, TRUE);
+ gtk_widget_set_valign (priv->current_button, GTK_ALIGN_CENTER);
gtk_container_add (GTK_CONTAINER (priv->current_button), priv->current_label);
gtk_widget_set_tooltip_text (priv->current_button,
_("Set location as current location and use its timezone for this computer"));
@@ -323,13 +324,11 @@ clock_location_tile_fill (ClockLocationTile *this)
strut = gtk_event_box_new ();
gtk_box_pack_start (GTK_BOX (box), strut, TRUE, TRUE, 0);
- gtk_box_pack_start (GTK_BOX (box), priv->current_button, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (box), priv->current_marker, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (box), priv->current_spacer, FALSE, FALSE, 0);
priv->button_group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
gtk_size_group_set_ignore_hidden (priv->button_group, FALSE);
gtk_size_group_add_widget (priv->button_group, strut);
- gtk_size_group_add_widget (priv->button_group, priv->current_button);
/*
* Avoid resizing the popup as the tiles display the current marker,
@@ -342,7 +341,6 @@ clock_location_tile_fill (ClockLocationTile *this)
*/
priv->current_group = gtk_size_group_new (GTK_SIZE_GROUP_BOTH);
gtk_size_group_set_ignore_hidden (priv->current_group, FALSE);
- gtk_size_group_add_widget (priv->current_group, priv->current_button);
gtk_size_group_add_widget (priv->current_group, priv->current_marker);
gtk_size_group_add_widget (priv->current_group, priv->current_spacer);
@@ -358,6 +356,7 @@ clock_location_tile_fill (ClockLocationTile *this)
gtk_box_pack_start (GTK_BOX (tile), priv->clock_face, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (tile), head_section, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (tile), priv->current_button, FALSE, FALSE, 0);
gtk_container_add (GTK_CONTAINER (priv->box), tile);
gtk_container_add (GTK_CONTAINER (this), priv->box);