aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2011-12-16 02:23:27 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2011-12-16 20:39:50 +0800
commitb0772af83253244ab94f8842d35ea3bda830bd27 (patch)
tree726555b6b7042840ac02e345e7da38ff84bdd42b /embed
parent7754542318967d984b563975110a5c3b7873db2e (diff)
downloadgsoc2013-epiphany-b0772af83253244ab94f8842d35ea3bda830bd27.tar.gz
gsoc2013-epiphany-b0772af83253244ab94f8842d35ea3bda830bd27.tar.zst
gsoc2013-epiphany-b0772af83253244ab94f8842d35ea3bda830bd27.zip
EphyEmbed: reset the alignment of the statusbar when hidden
So that it shows to the left by default. The double get_parent() is ugly and we should probably hide the implementation details of the statusbar in a separate class.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 3ae0b014e..d7366cc97 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -436,9 +436,10 @@ _ephy_embed_set_statusbar_label (EphyEmbed *embed, const char *label)
if (parent == NULL)
return;
- if (label == NULL || label[0] == '\0')
+ if (label == NULL || label[0] == '\0') {
gtk_widget_hide (parent);
- else
+ gtk_widget_set_halign (gtk_widget_get_parent (parent), GTK_ALIGN_START);
+ } else
gtk_widget_show (parent);
}