From d24442ae8b1b84646982cbdf0ff638caf42e1132 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 10 May 2008 13:46:36 +0000 Subject: (svn r13029) -Codechange: more work in the road to getting the WP macros and byte[WINDOW_CUSTOM_SIZE] removed. This step changes the event handling to work directly on the Window class instead of via a function pointer and big switches while keeping backward compatability while we're rewriting the Windows to the new scheme. --- src/widgets/dropdown.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp index 37f0ccdf7..6a3d26f4d 100644 --- a/src/widgets/dropdown.cpp +++ b/src/widgets/dropdown.cpp @@ -177,11 +177,7 @@ static void DropDownMenuWndProc(Window *w, WindowEvent *e) } if (WP(w, dropdown_d).click_delay != 0 && --WP(w,dropdown_d).click_delay == 0) { - WindowEvent e; - e.event = WE_DROPDOWN_SELECT; - e.we.dropdown.button = WP(w, dropdown_d).parent_button; - e.we.dropdown.index = WP(w, dropdown_d).selected_index; - w2->HandleWindowEvent(&e); + w2->OnDropdownSelect(WP(w, dropdown_d).parent_button, WP(w, dropdown_d).selected_index); delete w; return; } -- cgit v1.2.3-70-g09d2