projects
/
prss.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed status bar content not removed when switching to another article
[prss.git]
/
src
/
webbrowser.c
diff --git
a/src/webbrowser.c
b/src/webbrowser.c
index
ebbfce1
..
bb69e34
100644
(file)
--- a/
src/webbrowser.c
+++ b/
src/webbrowser.c
@@
-22,7
+22,7
@@
#include "webbrowser.h"
static WebKitWebView *view;
#include "webbrowser.h"
static WebKitWebView *view;
-static Gtk
Label
*w_status;
+static Gtk
Statusbar
*w_status;
static gboolean new_window_requested_cbk(WebKitWebView *view,
WebKitWebFrame *frame,
static gboolean new_window_requested_cbk(WebKitWebView *view,
WebKitWebFrame *frame,
@@
-42,10
+42,14
@@
static void hovering_over_link_cbk(WebKitWebView *web_view,
gchar *uri,
gpointer user_data)
{
gchar *uri,
gpointer user_data)
{
+ guint id;
+
+ id = gtk_statusbar_get_context_id(w_status, "info");
+
if (uri)
if (uri)
- gtk_
label_set_label(w_status
, uri);
+ gtk_
statusbar_push(w_status, id
, uri);
else
else
- gtk_
label_set_label(w_status, ""
);
+ gtk_
statusbar_remove_all(w_status, id
);
}
GtkWidget *web_get_widget()
}
GtkWidget *web_get_widget()
@@
-70,7
+74,7
@@
void web_load(const char *str)
webkit_web_view_load_string(view, str, NULL, "UTF-8", "file://");
}
webkit_web_view_load_string(view, str, NULL, "UTF-8", "file://");
}
-void webbrowser_init(Gtk
Label
*status)
+void webbrowser_init(Gtk
Statusbar
*status)
{
w_status = status;
}
{
w_status = status;
}