~ubuntu-branches/debian/sid/docky/sid

« back to all changes in this revision

Viewing changes to Docky.Items/Docky.Items/ColoredIconDockItem.cs

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2012-01-19 19:03:38 UTC
  • mfrom: (1.1.14) (10.1.9 experimental)
  • Revision ID: package-import@ubuntu.com-20120119190338-n44q7tmqsrkudvk7
Tags: 2.1.3-2
* Upload to unstable
* debian/watch:
  + Look for xz tarballs from now on

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
using Docky.Menus;
30
30
using Docky.Services;
 
31
using Docky.Services.Prefs;
31
32
using Docky.CairoHelper;
32
33
 
33
34
namespace Docky.Items
66
67
                protected override MenuList OnGetMenuItems ()
67
68
                {
68
69
                        MenuList list = base.OnGetMenuItems ();
69
 
                        list[MenuListContainer.Footer].Add (new Menus.MenuItem (Catalog.GetString ("Reset Color"), "edit-clear", (o, a) => ResetHue (), HueShift == 0));
 
70
                        list[MenuListContainer.Footer].Add (new Menus.MenuItem (Catalog.GetString ("_Reset Color"), "edit-clear", (o, a) => ResetHue (), HueShift == 0));
70
71
                        return list;
71
72
                }
72
73
                
73
74
                protected override void OnScrolled (ScrollDirection direction, ModifierType mod)
74
75
                {
75
 
                        mod &= ~ModifierType.Mod2Mask; // Ignore NumLock
76
 
                        mod &= ~ModifierType.LockMask; // Ignore CapsLock
77
 
                        
78
 
                        if (mod != ModifierType.ShiftMask)
 
76
                        if ((mod & ModifierType.ShiftMask) != ModifierType.ShiftMask)
79
77
                                return;
80
78
                        
81
79
                        int shift = HueShift;