changeset 1826:cc9a1b620d34

comment out history menu button handling
author corvid <corvid@lavabit.com>
date Wed, 12 Jan 2011 03:26:52 +0000
parents d802a6f7cb3c
children 381e20f15250
files src/menu.cc
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/menu.cc	Wed Jan 12 03:12:02 2011 +0000
+++ b/src/menu.cc	Wed Jan 12 03:26:52 2011 +0000
@@ -41,6 +41,10 @@
 // History popup, list of URL-indexes.
 static int *history_list = NULL;
 
+#if 0
+My guess is that a modified copy of Fl_Menu_ that handles something similar
+to Fl_Menu_Item may be necessary. I sure hope not, though.
+
 /*
  * Local sub class.
  * Used to add the hint for history popup menus, and to remember
@@ -71,7 +75,7 @@
    }
    Item::draw();
 }
-
+#endif
 
 //--------------------------------------------------------------------------
 /*
@@ -280,8 +284,11 @@
  */
 static void Menu_history_cb(Fl_Widget *wid, void *data)
 {
+#if 0
    int mb = ((CustItem*)wid)->button();
+#endif
    int offset = history_direction * VOIDP2INT(data);
+#if 0
    const DilloUrl *url = a_History_get_url(history_list[VOIDP2INT(data)-1]);
 
    if (mb == 2) {
@@ -294,8 +301,11 @@
          a_UIcmd_open_url_nw(popup_bw, url);
       }
    } else {
+#endif
       a_UIcmd_nav_jump(popup_bw, offset, 0);
+#if 0
    }
+#endif
 }
 
 /*