From 6d46e5d01bc9ea7397412faa03814cd198afe6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=BCxen?= Date: Sat, 24 Sep 2011 14:16:37 +0000 Subject: Use the new remote capturing icon also in the interfaces dialog box. svn path=/trunk/; revision=39122 --- gtk/Makefile.common | 2 +- gtk/capture_if_dlg.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'gtk') 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 -- cgit v1.2.3