~zz/ubino/trunk

« back to all changes in this revision

Viewing changes to src/main_window.vala

  • Committer: Anatoly Kudinov
  • Date: 2010-11-18 00:04:44 UTC
  • Revision ID: zz@rialabs.org-20101118000444-b0dwtoxu1cand3sq
appĀ indicator

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        private ToggleAction toolbarAct;
35
35
 
36
36
        private TrayIcon tray;
 
37
        private AppIndicator.AppIndicator app_ind;
 
38
 
37
39
 
38
40
        private Gdk.Pixbuf logo;
39
41
        private Gdk.Pixbuf logo_fresh;
184
186
                prefs.showTrayChanged.connect(() => {
185
187
                        tray.set_visible(prefs.showTray);
186
188
                });
 
189
                
 
190
                app_ind = new AppIndicator.AppIndicator("ubino-indicator","ubino-tray",AppIndicator.Category.APPLICATIONSTATUS);
 
191
                app_ind.set_status(AppIndicator.Status.ACTIVE);
 
192
                app_ind.set_menu(popup);
187
193
 
188
194
                //hiding on closing main window
189
195
                delete_event.connect((event) => {