diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2011-12-16 02:23:27 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2011-12-16 20:39:50 +0800 |
commit | b0772af83253244ab94f8842d35ea3bda830bd27 (patch) | |
tree | 726555b6b7042840ac02e345e7da38ff84bdd42b | |
parent | 7754542318967d984b563975110a5c3b7873db2e (diff) | |
download | gsoc2013-epiphany-b0772af83253244ab94f8842d35ea3bda830bd27.tar gsoc2013-epiphany-b0772af83253244ab94f8842d35ea3bda830bd27.tar.gz gsoc2013-epiphany-b0772af83253244ab94f8842d35ea3bda830bd27.tar.bz2 gsoc2013-epiphany-b0772af83253244ab94f8842d35ea3bda830bd27.tar.lz gsoc2013-epiphany-b0772af83253244ab94f8842d35ea3bda830bd27.tar.xz 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.
-rw-r--r-- | embed/ephy-embed.c | 5 |
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); } |