I’m using following code to display a notfication icon in ubuntu 11.10 (gtk-sharp 2.12)
StatusIcon icon = StatusIcon.NewFromStock(Stock.Harddisk);
icon.Visible = true;
but the icon does not appear.
Do you have any advice?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Newer releases of Ubuntu (using Unity) use a new system/library for notification icons called Application Indicators using the appindicator library. I suggest you look at using appindicator-sharp to create the indicator. You can see a sample patch for how it was implemented in Tomboy here. In order to have something that works for both Unity/Ubuntu and other traditional desktop environments, I suggest you take an approach similar to the one in Tomboy where at runtime you detect which style “notification icon” you should create.