summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3964141)
We still need it to display the hovered-over link in statusbar.
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(viewer->progress), "");
}
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(viewer->progress), "");
}
+static void over_link_cb(WebKitWebView *view, const gchar *wtf,
+ const gchar *link, FancyViewer *viewer, void *wtfa)
+{
+ /* Display the link in the bottom statusbar. */
+ gtk_label_set_text(GTK_LABEL(viewer->l_link), link);
+}
+
static void load_progress_cb(WebKitWebView *view, GParamSpec* pspec,
FancyViewer *viewer)
{
static void load_progress_cb(WebKitWebView *view, GParamSpec* pspec,
FancyViewer *viewer)
{
G_CALLBACK(load_start_cb), viewer);
g_signal_connect(G_OBJECT(viewer->view), "load-finished",
G_CALLBACK(load_finished_cb), viewer);
G_CALLBACK(load_start_cb), viewer);
g_signal_connect(G_OBJECT(viewer->view), "load-finished",
G_CALLBACK(load_finished_cb), viewer);
+ g_signal_connect(G_OBJECT(viewer->view), "hovering-over-link",
+ G_CALLBACK(over_link_cb), viewer);
g_signal_connect(G_OBJECT(viewer->view), "notify::progress",
G_CALLBACK(load_progress_cb), viewer);
g_signal_connect(G_OBJECT(viewer->view), "notify::progress",
G_CALLBACK(load_progress_cb), viewer);