~ubuntu-branches/ubuntu/precise/gnome-do/precise-backports

« back to all changes in this revision

Viewing changes to Do.Interface.Linux.Docky/src/Docky.Interface/Docky.Interface.Items/ActionDockItem.cs

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2009-06-27 10:40:45 UTC
  • mfrom: (1.1.8 upstream) (0.1.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090627104045-7st10y1cqr6dpz37
* New upstream release
  + No longer uses a plugin repository.  Fixes many plugin-
    related issues. (LP: #343096, LP: #330025, LP #345001)
  + No longer blocks on "About Do" (LP: #361679)
  + Reacts correctly when a Composite manager is enabled/
    disabled at runtime. (LP: #346347, LP: #390150)
  + Fixes for space reserved by Docky blocking drag and 
    drop operations. (LP: #354729, LP: #347052, LP: #382843)
  + Properly sets "Hidden" key on autostart files in response to 
    "Start on login" option.  (Closes: #526023) (LP: #369988)
* debian/patches/10_application_search_path:
  + Drop; included upstream
* debian/patches/10_sk_translation_update:
  + Import sk translation update from Debian BTS.
    (Closes: #531779)
* debian/patches/11_fix_autostart_when_directory_does_not_exist:
  + Patch from upstream.  Fixes the "Start on login" option when the 
    ~/.config/autostart directory does not exist. (LP: #393729)
* debian/control:
  + Update standards version to 3.8.2; no changes required.
  + Add libtool to Build-Depends; required for autoreconf.
  + Add Recommends: on new gnome-do-docklets package.
* debian/gnome-do.1
  + Fix spelling: GNOME-Do => GNOME Do.
  + Miscelaneous lintian fixes; NAME section, escaping minus signs with \-
* debian/copyright:
  + Update for new copyright holders.
  + Minor update to DEP-5 format

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
                Act action;
38
38
                Do.Universe.Item target_item;
39
39
                
40
 
                string Icon { 
41
 
                        get { return action.Icon; } 
 
40
                protected override string Icon {
 
41
                        get { return action.Icon; }
42
42
                }
43
43
                
44
44
                public ActionDockItem(Act action, Do.Universe.Item targetItem)
48
48
                        SetText (action.Name);
49
49
                }
50
50
                
51
 
                protected override Pixbuf GetSurfacePixbuf (int size)
52
 
                {
53
 
                        Gdk.Pixbuf pbuf = IconProvider.PixbufFromIconName (Icon, size);
54
 
                        if (pbuf.Height != size && pbuf.Width != size) {
55
 
                                double scale = (double)DockPreferences.FullIconSize / Math.Max (pbuf.Width, pbuf.Height);
56
 
                                Gdk.Pixbuf temp = pbuf.ScaleSimple ((int) (pbuf.Width * scale), (int) (pbuf.Height * scale), InterpType.Bilinear);
57
 
                                pbuf.Dispose ();
58
 
                                pbuf = temp;
59
 
                        }
60
 
                        
61
 
                        return pbuf;
62
 
                }
63
 
                
64
 
                public override void Clicked (uint button, ModifierType state, Gdk.Point position)
 
51
                public override void Clicked (uint button, ModifierType state, PointD position)
65
52
                {
66
53
                        if (button == 1) {
67
54
                                Services.Core.PerformActionOnItem (action, target_item);