diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-07-31 22:47:38 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-07-31 22:47:38 +0000 |
| commit | 28d25258de5d2274382dbb592f62e21ca8f91729 (patch) | |
| tree | 591dd55aaf5b5a5da03ed826c4c2c8240b636d08 /src/ui/widget/text.cpp | |
| parent | Fix label positioning (diff) | |
| download | inkscape-28d25258de5d2274382dbb592f62e21ca8f91729.tar.gz inkscape-28d25258de5d2274382dbb592f62e21ca8f91729.zip | |
Fix text param and alow run from commandline
(bzr r15017.1.21)
Diffstat (limited to 'src/ui/widget/text.cpp')
| -rw-r--r-- | src/ui/widget/text.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/widget/text.cpp b/src/ui/widget/text.cpp index ec58d5bb4..e6795b138 100644 --- a/src/ui/widget/text.cpp +++ b/src/ui/widget/text.cpp @@ -28,13 +28,13 @@ Text::Text(Glib::ustring const &label, Glib::ustring const &tooltip, { } -const char *Text::getText() const +Glib::ustring const Text::getText() const { g_assert(_widget != NULL); - return static_cast<Gtk::Entry*>(_widget)->get_text().c_str(); + return static_cast<Gtk::Entry*>(_widget)->get_text(); } -void Text::setText(const char* text) +void Text::setText(Glib::ustring const text) { g_assert(_widget != NULL); setProgrammatically = true; // callback is supposed to reset back, if it cares |
