aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-04-02 22:17:14 +0200
committerjcid <devnull@localhost>2008-04-02 22:17:14 +0200
commit963d90761006e0b296f64ea93e29bbac696bae09 (patch)
tree9038d61b5c59a796150b4c75039c5f69decaa1df
parent3406bbcbcd9ea70c802afde7480747170473c1a5 (diff)
- Removed some no longer necessary add() calls from popup menus.
-rw-r--r--src/menu.cc16
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();
}