diff options
author | Robert Manea <gotmor@gmail.com> | 2009-09-20 17:56:28 +0200 |
---|---|---|
committer | Robert Manea <gotmor@gmail.com> | 2009-09-20 17:56:28 +0200 |
commit | a4b4914ff82d895710af3bc1834abd881ddab246 (patch) | |
tree | 2e6fcffddcd1958ee4254b920a4b0072f2294ac1 /uzbl-core.c | |
parent | e734b9feff889a5dc4cc78388b018e6891ea5d4f (diff) |
added LOAD_PROGRESS event
Diffstat (limited to 'uzbl-core.c')
-rw-r--r-- | uzbl-core.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/uzbl-core.c b/uzbl-core.c index 5586247..04089d8 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -213,7 +213,8 @@ const char *event_table[LAST_EVENT] = { "FIFO_SET" , "SOCKET_SET" , "INSTANCE_START" , - "INSTANCE_EXIT" + "INSTANCE_EXIT" , + "LOAD_PROGRESS" }; @@ -857,10 +858,15 @@ progress_change_cb (WebKitWebView* page, gint progress, gpointer data) { (void) page; (void) data; uzbl.gui.sbar.load_progress = progress; + gchar *prg_str; g_free(uzbl.gui.sbar.progress_bar); uzbl.gui.sbar.progress_bar = build_progressbar_ascii(uzbl.gui.sbar.load_progress); + prg_str = itos(progress); + send_event(LOAD_PROGRESS, prg_str, NULL); + g_free(prg_str); + update_title(); } |