diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-10-25 23:54:56 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-10-25 23:54:56 +0000 |
commit | 00d8942ed359250613055a220bb69b75c2e200e5 (patch) | |
tree | a002ff7f7f2eecccaca85882b27a03180e4efe93 /gtk | |
parent | 5de36c306fac98c706ee980171f54b07f5bb0529 (diff) |
the labels of the airpcap toolbar, e.g. "Not a valid Wireless Interface" are pretty misleading. I've changed it to "AirPcap interface: Not selected" which might be more helpful
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19693 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk')
-rwxr-xr-x | gtk/airpcap_gui_utils.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk/airpcap_gui_utils.c b/gtk/airpcap_gui_utils.c index 82e68fa38a..19f1a87cc6 100755 --- a/gtk/airpcap_gui_utils.c +++ b/gtk/airpcap_gui_utils.c @@ -137,7 +137,7 @@ if(if_info != NULL) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(airpcap_toolbar_decryption),FALSE); gtk_signal_handler_unblock_by_func (GTK_OBJECT(airpcap_toolbar_decryption),GTK_SIGNAL_FUNC(airpcap_toolbar_encryption_cb), airpcap_tb); - if_label_text = g_strdup_printf("%s %s\t","Current Wireless Interface: #",airpcap_get_if_string_number(if_info)); + if_label_text = g_strdup_printf("AirPcap Interface: #%s", airpcap_get_if_string_number(if_info)); gtk_label_set_text(GTK_LABEL(airpcap_toolbar_label),if_label_text); g_free(if_label_text); } @@ -148,14 +148,15 @@ else gtk_widget_set_sensitive(airpcap_tb,FALSE); gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(airpcap_toolbar_crc_filter_combo)->entry),""); gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(airpcap_toolbar_channel)->entry),""); - gtk_label_set_text(GTK_LABEL(airpcap_toolbar_label),"Not a valid Wireless Interface"); + gtk_label_set_text(GTK_LABEL(airpcap_toolbar_label),"AirPcap interface: Not selected"); } else { + /* this shouldn't be visible as the toolbar is hidden if no AirPcap available */ gtk_widget_set_sensitive(airpcap_tb,FALSE); gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(airpcap_toolbar_crc_filter_combo)->entry),""); gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(airpcap_toolbar_channel)->entry),""); - gtk_label_set_text(GTK_LABEL(airpcap_toolbar_label),"No Wireless Interface Found"); + gtk_label_set_text(GTK_LABEL(airpcap_toolbar_label),"AirPcap interface: None available"); } } } @@ -204,7 +205,7 @@ if(if_info != NULL) gtk_signal_handler_unblock_by_func (GTK_OBJECT(airpcap_toolbar_decryption),GTK_SIGNAL_FUNC(airpcap_toolbar_encryption_cb), airpcap_tb); - if_label_text = g_strdup_printf("%s %s\t","Current Wireless Interface: #",airpcap_get_if_string_number(if_info)); + if_label_text = g_strdup_printf("AirPcap Interface: #%s", airpcap_get_if_string_number(if_info)); gtk_label_set_text(GTK_LABEL(airpcap_toolbar_label),if_label_text); g_free(if_label_text); } @@ -215,14 +216,15 @@ else gtk_widget_set_sensitive(airpcap_tb,FALSE); gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(airpcap_toolbar_crc_filter_combo)->entry),""); gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(airpcap_toolbar_channel)->entry),""); - gtk_label_set_text(GTK_LABEL(airpcap_toolbar_label),"Not a valid Wireless Interface"); + gtk_label_set_text(GTK_LABEL(airpcap_toolbar_label),"AirPcap interface: Not selected"); } else { + /* this shouldn't be visible as the toolbar is hidden if no AirPcap available */ gtk_widget_set_sensitive(airpcap_tb,FALSE); gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(airpcap_toolbar_crc_filter_combo)->entry),""); gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(airpcap_toolbar_channel)->entry),""); - gtk_label_set_text(GTK_LABEL(airpcap_toolbar_label),"No Wireless Interface Found"); + gtk_label_set_text(GTK_LABEL(airpcap_toolbar_label),"AirPcap interface: None available"); } } } |