Commit 44f5cfe2 authored by Xan Lopez's avatar Xan Lopez

ephy-embed: the method to set the statusbar label can be private too

parent f217a3f3
......@@ -149,12 +149,26 @@ ephy_embed_statusbar_get_context_id (EphyEmbed *embed, const char *context_desc
return id;
}
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)
{
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment