summaryrefslogtreecommitdiff
path: root/ui/gtk/dlg_utils.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2012-02-21 11:59:41 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2012-02-21 11:59:41 +0000
commitb1fa4c19e643704927d09078780cb3b47815a231 (patch)
tree92fe3bc83abe8e93d7d20fe510e8811fa8bc7cbf /ui/gtk/dlg_utils.c
parentf104bae88ac133ce0fb35bbd75db74ec2e3a6998 (diff)
downloadwireshark-b1fa4c19e643704927d09078780cb3b47815a231.tar.gz
From Irene Ruengeler:
* Add support in the GUI for pipes. * Allow the local interfaces to be rescanned via the GUI. * Allow remote interfaces to be added and deleted. The GUI can be extended to support other ways of capturing. svn path=/trunk/; revision=41105
Diffstat (limited to 'ui/gtk/dlg_utils.c')
-rw-r--r--ui/gtk/dlg_utils.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/ui/gtk/dlg_utils.c b/ui/gtk/dlg_utils.c
index 3a77689e0c..5f7352b2be 100644
--- a/ui/gtk/dlg_utils.c
+++ b/ui/gtk/dlg_utils.c
@@ -137,6 +137,8 @@ dlg_button_row_new(const gchar *stock_id_first, ...)
const gchar *save_all = NULL;
const gchar *stop = NULL;
const gchar *yes = NULL;
+ const gchar *refresh = NULL;
+ const gchar *add = NULL;
#ifdef HAVE_GEOIP
const gchar *map = NULL;
#endif /* HAVE_GEOIP */
@@ -169,6 +171,10 @@ dlg_button_row_new(const gchar *stock_id_first, ...)
close = stock_id;
} else if (strcmp(stock_id, GTK_STOCK_CLEAR) == 0) {
clear = stock_id;
+ } else if (strcmp(stock_id, GTK_STOCK_REFRESH) == 0) {
+ refresh = stock_id;
+ } else if (strcmp(stock_id, GTK_STOCK_ADD) == 0) {
+ add = stock_id;
#ifdef HAVE_LIBPCAP
} else if (strcmp(stock_id, WIRESHARK_STOCK_CAPTURE_START) == 0) {
cap_start = stock_id;
@@ -269,6 +275,24 @@ dlg_button_row_new(const gchar *stock_id_first, ...)
buttons--;
}
+ /* do we have a refresh button? -> special handling for it */
+ if (refresh) {
+ button = gtk_button_new_from_stock(refresh);
+ g_object_set_data(G_OBJECT(hbox), refresh, button);
+ gtk_box_pack_start(GTK_BOX(help_hbox), button, FALSE, FALSE, 0);
+ gtk_widget_show(button);
+ buttons--;
+ }
+
+ /* do we have an add button? -> special handling for it */
+ if (add) {
+ button = gtk_button_new_from_stock(add);
+ g_object_set_data(G_OBJECT(hbox), add, button);
+ gtk_box_pack_start(GTK_BOX(help_hbox), button, FALSE, FALSE, 0);
+ gtk_widget_show(button);
+ buttons--;
+ }
+
#ifdef HAVE_GEOIP
/* do we have a map button? -> special handling for it */
if (map) {