| 1 |
#if defined(Hiro_Action) |
| 2 |
|
| 3 |
namespace hiro { |
| 4 |
|
| 5 |
auto pAction::construct() -> void { |
| 6 |
} |
| 7 |
|
| 8 |
auto pAction::destruct() -> void { |
| 9 |
} |
| 10 |
|
| 11 |
auto pAction::setEnabled(bool enabled) -> void { |
| 12 |
gtk_widget_set_sensitive(widget, enabled); |
| 13 |
} |
| 14 |
|
| 15 |
auto pAction::setFont(const Font& font) -> void { |
| 16 |
pFont::setFont(widget, font); |
| 17 |
} |
| 18 |
|
| 19 |
auto pAction::setVisible(bool visible) -> void { |
| 20 |
gtk_widget_set_visible(widget, visible); |
| 21 |
} |
| 22 |
|
| 23 |
//GTK+ uses _ for mnemonics, __ for _ |
| 24 |
auto pAction::_mnemonic(string text) -> string { |
| 25 |
text.replace("_", "__"); |
| 26 |
return text; |
| 27 |
} |
| 28 |
|
| 29 |
} |
| 30 |
|
| 31 |
#endif |