| 1 |
namespace phoenix { |
| 2 |
|
| 3 |
void pAction::setEnabled(bool enabled) { |
| 4 |
gtk_widget_set_sensitive(widget, enabled); |
| 5 |
} |
| 6 |
|
| 7 |
void pAction::setVisible(bool visible) { |
| 8 |
gtk_widget_set_visible(widget, visible); |
| 9 |
} |
| 10 |
|
| 11 |
void pAction::constructor() { |
| 12 |
} |
| 13 |
|
| 14 |
void pAction::orphan() { |
| 15 |
} |
| 16 |
|
| 17 |
//GTK+ uses _ for mnemonics, __ for _ |
| 18 |
//transform so that & is used for mnemonics, && for & |
| 19 |
string pAction::mnemonic(string text) { |
| 20 |
text.transform("&_", "\x01\x02"); |
| 21 |
text.replace("\x01\x01", "&"); |
| 22 |
text.transform("\x01", "_"); |
| 23 |
text.replace("\x02", "__"); |
| 24 |
return text; |
| 25 |
} |
| 26 |
|
| 27 |
void pAction::setFont(string font) { |
| 28 |
pFont::setFont(widget, font); |
| 29 |
} |
| 30 |
|
| 31 |
} |