summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2007-08-22 18:56:20 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2007-08-22 18:56:20 +0000
commit8043464c24e4f80da76b870ca8af035d51010e2c (patch)
tree1db43eda4da23d1b01afe37bb2167a1b97c3ac6f /gtk
parent2f77efce7da0a079c38609e7bd24cc69937863b1 (diff)
downloadwireshark-8043464c24e4f80da76b870ca8af035d51010e2c.tar.gz
gcc 4 doesn't like my macro for getting the interface description: it says there's an invalid lvalue in it. I don't see what's wrong with it, but replace the macro with a function. Also: don't include the .xpm files in gtk/main.c if we're building without PCAP (as they're not used in that configuration).
svn path=/trunk/; revision=22588
Diffstat (limited to 'gtk')
-rw-r--r--gtk/main.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 61d3755b9a..2abe89975c 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -156,6 +156,7 @@
#include "../epan/emem.h"
#include "file_util.h"
#if GTK_MAJOR_VERSION >= 2
+#ifdef HAVE_LIBPCAP
#include "../image/wsicon16.xpm"
#include "../image/wsicon32.xpm"
#include "../image/wsicon48.xpm"
@@ -164,6 +165,7 @@
#include "../image/wsiconcap32.xpm"
#include "../image/wsiconcap48.xpm"
#endif
+#endif
#ifdef SHOW_WELCOME_PAGE
#include "../image/wssplash.xpm"
#endif
@@ -1608,7 +1610,7 @@ main_cf_cb_live_capture_prepared(capture_options *capture_opts)
if(capture_opts->iface) {
title = g_strdup_printf("%s: Capturing - Wireshark",
- GET_IFACE_DESCR(capture_opts));
+ get_iface_description(capture_opts));
} else {
title = g_strdup_printf("Capturing - Wireshark");
}
@@ -1643,7 +1645,7 @@ main_cf_cb_live_capture_update_started(capture_options *capture_opts)
switching to the next multiple file. */
if(capture_opts->iface) {
title = g_strdup_printf("%s: Capturing - Wireshark",
- GET_IFACE_DESCR(capture_opts));
+ get_iface_description(capture_opts));
} else {
title = g_strdup_printf("Capturing - Wireshark");
}
@@ -1660,7 +1662,7 @@ main_cf_cb_live_capture_update_started(capture_options *capture_opts)
if(capture_opts->iface) {
capture_msg = g_strdup_printf(" %s: <live capture in progress> to file: %s",
- GET_IFACE_DESCR(capture_opts),
+ get_iface_description(capture_opts),
(capture_opts->save_file) ? capture_opts->save_file : "");
} else {
capture_msg = g_strdup_printf(" <live capture in progress> to file: %s",
@@ -1687,7 +1689,7 @@ main_cf_cb_live_capture_update_continue(capture_file *cf)
/* XXX - don't show the highest expert level unless the TCP checksum offloading is "solved" */
if (cf->f_datalen/1024/1024 > 10) {
capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %lld MB [Expert: %s]",
- GET_IFACE_DESCR(capture_opts),
+ get_iface_description(capture_opts),
capture_opts->save_file,
cf->f_datalen/1024/1024,
val_to_str(expert_get_highest_severity(),
@@ -1695,7 +1697,7 @@ main_cf_cb_live_capture_update_continue(capture_file *cf)
"Unknown (%u)"));
} else if (cf->f_datalen/1024 > 10) {
capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %lld KB [Expert: %s]",
- GET_IFACE_DESCR(capture_opts),
+ get_iface_description(capture_opts),
capture_opts->save_file,
cf->f_datalen/1024,
val_to_str(expert_get_highest_severity(),
@@ -1703,7 +1705,7 @@ main_cf_cb_live_capture_update_continue(capture_file *cf)
"Unknown (%u)"));
} else {
capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %lld Bytes [Expert: %s]",
- GET_IFACE_DESCR(capture_opts),
+ get_iface_description(capture_opts),
capture_opts->save_file,
cf->f_datalen,
val_to_str(expert_get_highest_severity(),
@@ -1713,17 +1715,17 @@ main_cf_cb_live_capture_update_continue(capture_file *cf)
#endif
if (cf->f_datalen/1024/1024 > 10) {
capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %" G_GINT64_MODIFIER "d MB",
- GET_IFACE_DESCR(capture_opts),
+ get_iface_description(capture_opts),
capture_opts->save_file,
cf->f_datalen/1024/1024);
} else if (cf->f_datalen/1024 > 10) {
capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %" G_GINT64_MODIFIER "d KB",
- GET_IFACE_DESCR(capture_opts),
+ get_iface_description(capture_opts),
capture_opts->save_file,
cf->f_datalen/1024);
} else {
capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %" G_GINT64_MODIFIER "d Bytes",
- GET_IFACE_DESCR(capture_opts),
+ get_iface_description(capture_opts),
capture_opts->save_file,
cf->f_datalen);
}
@@ -1788,7 +1790,7 @@ main_cf_cb_live_capture_fixed_started(capture_options *capture_opts)
statusbar_pop_file_msg();
capture_msg = g_strdup_printf(" %s: <live capture in progress> to file: %s",
- GET_IFACE_DESCR(capture_opts),
+ get_iface_description(capture_opts),
(capture_opts->save_file) ? capture_opts->save_file : "");
statusbar_push_file_msg(capture_msg);