diff options
author | jcid <devnull@localhost> | 2008-04-02 22:17:14 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-04-02 22:17:14 +0200 |
commit | 963d90761006e0b296f64ea93e29bbac696bae09 (patch) | |
tree | 9038d61b5c59a796150b4c75039c5f69decaa1df /src/menu.cc | |
parent | 3406bbcbcd9ea70c802afde7480747170473c1a5 (diff) |
- Removed some no longer necessary add() calls from popup menus.
Diffstat (limited to 'src/menu.cc')
-rw-r--r-- | src/menu.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/menu.cc b/src/menu.cc index 014668eb..dba66980 100644 --- a/src/menu.cc +++ b/src/menu.cc @@ -276,9 +276,6 @@ void a_Menu_page_popup(BrowserWindow *bw, const DilloUrl *url, // NULL is wildcard load_images_item->user_data(NULL); - // Make the popup a child of the calling UI object - ((Group *)bw->ui)->add(pm); - pm->popup(); } @@ -311,9 +308,6 @@ void a_Menu_link_popup(BrowserWindow *bw, const DilloUrl *url) pm->end(); } - // Make the popup a child of the calling UI object - ((Group *)bw->ui)->add(pm); - pm->popup(); } @@ -371,9 +365,6 @@ void a_Menu_image_popup(BrowserWindow *bw, const DilloUrl *url, load_menuitem->user_data(userdata_url); - // Make the popup a child of the calling UI object - ((Group *)bw->ui)->add(pm); - pm->popup(); a_Url_free(userdata_url); @@ -404,9 +395,6 @@ void a_Menu_bugmeter_popup(BrowserWindow *bw, const DilloUrl *url) pm->end(); } - // Make the popup a child of the calling UI object - //((Group *)bw->ui)->add(pm); - pm->popup(); } @@ -449,10 +437,6 @@ void a_Menu_history_popup(BrowserWindow *bw, int direction) pm->type(PopupMenu::POPUP123); pm->end(); - // Make the popup a child of the calling UI object - // I don't know whether this is necessary... - ((Group *)bw->ui)->add(pm); - pm->popup(); } |