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

            items.Add(it);

            SetItems();
        }
		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);
			}
		}
Exemple #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);
            }
        }
		void SetIcon (GMailDockItem item)
		{
			Icon = item.Icon;
			HueShift = item.HueShift;
		}
Exemple #6
0
 void SetIcon(GMailDockItem item)
 {
     Icon     = item.Icon;
     HueShift = item.HueShift;
 }