wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src help.cpp


From: Isaac Clerencia
Subject: [Wesnoth-cvs-commits] wesnoth/src help.cpp
Date: Sat, 09 Apr 2005 07:31:51 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Isaac Clerencia <address@hidden>        05/04/09 11:31:51

Modified files:
        src            : help.cpp 

Log message:
        Change the Help system menu to work with just one click

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/help.cpp.diff?tr1=1.88&tr2=1.89&r1=text&r2=text

Patches:
Index: wesnoth/src/help.cpp
diff -u wesnoth/src/help.cpp:1.88 wesnoth/src/help.cpp:1.89
--- wesnoth/src/help.cpp:1.88   Sat Apr  9 09:46:12 2005
+++ wesnoth/src/help.cpp        Sat Apr  9 11:31:51 2005
@@ -1500,7 +1500,7 @@
 }
 
 help_menu::help_menu(CVideo &video, section const &toplevel, int max_height)
-       : gui::menu(video, empty_string_vector, false, max_height),
+       : gui::menu(video, empty_string_vector, true, max_height),
          toplevel_(toplevel), chosen_topic_(NULL), selected_item_(&toplevel, 
"") 
 {
        update_visible_items(toplevel_);
@@ -1615,8 +1615,6 @@
 int help_menu::process()
 {
        int res = menu::process();
-       if (double_clicked())
-               res = selection();
        if (!visible_items_.empty() && (unsigned)res < visible_items_.size()) {
                selected_item_ = visible_items_[res];
                if (selected_item_.sec != NULL) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]