summaryrefslogtreecommitdiff
path: root/src/monitor-gui.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-07-24 20:58:16 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-07-24 20:58:16 +0200
commitd7de7fe9427df19497b336dd4a5eca61055bd437 (patch)
treea2031bed2f51cebe3d1033bd4c48824426d7c88e /src/monitor-gui.cc
parent7fbc163ed0d3e6d7f803486518bdd36e4c3bbbf6 (diff)
Add description to GuiForm fields
And improve GTK implementation of GuiForm to use GtkGrid instead of GtkBox
Diffstat (limited to 'src/monitor-gui.cc')
-rw-r--r--src/monitor-gui.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/monitor-gui.cc b/src/monitor-gui.cc
index fa43169..806f8da 100644
--- a/src/monitor-gui.cc
+++ b/src/monitor-gui.cc
@@ -503,14 +503,16 @@ public:
new SetupFormListener());
connect_.reset(
GuiFormApply::create("Setup...",
- "Setup a proxy to start monitoring traffic."
- " Leave bind empty to listen on all interfaces.",
+ "Setup a proxy to start monitoring traffic.",
"Setup",
dlg.get()));
connect_->add_string("bind", "Address",
- main_->config()->get("bind", ""));
- connect_->add_string("port", "port",
- main_->config()->get("port", "8080"));
+ main_->config()->get("bind", ""),
+ "Address to listen for proxy connections on."
+ " Leave empty to listen on all interfaces.");
+ connect_->add_string("port", "Port",
+ main_->config()->get("port", "8080"),
+ "Port to listen for proxy connections on.");
connect_->add_listener(lst.get());
if (connect_->show(main_.get())) {
monitor_->attach();
@@ -532,7 +534,8 @@ public:
"Connect",
dlg.get()));
connect_->add_string("address", "Address",
- main_->config()->get("connect", ""));
+ main_->config()->get("connect", ""),
+ "Host and optional port (defaults to 9000)");
connect_->add_listener(lst.get());
if (connect_->show(main_.get())) {
monitor_->attach();