summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/prompter.cc
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2006-01-13 19:48:55 +0000
committerTaybin Rutkin <taybin@taybin.com>2006-01-13 19:48:55 +0000
commit6817b59169b2c334245f8018d7e3f2235e195aa0 (patch)
tree030f9138e15dbae4d033083c3e5b89a41367345c /libs/gtkmm2ext/prompter.cc
parentf5aef674d3c7a6541932be6e835d4e35f4be7920 (diff)
Moved strip_whitespace_edges() to pbd/whitespace.h
Gtkmm2ext::Prompter::get_result() calls strip_whitespace_edges(), so you don't have to. Removed unused/unecessary/forgotten headers from libpbd. git-svn-id: svn://localhost/trunk/ardour2@270 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/prompter.cc')
-rw-r--r--libs/gtkmm2ext/prompter.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/gtkmm2ext/prompter.cc b/libs/gtkmm2ext/prompter.cc
index 5dd3367380..f61d093083 100644
--- a/libs/gtkmm2ext/prompter.cc
+++ b/libs/gtkmm2ext/prompter.cc
@@ -20,6 +20,8 @@
#include <string>
+#include <pbd/whitespace.h>
+
#include <gtkmm/stock.h>
#include <gtkmm2ext/prompter.h>
@@ -74,8 +76,10 @@ Prompter::change_labels (string okstr, string cancelstr)
}
void
-Prompter::get_result (string &str)
-
+Prompter::get_result (string &str, bool strip)
{
str = entry.get_text ();
+ if (strip) {
+ strip_whitespace_edges (str);
+ }
}