aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar dusanx <ef_dva@yahoo.com>2009-04-26 02:49:38 +0200
committerGravatar dusanx <ef_dva@yahoo.com>2009-04-26 02:49:38 +0200
commit1a3b99d98d32f3699603f7cad1f74d9b19d3204a (patch)
tree2fcc748dd603b92eac1ea762d23240a39ab876d9 /uzbl.c
parent6494d60866601788b93a783e91438bab6b353d38 (diff)
Temp title (just to get in sync
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/uzbl.c b/uzbl.c
index 56c7992..127f392 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -47,6 +47,7 @@ static GtkWidget* uri_entry;
static GtkWidget* mainbar;
static WebKitWebView* web_view;
static gchar* main_title;
+static gchar selected_url[500];
/* Behaviour variables */
static gchar* history_file = NULL;
@@ -112,6 +113,14 @@ link_hover_cb (WebKitWebView* page, const gchar* title, const gchar* link, gpoin
//if (link)
// gtk_statusbar_push (main_statusbar, status_context_id, link);
//TODO implementation roadmap pending..
+
+ //ADD HOVER URL TO WINDOW TITLE
+ selected_url[0]='\0';
+ if (link) {
+ strcpy (selected_url,link);
+ }
+ update_title (GTK_WINDOW (main_window));
+
}
static void
@@ -271,6 +280,11 @@ update_title (GtkWindow* window) {
g_string_append (string, " - Uzbl browser");
if (load_progress < 100)
g_string_append_printf (string, " (%d%%)", load_progress);
+
+ if (selected_url[0]!=0) {
+ g_string_append_printf (string, " -> (%s)", selected_url);
+ }
+
gchar* title = g_string_free (string, FALSE);
gtk_window_set_title (window, title);
g_free (title);