From fecc92e0ea7103f14aa843ac7236feff8a4c093c Mon Sep 17 00:00:00 2001 From: jcid Date: Thu, 11 Oct 2007 20:55:12 +0200 Subject: +- Connected signals to
  • elements (fixes links within lists). - Enabled text and background color-choice in preferences. - Enabled clicking over image links. Patches: place +- Fixed a va_list-related SEGFAULT on 64bit-arch in dStr_vsprintfa(). Patch: Vincent Thomasset +- Fixed void to int conversions for 64bit-arch. Patch: Jorge Arellano, higuita +- Added a strndup() replacement in dw2 Patch: Alexander Becher, Johannes Hofmann, Jorge Arellano +- Fixed calcHashValue() to only return non-negative numbers (was SEGFAULT). - Improved scrolling performance on large pages by copying screen data instead of rendering. Patches: Johannes Hofmann --- src/menu.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/menu.cc') diff --git a/src/menu.cc b/src/menu.cc index 1de42acf..a4c84b5c 100644 --- a/src/menu.cc +++ b/src/menu.cc @@ -57,8 +57,10 @@ public: * TODO: erase the URL on popup close. */ void NewItem::draw() { + DilloUrl *url; + if (flags() & SELECTED) { - DilloUrl *url = a_History_get_url(history_list[((int)user_data())-1]); + url = a_History_get_url(history_list[(VOIDP2INT(user_data()))-1]); a_UIcmd_set_msg(popup_bw, "%s", URL_STR(url)); } Item::draw(); @@ -170,7 +172,7 @@ static void Menu_bugmeter_about_cb(Widget* ) static void Menu_history_cb(Widget *wid, void *data) { int k = event_button(); - int offset = history_direction * (int)data; + int offset = history_direction * VOIDP2INT(data); if (k == 2) { /* middle button, open in a new window */ -- cgit v1.2.3