aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@src.gnome.org>2003-12-14 02:22:12 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-12-14 02:22:12 +0800
commit9b633f92abdd89bedd5b7bb9912bd8e78c68f021 (patch)
tree1755a1246db381d175773f9c45cf3e5234970596 /src/ephy-window.c
parent60820903a87b48f1026786ef6cec0a9a8b39a7b9 (diff)
downloadgsoc2013-epiphany-9b633f92abdd89bedd5b7bb9912bd8e78c68f021.tar
gsoc2013-epiphany-9b633f92abdd89bedd5b7bb9912bd8e78c68f021.tar.gz
gsoc2013-epiphany-9b633f92abdd89bedd5b7bb9912bd8e78c68f021.tar.bz2
gsoc2013-epiphany-9b633f92abdd89bedd5b7bb9912bd8e78c68f021.tar.lz
gsoc2013-epiphany-9b633f92abdd89bedd5b7bb9912bd8e78c68f021.tar.xz
gsoc2013-epiphany-9b633f92abdd89bedd5b7bb9912bd8e78c68f021.tar.zst
gsoc2013-epiphany-9b633f92abdd89bedd5b7bb9912bd8e78c68f021.zip
*** empty log message ***
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 4bbd59014..f4054ffb3 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -318,6 +318,7 @@ struct EphyWindowPrivate
gboolean is_ppview;
gboolean has_size;
guint num_tabs;
+ guint tab_message_cid;
guint disable_js_chrome_notifier_id;
guint show_toolbars_notifier_id;
@@ -882,10 +883,19 @@ sync_tab_load_progress (EphyTab *tab, GParamSpec *pspec, EphyWindow *window)
static void
sync_tab_message (EphyTab *tab, GParamSpec *pspec, EphyWindow *window)
{
+ GtkStatusbar *s = GTK_STATUSBAR (window->priv->statusbar);
+ const char *message;
+
if (window->priv->closing) return;
- statusbar_set_message (EPHY_STATUSBAR (window->priv->statusbar),
- ephy_tab_get_status_message (tab));
+ message = ephy_tab_get_status_message (tab);
+
+ gtk_statusbar_pop (s, window->priv->tab_message_cid);
+
+ if (message)
+ {
+ gtk_statusbar_push (s, window->priv->tab_message_cid, message);
+ }
}
static void
@@ -1614,6 +1624,8 @@ ephy_window_init (EphyWindow *window)
gtk_box_pack_start (GTK_BOX (window->priv->main_vbox),
GTK_WIDGET (window->priv->statusbar),
FALSE, TRUE, 0);
+ window->priv->tab_message_cid = gtk_statusbar_get_context_id
+ (GTK_STATUSBAR (window->priv->statusbar), "tab_message");
g_object_ref (ephy_shell);