Author: mordante
Date: Tue Oct 20 20:44:11 2009
New Revision: 39377

URL: http://svn.gna.org/viewcvs/wesnoth?rev=39377&view=rev
Log:
Directly set the markup mode for the listbox.

Recently added code to directly do it so also use it here.

Modified:
    trunk/src/gui/dialogs/wml_message.cpp

Modified: trunk/src/gui/dialogs/wml_message.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/wml_message.cpp?rev=39377&r1=39376&r2=39377&view=diff
==============================================================================
--- trunk/src/gui/dialogs/wml_message.cpp (original)
+++ trunk/src/gui/dialogs/wml_message.cpp Tue Oct 20 20:44:11 2009
@@ -148,17 +148,10 @@
                        // Add the data.
                        data["icon"]["label"] = icon;
                        data["label"]["label"] = label;
+                       data["label"]["use_markup"] = "true";
                        data["description"]["label"] = description;
+                       data["description"]["use_markup"] = "true";
                        options.add_row(data);
-
-                       // Set the markup flag.
-                       tgrid* grid = options.get_row_grid(i);
-                       assert(grid);
-
-                       find_widget<tcontrol>(grid, "label", 
false).set_use_markup(true);
-
-                       find_widget<tcontrol>(grid, "description", false)
-                               .set_use_markup(true);
                }
 
                // Avoid negetive and 0 since item 0 is already selected.


_______________________________________________
Wesnoth-commits mailing list
Wesnoth-commits@gna.org
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to