changeset 371:898e6ca77d7e

- Removed the button sensitivity timeout.
author jcid
date Tue, 30 Sep 2008 18:05:05 +0200
parents 7192a905f8b1
children 49886f14ffe1
files dpi/file.c src/bw.c src/bw.h src/uicmd.cc
diffstat 4 files changed, 2 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/dpi/file.c	Tue Sep 30 17:33:48 2008 +0200
+++ b/dpi/file.c	Tue Sep 30 18:05:05 2008 +0200
@@ -827,7 +827,7 @@
 
    /* Read the dpi command */
    dpip_tag = sock_handler_read(Client->sh);
-   MSG("dpip_tag={%s}\n", dpip_tag);
+   _MSG("dpip_tag={%s}\n", dpip_tag);
 
    if (dpip_tag) {
       cmd = a_Dpip_get_attr(dpip_tag, strlen(dpip_tag), "cmd");
--- a/src/bw.c	Tue Sep 30 17:33:48 2008 +0200
+++ b/src/bw.c	Tue Sep 30 18:05:05 2008 +0200
@@ -58,7 +58,6 @@
    bw->nav_expect_url = NULL;
 
    bw->redirect_level = 0;
-   bw->sens_idle_up = 0;
 
    bw->RootClients = dList_new(8);
    bw->ImageClients = dList_new(8);
--- a/src/bw.h	Tue Sep 30 17:33:48 2008 +0200
+++ b/src/bw.h	Tue Sep 30 18:05:05 2008 +0200
@@ -57,9 +57,6 @@
     * redirection loops (accounts for WEB_RootUrl only) */
    int redirect_level;
 
-   /* flag for button sens idle function */
-   int sens_idle_up;
-
    /* TODO: maybe this fits better in the linkblock.
     * Although having it here avoids having a signal for handling it. */
    int num_page_bugs;
--- a/src/uicmd.cc	Tue Sep 30 17:33:48 2008 +0200
+++ b/src/uicmd.cc	Tue Sep 30 18:05:05 2008 +0200
@@ -849,10 +849,9 @@
 /*
  * Set the sensitivity of back/forw/stop buttons.
  */
-static void a_UIcmd_set_buttons_sens_cb(void *vbw)
+void a_UIcmd_set_buttons_sens(BrowserWindow *bw)
 {
    int sens;
-   BrowserWindow *bw = (BrowserWindow*)vbw;
 
    // Stop
    sens = (dList_length(bw->ImageClients) || dList_length(bw->RootClients));
@@ -864,20 +863,6 @@
    sens = (a_Nav_stack_ptr(bw) < a_Nav_stack_size(bw) - 1 &&
            !bw->nav_expecting);
    BW2UI(bw)->button_set_sens(UI_FORW, sens);
-  
-   bw->sens_idle_up = 0;
-}
-
-
-/*
- * Set the timeout function for button sensitivity
- */
-void a_UIcmd_set_buttons_sens(BrowserWindow *bw)
-{
-   if (bw->sens_idle_up == 0) {
-      a_Timeout_add(0.0, a_UIcmd_set_buttons_sens_cb, bw);
-      bw->sens_idle_up = 1;
-   }
 }
 
 /*