Author: mordante
Date: Mon Jun 23 20:59:05 2008
New Revision: 27448

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27448&view=rev
Log:
Let ttext_box::mouse_left_button_down inherit from ttext_ so it can grab the 
keyboard focus.

Modified:
    trunk/src/gui/widgets/text_box.cpp
    trunk/src/gui/widgets/text_box.hpp

Modified: trunk/src/gui/widgets/text_box.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/text_box.cpp?rev=27448&r1=27447&r2=27448&view=diff
==============================================================================
--- trunk/src/gui/widgets/text_box.cpp (original)
+++ trunk/src/gui/widgets/text_box.cpp Mon Jun 23 20:59:05 2008
@@ -203,9 +203,11 @@
        dragging_ |= start_selection;
 }
 
-//! Inherited from twidget.
 void ttext_box::mouse_left_button_down(tevent_handler& event)
 {
+       // Inherit.
+       ttext_::mouse_left_button_down(event);
+
        DBG_G_E << "Text box: left mouse down.\n";
 
        handle_mouse_selection(event, true);

Modified: trunk/src/gui/widgets/text_box.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/text_box.hpp?rev=27448&r1=27447&r2=27448&view=diff
==============================================================================
--- trunk/src/gui/widgets/text_box.hpp (original)
+++ trunk/src/gui/widgets/text_box.hpp Mon Jun 23 20:59:05 2008
@@ -118,7 +118,7 @@
        //! Handles the selection in a mouse down or mouse move event.
        void handle_mouse_selection(tevent_handler& event, const bool 
start_selection);
 
-       //! Inherited from twidget.
+       /** Inherited from ttext_. */
        void mouse_left_button_down(tevent_handler& event);
 
        //! Inherited from twidget.


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

Reply via email to