Author: mordante
Date: Mon Apr  7 20:51:46 2008
New Revision: 25658

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25658&view=rev
Log:
control::label std::string -> t_string

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

Modified: trunk/src/gui/widgets/control.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/control.cpp?rev=25658&r1=25657&r2=25658&view=diff
==============================================================================
--- trunk/src/gui/widgets/control.cpp (original)
+++ trunk/src/gui/widgets/control.cpp Mon Apr  7 20:51:46 2008
@@ -82,7 +82,7 @@
        twidget::set_size(rect);
 }
 
-void tcontrol::set_label(const std::string& label)
+void tcontrol::set_label(const t_string& label)
 {
        if(label == label_) {
                return;

Modified: trunk/src/gui/widgets/control.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/control.hpp?rev=25658&r1=25657&r2=25658&view=diff
==============================================================================
--- trunk/src/gui/widgets/control.hpp (original)
+++ trunk/src/gui/widgets/control.hpp Mon Apr  7 20:51:46 2008
@@ -44,9 +44,9 @@
                { if(visible_ != visible) { visible_ = visible; set_dirty();} }
        bool get_visible() const { return visible_; }
 
-       void set_label(const std::string& label);
+       void set_label(const t_string& label);
 
-       const std::string& label() const { return label_; }
+       const t_string& label() const { return label_; }
 
        // Note setting the tooltip_ doesn't dirty an object.
        void set_tooltip(const t_string& tooltip) { tooltip_ = tooltip; }
@@ -87,7 +87,7 @@
        bool visible_;
 
        //! The label associated with a lot of widgets to show a (non editable) 
text.
-       std::string label_;
+       t_string label_;
 
        //! When hovering a tooltip with extra information can show up. (FIXME 
implement)
        t_string tooltip_;


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

Reply via email to