~ubuntu-branches/debian/squeeze/gnome-do/squeeze

« 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): Iain Lane, Daniel T Chen, Iain Lane, Mirco Bauer
  • Date: 2009-03-22 22:44:39 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090322224439-0dndhbvyqz1u2iu2
Tags: 0.8.1.3+dfsg-1
[ Daniel T Chen ]
* New upstream release (LP: #344578).
  + Gnome Do causes keyboard keys to be remapped (LP: #308143)
  + Docky window too small when summoned (LP: #317381)
  + Minimize/Maximize does not work on all windows (LP: #317908)
  + Docky blocks drag and drop over large areas of the screen
    (LP: #318471)
  + Docky fails to autohide properly when changing themes
    (LP: #318672)
  + Paste via ctrl+v does not work in 1st pane (LP: #318922)
  + Autostart is in wrong assembly (LP: #319114)
  + Docky has no results list (LP: #319797)
  + Docky trash applet does not reflect current state
    (LP: #320621)
  + Docky panels splits into two when over filled (LP: #324648)
  + Docky ui division is inconsistent and confusing
    (LP: #324718)
  + poor performance with two screens (LP: #323294)
  + Docky trash applet doesn't check if trash exists
    (LP: #323453)
  + docky panel splits into two when overfilled (LP: #324648)
  + Docky's UI division is inconsistent and confusing
    (LP: #324718)
  + Do crashes when using a pastebin launcher with docky
    (LP: #325178)
  + Make docky aware of icon theme switch (LP: #328721)
  + Docky doesn't update icon status for some apps that minimize
    to system tray. (LP: #329120)
  + Docky does not work properly with pull-down window
    (LP: #334663)
  + sensitivity of zooming the icons in the dock isn't
    configurable (LP: #336214)
  + Regression: In 0.8.1, "Request attention" is no longer
    indicated (LP: #337594)
  + Clock's Calendar mode auto-hides when leaving the bounds of
    the original dock (LP: #337783)
  + gnome-do does not notice change of icon theme (LP: #204368)
  + Thumbnails are never displayed when files have spaces in
    their names (LP: #311551)
  + Open improperly escapes URLs. (LP: #317416)
  + Docky: Right-click dialog appears on wrong monitor
    (LP: #319062)
  + Dragging items off Docky possible in summon mode
    (LP: #319452)
  + Docky shows icon according to the filename (LP: #320892)
  + Mouse click inactive when Do(cky) is summoned (LP: #324937)
  + Docky trash don't have a right-click menu (LP: #317947)
  + Polish docky's window name labels (LP: #318487)
  + Docky: Scroll on window icon should switch between windows
    of that app (LP: #319805)
  + Docky does not preserve window stack (z?) order when
    switching apps by clicking on app icon (LP: #326661)
  + Docky window switching should be easier. (LP: #327079)
  + Color of indicators on Docky cannot be changed
    (LP: #332936)
  + Do's ResultWindow is using wrong text color (LP: #288771)
  + Docky won't unhide after rev 1053 (LP: #337113)
  + Do's icon label in Docky should be "GNOME Do" instead of
    "Summon GNOME Do" (LP: #338496)
* debian/control:
  + Add librsvg2-2.18-cil build-dep
* debian/patches/03_show_in_all_DEs
  + Drop; fixed in new upstream
* debian/gnome-do.1
  + Update for new version. 

[ Iain Lane ]
* Merge changes with Ubuntu Jaunty
* Autostart behaviour has been fixed upstream (Closes: #513741, #516194).
* debian/patches/10_application_search_path.dpatch: Add. Fix search path so
  that applications are properly indexed. Patch backported from upstream.
* debian/control: Add myself to Uploaders. 
* Really bump versioned dep on libgtk2.0-cil
* debian/control, debian/rules, debian/watch,
  debian/patches/00_remove_bundledlibs.dpatch, debian/README.source:
  Upstream source needs repackaging due to shipped copy of gmcs.exe

[ Mirco Bauer ]
* debian/rules:
  + Made get-orig-source target policy conform.
  + Use dh override targets instead of sequence injection.
* debian/control:
  + Bumped debhelper build-dep to >= 7.0.50
  + Bumped Standards-Version to 3.8.1 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  
 
2
//  Copyright (C) 2009 GNOME Do
 
3
// 
 
4
//  This program is free software: you can redistribute it and/or modify
 
5
//  it under the terms of the GNU General Public License as published by
 
6
//  the Free Software Foundation, either version 3 of the License, or
 
7
//  (at your option) any later version.
 
8
// 
 
9
//  This program is distributed in the hope that it will be useful,
 
10
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
//  GNU General Public License for more details.
 
13
// 
 
14
//  You should have received a copy of the GNU General Public License
 
15
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
// 
 
17
 
 
18
using System;
 
19
using System.Collections.Generic;
 
20
 
 
21
using Cairo;
 
22
using Gdk;
 
23
using Gtk;
 
24
 
 
25
using Do.Interface;
 
26
using Do.Universe;
 
27
using Do.Platform;
 
28
 
 
29
using Docky.Utilities;
 
30
 
 
31
namespace Docky.Interface
 
32
{
 
33
        
 
34
        
 
35
        public class ActionDockItem : AbstractDockItem
 
36
        {
 
37
                Act action;
 
38
                Do.Universe.Item target_item;
 
39
                
 
40
                string Icon { 
 
41
                        get { return action.Icon; } 
 
42
                }
 
43
                
 
44
                public ActionDockItem(Act action, Do.Universe.Item targetItem)
 
45
                {
 
46
                        this.action = action;
 
47
                        this.target_item = targetItem;
 
48
                        SetText (action.Name);
 
49
                }
 
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)
 
65
                {
 
66
                        if (button == 1) {
 
67
                                Services.Core.PerformActionOnItem (action, target_item);
 
68
                        }
 
69
                        
 
70
                        base.Clicked (button, state, position);
 
71
                }
 
72
 
 
73
        }
 
74
}