Пример #1
0
        // create the tray icon
        public TrayIcon(Plugin plugin)
            : base()
        {
            this.plugin = plugin;

            int width, height;
            IconFactory factory = new IconFactory ();
            factory.LookupIconSize (IconSize.Menu, out width, out height);

            Gdk.Pixbuf icon = new Gdk.Pixbuf (null, "fuse-tray.png", width, height);
            this.Add (new Image (icon));
            this.ButtonPressEvent += tray_click;
            this.EnterNotifyEvent += mouse_enter;
            this.LeaveNotifyEvent += mouse_leave;

            timer.Elapsed += timer_count;

            tray = new Egg.TrayIcon ("Fuse");
        }