void AddItem (string label)
		{
			GMailDockItem it = new GMailDockItem (label, this);
			items.Add (it);
			
			SetItems ();
		}
Esempio n. 2
0
        void AddItem(string label)
        {
            GMailDockItem it = new GMailDockItem(label, this);

            items.Add(it);

            SetItems();
        }
Esempio n. 3
0
		public GMailLabel (string labelName)
		{
			if (labelName == GMailDockItem.DefaultLabel)
				ShowActionButton = false;
			
			Name = labelName;
			item = GMailItemProvider.items.First (adi => (adi as GMailDockItem).Atom.CurrentLabel == labelName) as GMailDockItem;

			Icon = "gmail";
			if (item != null) {
				item.IconUpdated += HandleItemIconUpdated;
				SetIcon (item);
			}
		}
Esempio n. 4
0
        public GMailLabel(string labelName)
        {
            if (labelName == GMailDockItem.DefaultLabel)
            {
                ShowActionButton = false;
            }

            Name = labelName;
            item = GMailItemProvider.items.First(adi => (adi as GMailDockItem).Atom.CurrentLabel == labelName) as GMailDockItem;

            Icon = "gmail";
            if (item != null)
            {
                item.IconUpdated += HandleItemIconUpdated;
                SetIcon(item);
            }
        }
Esempio n. 5
0
		void SetIcon (GMailDockItem item)
		{
			Icon = item.Icon;
			HueShift = item.HueShift;
		}
Esempio n. 6
0
 void SetIcon(GMailDockItem item)
 {
     Icon     = item.Icon;
     HueShift = item.HueShift;
 }