diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-10-25 23:54:56 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-10-25 23:54:56 +0000 |
commit | d5ce1ae2be207ee5f11eccbcd233ce378d0e4c8f (patch) | |
tree | a002ff7f7f2eecccaca85882b27a03180e4efe93 /gtk | |
parent | b68d723b81c598eed8e42a75df8243852e302da4 (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
svn path=/trunk/; revision=19693
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"); } } } |