From d161a8a3308bbaf0ce2cbe966e4ba4d052fca105 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Wed, 18 Jan 2006 18:12:49 +0000 Subject: (svn r3405) - Feature: Make subsidies window pinnable. Don't ask me why this wasn't included in the first round of pinning. --- subsidy_gui.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/subsidy_gui.c b/subsidy_gui.c index 85cc060f7..ee7609b43 100644 --- a/subsidy_gui.c +++ b/subsidy_gui.c @@ -144,23 +144,24 @@ static void SubsidiesListWndProc(Window *w, WindowEvent *e) case WE_CLICK: switch (e->click.widget) { - case 2: HandleSubsidyClick(e->click.pt.y - 25); break; + case 3: HandleSubsidyClick(e->click.pt.y - 25); break; } break; } } static const Widget _subsidies_list_widgets[] = { -{ WWT_CLOSEBOX, RESIZE_NONE, 13, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, -{ WWT_CAPTION, RESIZE_NONE, 13, 11, 629, 0, 13, STR_2025_SUBSIDIES, STR_018C_WINDOW_TITLE_DRAG_THIS}, -{ WWT_PANEL, RESIZE_NONE, 13, 0, 629, 14, 126, 0x0, STR_01FD_CLICK_ON_SERVICE_TO_CENTER}, +{ WWT_CLOSEBOX, RESIZE_NONE, 13, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, +{ WWT_CAPTION, RESIZE_NONE, 13, 11, 617, 0, 13, STR_2025_SUBSIDIES, STR_018C_WINDOW_TITLE_DRAG_THIS}, +{ WWT_STICKYBOX, RESIZE_NONE, 13, 618, 629, 0, 13, STR_NULL, STR_STICKY_BUTTON}, +{ WWT_PANEL, RESIZE_NONE, 13, 0, 629, 14, 126, STR_NULL, STR_01FD_CLICK_ON_SERVICE_TO_CENTER}, { WIDGETS_END}, }; static const WindowDesc _subsidies_list_desc = { -1, -1, 630, 127, WC_SUBSIDIES_LIST,0, - WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, + WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _subsidies_list_widgets, SubsidiesListWndProc }; -- cgit v1.2.3-70-g09d2