diff options
author | Guy Harris <guy@alum.mit.edu> | 2008-04-17 02:38:21 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2008-04-17 02:38:21 +0000 |
commit | 1b4b6462e8524baad7e62be8baa58e68762c4036 (patch) | |
tree | f7e4b9b1ec568650fc6a9e13d1f5976b8c4954ea /gtk/main_welcome.c | |
parent | 04daff59de68e69ddbed2568764a99dc082835fc (diff) |
Put a space between the number of bytes (for a file < 1024 bytes) and
"Bytes".
"Interface description" vs. "interface name" isn't Windows vs. UN*X,
it's "has a description" vs. "doesn't have a description" - the lack of
descriptions in UN*X is a result of
1) lack of a mechanism to supply descriptions in some UN*Xes
and
2) lack of code in libpcap to get those descriptions in some
other UN*Xes
and I need to work on fixing 2) (I think it can be dredged out of
FreeBSD 6 and 7, I seem to remember current OpenBSD supplying them, and
for OS X we might as well cheat the way the network preference pane does
and just call en0 the main Ethernet and en1 the AirPort interface).
Use an adverb rather than an adjective to modify a noun, as per Chris
Maynard's suggestion.
svn path=/trunk/; revision=25089
Diffstat (limited to 'gtk/main_welcome.c')
-rw-r--r-- | gtk/main_welcome.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gtk/main_welcome.c b/gtk/main_welcome.c index 3cb3cb9790..4b088ec97c 100644 --- a/gtk/main_welcome.c +++ b/gtk/main_welcome.c @@ -279,7 +279,7 @@ welcome_filename_link_new(const gchar *filename, GtkWidget **label) } else if (stat_buf.st_size/1024 > 10) { g_string_append_printf(str, " %" G_GINT64_MODIFIER "dKB", (gint64) (stat_buf.st_size/1024)); } else { - g_string_append_printf(str, " %" G_GINT64_MODIFIER "dBytes", (gint64) (stat_buf.st_size)); + g_string_append_printf(str, " %" G_GINT64_MODIFIER "d Bytes", (gint64) (stat_buf.st_size)); } } else { g_string_append(str, " (not found)"); @@ -452,11 +452,10 @@ welcome_if_panel_new(void) continue; } -#ifdef _WIN32 - interface_hb = welcome_if_new(if_info->description, &topic_content_bg, g_strdup(if_info->name)); -#else - interface_hb = welcome_if_new(if_info->name, &topic_content_bg, g_strdup(if_info->name)); -#endif + if (if_info->description != NULL) + interface_hb = welcome_if_new(if_info->description, &topic_content_bg, g_strdup(if_info->name)); + else + interface_hb = welcome_if_new(if_info->name, &topic_content_bg, g_strdup(if_info->name)); gtk_box_pack_start(GTK_BOX(panel_vb), interface_hb, FALSE, FALSE, 2); } @@ -652,7 +651,7 @@ welcome_new(void) item_hb = welcome_button(WIRESHARK_STOCK_WIKI, "Security", - "Work with Wireshark as secure as possible", + "Work with Wireshark as securely as possible", GTK_SIGNAL_FUNC(topic_menu_cb), GINT_TO_POINTER(ONLINEPAGE_SECURITY)); gtk_box_pack_start(GTK_BOX(topic_to_fill), item_hb, FALSE, FALSE, 5); |