changeset 1877:b0ffc141dcc2

remove a FLTK2 workaround
author corvid <corvid@lavabit.com>
date Mon, 24 Jan 2011 16:34:06 +0000
parents 73336563b6e7
children d9895c8b8247
files src/menu.cc
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/menu.cc	Sun Jan 23 23:46:03 2011 +0000
+++ b/src/menu.cc	Mon Jan 24 16:34:06 2011 +0000
@@ -509,7 +509,6 @@
  */
 void a_Menu_file_popup(BrowserWindow *bw, void *v_wid)
 {
-   UI *ui = (UI *)bw->ui;
    Fl_Widget *wid = (Fl_Widget*)v_wid;
 
    static Fl_Menu_Item pm[] = {
@@ -530,9 +529,7 @@
 
    popup_bw = bw;
    popup_x = wid->x();
-   popup_y = wid->y() + wid->h() +
-             // WORKAROUND: ?? wid->y() doesn't count tabs ??
-             (((Fl_Group*)ui->tabs())->children() > 1 ? 20 : 0);
+   popup_y = wid->y() + wid->h();
    a_Url_free(popup_url);
    popup_url = NULL;