aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2011-02-21 10:17:18 +0800
committerXan Lopez <xan@gnome.org>2011-02-21 10:17:18 +0800
commitef4cae1d37383028feebe9a25685376b26612018 (patch)
tree301878f45b88ea86ef5a74a494e6173e500e636d /embed
parent91635045ce8c6b1d92c9d6d509565a0b569de15b (diff)
downloadgsoc2013-epiphany-ef4cae1d37383028feebe9a25685376b26612018.tar
gsoc2013-epiphany-ef4cae1d37383028feebe9a25685376b26612018.tar.gz
gsoc2013-epiphany-ef4cae1d37383028feebe9a25685376b26612018.tar.bz2
gsoc2013-epiphany-ef4cae1d37383028feebe9a25685376b26612018.tar.lz
gsoc2013-epiphany-ef4cae1d37383028feebe9a25685376b26612018.tar.xz
gsoc2013-epiphany-ef4cae1d37383028feebe9a25685376b26612018.tar.zst
gsoc2013-epiphany-ef4cae1d37383028feebe9a25685376b26612018.zip
ephy-embed: hide toplevel child widget
Since that's what we add to the overlay, its visible property will be in sync with the child container. Gets rid of bothering 1px visible leftover when statusbar is hidden.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index b1752b477..f53d6851a 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -849,12 +849,18 @@ void
_ephy_embed_set_statusbar_label (EphyEmbed *embed, const char *label)
{
EphyEmbedPrivate *priv = embed->priv;
+ GtkWidget *parent;
+
gtk_label_set_label (GTK_LABEL (priv->statusbar_label), label);
+ parent = gtk_widget_get_parent (priv->statusbar_label);
+ if (parent == NULL)
+ return;
+
if (label == NULL || label[0] == '\0')
- gtk_widget_hide (priv->statusbar_label);
+ gtk_widget_hide (parent);
else
- gtk_widget_show (priv->statusbar_label);
+ gtk_widget_show (parent);
}
static void