diff options
author | jcid <devnull@localhost> | 2008-09-12 22:50:43 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-09-12 22:50:43 +0200 |
commit | f6940d9ad7ee28c7226b8e66798fb9537ae3e238 (patch) | |
tree | 107107039b36532f3a6b7a60c8fbdf211b415b3a /src/menu.cc | |
parent | 1289d19d8b8ccebb8a67adaece6ca8b6a92d2ac8 (diff) |
- Reverted an accidental testing code commit.
Diffstat (limited to 'src/menu.cc')
-rw-r--r-- | src/menu.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/menu.cc b/src/menu.cc index c6a4bb90..111e6182 100644 --- a/src/menu.cc +++ b/src/menu.cc @@ -49,10 +49,10 @@ static int *history_list = NULL; * Used to add the hint for history popup menus, and to remember * the mouse button pressed over a menu item. */ -class CustItem : public Item { +class NewItem : public Item { int EventButton; public: - CustItem (const char* label) : Item(label) { EventButton = 0; }; + NewItem (const char* label) : Item(label) { EventButton = 0; }; int button () { return EventButton; }; void draw(); int handle(int e) { @@ -65,7 +65,7 @@ public: * This adds a call to a_UIcmd_set_msg() to show the URL in the status bar * TODO: erase the URL on popup close. */ -void CustItem::draw() { +void NewItem::draw() { DilloUrl *url; if (flags() & SELECTED) { @@ -217,7 +217,7 @@ static void Menu_bugmeter_about_cb(Widget* ) */ static void Menu_history_cb(Widget *wid, void *data) { - int mb = ((CustItem*)wid)->button(); + int mb = ((NewItem*)wid)->button(); int offset = history_direction * VOIDP2INT(data); if (mb == 2) { @@ -438,7 +438,7 @@ void a_Menu_history_popup(BrowserWindow *bw, int direction) pm->begin(); for (i = 0; history_list[i] != -1; i += 1) { // TODO: restrict title size - it = new CustItem(a_History_get_title(history_list[i], 1)); + it = new NewItem(a_History_get_title(history_list[i], 1)); it->callback(Menu_history_cb, (void*)(i+1)); } pm->type(PopupMenu::POPUP123); |