aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2011-09-24 14:16:37 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2011-09-24 14:16:37 +0000
commit6d46e5d01bc9ea7397412faa03814cd198afe6c7 (patch)
treee86358af1ceeafdda810b0c2da520eafdf74b588 /gtk
parent88b162f5651a505aaa581fcb4420b8cecf4c370d (diff)
Use the new remote capturing icon also in the interfaces dialog box.
svn path=/trunk/; revision=39122
Diffstat (limited to 'gtk')
-rw-r--r--gtk/Makefile.common2
-rw-r--r--gtk/capture_if_dlg.c9
2 files changed, 10 insertions, 1 deletions
diff --git a/gtk/Makefile.common b/gtk/Makefile.common
index 89ce964d6d..04486b81dc 100644
--- a/gtk/Makefile.common
+++ b/gtk/Makefile.common
@@ -155,7 +155,7 @@ WIRESHARK_GTK_SRC = \
about_dlg.c main_welcome.c: ../image/wssplash.xpm ../image/wssplash-dev.xpm remote_icons.h
main_statusbar.c: expert_indicators.h
-capture_if_dlg.c: network_icons.h
+capture_if_dlg.c: network_icons.h remote_icons.h
WIRESHARK_TAP_SRC = \
afp_stat.c \
diff --git a/gtk/capture_if_dlg.c b/gtk/capture_if_dlg.c
index dd308046e2..433e5dded9 100644
--- a/gtk/capture_if_dlg.c
+++ b/gtk/capture_if_dlg.c
@@ -75,6 +75,10 @@
#include "../image/toolbar/capture_airpcap_16.xpm"
#endif
+#if defined(HAVE_PCAP_REMOTE)
+#include "gtk/remote_icons.h"
+#endif
+
#ifdef _WIN32
#include "../image/toolbar/capture_ethernet_16.xpm"
#include "../image/toolbar/modem_16.xpm"
@@ -447,6 +451,11 @@ gint if_list_comparator_alph (const void *first_arg, const void *second_arg){
*/
GtkWidget * capture_get_if_icon(const if_info_t* if_info)
{
+#ifdef HAVE_PCAP_REMOTE
+ if (if_info->description && strstr(if_info->description, "on remote node") != NULL ) {
+ return pixbuf_to_widget(remote_sat_pb_data);
+ }
+#endif
#if defined(_WIN32)
/*
* Much digging failed to reveal any obvious way to get something such