Ejemplo n.º 1
0
        public AbstractDockItem()
        {
            ScalableRendering = true;
            Progress          = 0;
            BadgeText         = "";
            icon_buffers      = new DockySurface[2];
            badgeColors       = new Cairo.Color[2];
            redraw            = new bool[2];
            state_times       = new Dictionary <ItemState, DateTime> ();
            foreach (ItemState val in Enum.GetValues(typeof(ItemState)))
            {
                state_times[val] = new DateTime(0);
            }
            Gtk.IconTheme.Default.Changed += HandleIconThemeChanged;
            RemoteMenuItems = new Docky.Menus.MenuList();

            AppDomain.CurrentDomain.ProcessExit += HandleProcessExit;
        }
Ejemplo n.º 2
0
		public AbstractDockItem ()
		{
			ScalableRendering = true;
			Progress = 0;
			BadgeText = "";
			icon_buffers = new DockySurface[2];
			badgeColors = new Cairo.Color[2];
			redraw = new bool[2];
			state_times = new Dictionary<ItemState, DateTime> ();
			foreach (ItemState val in Enum.GetValues (typeof(ItemState)))
				state_times[val] = new DateTime (0);
			Gtk.IconTheme.Default.Changed += HandleIconThemeChanged;
			RemoteMenuItems = new Docky.Menus.MenuList ();
			
			AppDomain.CurrentDomain.ProcessExit += HandleProcessExit;
		}