[epiphany] ephy-embed: hide toplevel child widget
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-embed: hide toplevel child widget
- Date: Mon, 21 Feb 2011 02:21:25 +0000 (UTC)
commit ef4cae1d37383028feebe9a25685376b26612018
Author: Xan Lopez <xan gnome org>
Date: Mon Feb 21 03:17:18 2011 +0100
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.
embed/ephy-embed.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index b1752b4..f53d685 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]