double perc;
int strength;
const char *icon;
+ char *tip;
for (gl = ifm->scan_results; gl; gl = gl->next) {
ifa = (const struct if_ap *)gl->data;
perc = strength / 100.0;
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(bar), perc);
+ tip = g_strconcat(ifa->bssid, " ", ifa->flags, NULL);
+ gtk_widget_set_tooltip_text(item, tip);
+ g_free(tip);
+
gtk_widget_show(label);
gtk_widget_show(bar);
gtk_widget_show(image);