From 40a32bb976a00d9f79b6368eda02461a74c74988 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 18 Oct 2009 20:56:38 +0000 Subject: [PATCH] (svn r17811) -Codechange: make HasEditBoxFocus a private function of QueryString because it's not meant to be used for determining whether the given widget actually has focus (it also checks the OSK edit box) --- src/querystring_gui.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/querystring_gui.h b/src/querystring_gui.h index e378b4ebfe..5ce383e746 100644 --- a/src/querystring_gui.h +++ b/src/querystring_gui.h @@ -51,7 +51,9 @@ struct QueryString { free((void*)this->orig); } +private: bool HasEditBoxFocus(const Window *w, int wid) const; +public: void DrawEditBox(Window *w, int wid); void HandleEditBox(Window *w, int wid); HandleEditBoxResult HandleEditBoxKey(Window *w, int wid, uint16 key, uint16 keycode, Window::EventState &state);