Roy's Projects
/
dhcpcd-ui
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a17ed83
)
Add tooltip showing BSSID and flags.
author
Roy Marples
<roy@marples.name>
Thu, 5 Feb 2009 19:40:54 +0000
(19:40 +0000)
committer
Roy Marples
<roy@marples.name>
Thu, 5 Feb 2009 19:40:54 +0000
(19:40 +0000)
menu.c
patch
|
blob
|
history
diff --git
a/menu.c
b/menu.c
index 0145890a110cf7f61ed881ce26298f553c8c26f2..fe5ce9637603cfa431aec9abeb88cc440acb94af 100644
(file)
--- a/
menu.c
+++ b/
menu.c
@@
-102,6
+102,7
@@
add_scan_results(GtkMenu *menu, const struct if_msg *ifm)
double perc;
int strength;
const char *icon;
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;
for (gl = ifm->scan_results; gl; gl = gl->next) {
ifa = (const struct if_ap *)gl->data;
@@
-129,6
+130,10
@@
add_scan_results(GtkMenu *menu, const struct if_msg *ifm)
perc = strength / 100.0;
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(bar), perc);
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);
gtk_widget_show(label);
gtk_widget_show(bar);
gtk_widget_show(image);