diff options
author | jcid <devnull@localhost> | 2008-09-18 00:16:38 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-09-18 00:16:38 +0200 |
commit | f9da96dd24c8f8c83a88d0ed77d562aa456a33c4 (patch) | |
tree | 6a950a2728516159bde5d3d0da5c932cbbb21542 /src/menu.cc | |
parent | d61666920e33d15d25ac6381e4f4c64f66165493 (diff) |
- Implemented tabbed browsing.
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 111e6182..c6a4bb90 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 NewItem : public Item { +class CustItem : public Item { int EventButton; public: - NewItem (const char* label) : Item(label) { EventButton = 0; }; + CustItem (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 NewItem::draw() { +void CustItem::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 = ((NewItem*)wid)->button(); + int mb = ((CustItem*)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 NewItem(a_History_get_title(history_list[i], 1)); + it = new CustItem(a_History_get_title(history_list[i], 1)); it->callback(Menu_history_cb, (void*)(i+1)); } pm->type(PopupMenu::POPUP123); |