Add a tooltip to tell users they can click to see the other IP addresses for
the selected interface.

svn path=/trunk/; revision=52792
This commit is contained in:
Jeff Morriss 2013-10-23 14:41:30 +00:00
parent 5abe9d8a89
commit be86384b34
1 changed files with 1 additions and 0 deletions

View File

@ -787,6 +787,7 @@ capture_if_refresh_if_list(void)
if (get_ip_addr_count(device.if_info.addrs) > 1) {
/* More than one IP address, make it possible to toggle */
g_object_set_data(G_OBJECT(eb), CAPTURE_IF_IP_ADDR_LABEL, data.ip_lb);
gtk_widget_set_tooltip_text(eb, "Click to see additional IP addresses");
g_signal_connect(eb, "enter-notify-event", G_CALLBACK(ip_label_enter_cb), NULL);
g_signal_connect(eb, "leave-notify-event", G_CALLBACK(ip_label_leave_cb), NULL);
g_signal_connect(eb, "button-press-event", G_CALLBACK(ip_label_press_cb), device.if_info.addrs);