aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-01-22 23:50:46 +0800
committerXan Lopez <xan@igalia.com>2012-01-22 23:50:46 +0800
commit44f5cfe296ae446aee7a2678ee845a2a2f4c2be3 (patch)
tree1b752876a12dcc85e3825d0152453823fdd6b75b /embed
parentf217a3f328a5ca1aa01ac59c72967e419d70e6a1 (diff)
downloadgsoc2013-epiphany-44f5cfe296ae446aee7a2678ee845a2a2f4c2be3.tar
gsoc2013-epiphany-44f5cfe296ae446aee7a2678ee845a2a2f4c2be3.tar.gz
gsoc2013-epiphany-44f5cfe296ae446aee7a2678ee845a2a2f4c2be3.tar.bz2
gsoc2013-epiphany-44f5cfe296ae446aee7a2678ee845a2a2f4c2be3.tar.lz
gsoc2013-epiphany-44f5cfe296ae446aee7a2678ee845a2a2f4c2be3.tar.xz
gsoc2013-epiphany-44f5cfe296ae446aee7a2678ee845a2a2f4c2be3.tar.zst
gsoc2013-epiphany-44f5cfe296ae446aee7a2678ee845a2a2f4c2be3.zip
ephy-embed: the method to set the statusbar label can be private too
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed.c30
-rw-r--r--embed/ephy-embed.h2
2 files changed, 15 insertions, 17 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index e5ca05b64..36b1773dc 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -150,11 +150,25 @@ ephy_embed_statusbar_get_context_id (EphyEmbed *embed, const char *context_desc
}
static void
+ephy_embed_set_statusbar_label (EphyEmbed *embed, const char *label)
+{
+ EphyEmbedPrivate *priv = embed->priv;
+
+ nautilus_floating_bar_set_label (NAUTILUS_FLOATING_BAR (priv->floating_bar), label);
+
+ if (label == NULL || label[0] == '\0') {
+ gtk_widget_hide (priv->floating_bar);
+ gtk_widget_set_halign (priv->floating_bar, GTK_ALIGN_START);
+ } else
+ gtk_widget_show (priv->floating_bar);
+}
+
+static void
ephy_embed_statusbar_update (EphyEmbed *embed, const char *text)
{
g_return_if_fail (EPHY_IS_EMBED (embed));
- _ephy_embed_set_statusbar_label (embed, text);
+ ephy_embed_set_statusbar_label (embed, text);
}
static guint
@@ -564,20 +578,6 @@ download_requested_cb (WebKitWebView *web_view,
return TRUE;
}
-void
-_ephy_embed_set_statusbar_label (EphyEmbed *embed, const char *label)
-{
- EphyEmbedPrivate *priv = embed->priv;
-
- nautilus_floating_bar_set_label (NAUTILUS_FLOATING_BAR (priv->floating_bar), label);
-
- if (label == NULL || label[0] == '\0') {
- gtk_widget_hide (priv->floating_bar);
- gtk_widget_set_halign (priv->floating_bar, GTK_ALIGN_START);
- } else
- gtk_widget_show (priv->floating_bar);
-}
-
static gboolean
pop_statusbar_later_cb (gpointer data)
{
diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h
index 904355df1..54e44e1d6 100644
--- a/embed/ephy-embed.h
+++ b/embed/ephy-embed.h
@@ -63,8 +63,6 @@ void ephy_embed_remove_top_widget (EphyEmbed *embed,
GtkWidget *widget);
void ephy_embed_auto_download_url (EphyEmbed *embed,
const char *url);
-void _ephy_embed_set_statusbar_label (EphyEmbed *embed,
- const char *label);
G_END_DECLS
#endif