aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_dlg.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-02-21 22:54:50 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-02-21 22:54:50 +0000
commite6f75392c3de89b1446a5f1674991a3961948f98 (patch)
tree6d2c4f1b32d82f190cc540571fbade40540282f5 /gtk/capture_dlg.c
parentd216cf1dd64b86a0a0383aed81d7bc2e49166c5a (diff)
added a help button
svn path=/trunk/; revision=10174
Diffstat (limited to 'gtk/capture_dlg.c')
-rw-r--r--gtk/capture_dlg.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c
index f51e5a340c..d834974a97 100644
--- a/gtk/capture_dlg.c
+++ b/gtk/capture_dlg.c
@@ -1,7 +1,7 @@
/* capture_dlg.c
* Routines for packet capture windows
*
- * $Id: capture_dlg.c,v 1.106 2004/02/21 22:28:59 ulfl Exp $
+ * $Id: capture_dlg.c,v 1.107 2004/02/21 22:54:50 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -49,6 +49,7 @@
#include <epan/filesystem.h>
#include "compat_macros.h"
#include "file_dlg.h"
+#include "help_dlg.h"
#ifdef _WIN32
#include "capture-wpcap.h"
@@ -289,7 +290,8 @@ capture_prep(void)
*resolv_fr, *resolv_vb,
*m_resolv_cb, *n_resolv_cb, *t_resolv_cb,
- *bbox, *ok_bt, *cancel_bt;
+ *bbox, *ok_bt, *cancel_bt,
+ *help_bt;
#if GTK_MAJOR_VERSION < 2
GtkAccelGroup *accel_group;
#endif
@@ -708,7 +710,7 @@ capture_prep(void)
gtk_widget_show(t_resolv_cb);
/* Button row: OK and cancel buttons */
- bbox = dlg_button_row_new(GTK_STOCK_OK, GTK_STOCK_CANCEL, NULL);
+ bbox = dlg_button_row_new(GTK_STOCK_OK, GTK_STOCK_CANCEL, GTK_STOCK_HELP, NULL);
gtk_box_pack_start(GTK_BOX(main_vb), bbox, FALSE, FALSE, 5);
gtk_widget_show(bbox);
@@ -719,6 +721,9 @@ capture_prep(void)
cancel_bt = OBJECT_GET_DATA(bbox, GTK_STOCK_CANCEL);
SIGNAL_CONNECT(cancel_bt, "clicked", capture_prep_close_cb, cap_open_w);
+ help_bt = OBJECT_GET_DATA(bbox, GTK_STOCK_HELP);
+ SIGNAL_CONNECT(help_bt, "clicked", help_topic_cb, "Capturing");
+
/* Attach pointers to needed widgets to the capture prefs window/object */
OBJECT_SET_DATA(cap_open_w, E_CAP_IFACE_KEY, if_cb);
OBJECT_SET_DATA(cap_open_w, E_CAP_SNAP_CB_KEY, snap_cb);