This patch adds AppIndicator support to wicd. The attached patch is relative to 1.7.2.4-4 in Ubuntu's distribution of wicd but it should easily port to the repository version.
Because of how AppIndicator works, I had to change a couple of things. First, AppIndicator does not support tooltips or actions on clicking or right-clicking the icon. I thus added a menu item at the top of the menu that has the text of the tooltip as its label and that when clicked brings up the GUI. Second, AFAICT, AppIndicator does not support notification on PRELIGHT which wicd uses to trigger a rescan. I thus added a menu item for explicitly triggering a rescan.
Thanks go to David Paleino (dpaleino) for comment #6. It helped me figure out how to implement this.
This patch adds AppIndicator support to wicd. The attached patch is relative to 1.7.2.4-4 in Ubuntu's distribution of wicd but it should easily port to the repository version.
Because of how AppIndicator works, I had to change a couple of things. First, AppIndicator does not support tooltips or actions on clicking or right-clicking the icon. I thus added a menu item at the top of the menu that has the text of the tooltip as its label and that when clicked brings up the GUI. Second, AFAICT, AppIndicator does not support notification on PRELIGHT which wicd uses to trigger a rescan. I thus added a menu item for explicitly triggering a rescan.
Thanks go to David Paleino (dpaleino) for comment #6. It helped me figure out how to implement this.