Author: alink
Date: Sat Jun 14 23:37:36 2008
New Revision: 27183

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27183&view=rev
Log:
Add a textbox filter to the add-on manager.
But currently give some false-positive because the filter apply on icons too.
(will be fixed but already useful and not really a problem for general use)

Modified:
    trunk/src/game.cpp

Modified: trunk/src/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=27183&r1=27182&r2=27183&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Sat Jun 14 23:37:36 2008
@@ -1419,6 +1419,11 @@
                gui::menu *addon_menu = new gui::menu(disp().video(), options, 
false, -1,
                        gui::dialog::max_menu_width, &sorter, &addon_style, 
false);
                addon_dialog.set_menu(addon_menu);
+
+               gui::filter_textbox* filter = new 
gui::filter_textbox(disp().video(),
+                       _("Filter: "), options, addon_dialog, 300);
+               addon_dialog.set_textbox(filter);
+
                const int index = addon_dialog.show();
                if(index < 0) {
                        return;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to