From e6f75392c3de89b1446a5f1674991a3961948f98 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Sat, 21 Feb 2004 22:54:50 +0000 Subject: added a help button svn path=/trunk/; revision=10174 --- gtk/capture_dlg.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gtk/capture_dlg.c') 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 @@ -49,6 +49,7 @@ #include #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); -- cgit v1.2.3