Author: alink
Date: Tue Aug 21 01:45:22 2007
New Revision: 19697
URL: http://svn.gna.org/viewcvs/wesnoth?rev=19697&view=rev
Log:
Display the hotkey in the "hotkeys settings" menu, even if it's a special
mark-up character
Modified:
trunk/src/preferences_display.cpp
Modified: trunk/src/preferences_display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/preferences_display.cpp?rev=19697&r1=19696&r2=19697&view=diff
==============================================================================
--- trunk/src/preferences_display.cpp (original)
+++ trunk/src/preferences_display.cpp Tue Aug 21 01:45:22 2007
@@ -227,7 +227,8 @@
name << i->get_description();
str << name.str();
str << COLUMN_SEPARATOR;
- str << i->get_name();
+ // this trick allow to display char identical to markup
character
+ str << font::NULL_MARKUP << i->get_name();
menu_items.push_back(str.str());
}
@@ -304,7 +305,7 @@
newhk.set_key(character, keycode, (mod &
KMOD_SHIFT) != 0,
(mod & KMOD_CTRL) != 0, (mod &
KMOD_ALT) != 0, (mod & KMOD_LMETA) != 0);
- menu_.change_item(menu_.selection(), 1,
newhk.get_name());
+ menu_.change_item(menu_.selection(), 1,
font::NULL_MARKUP + newhk.get_name());
};
}
if (save_button.pressed()) {
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits