~ubuntu-branches/ubuntu/natty/gnome-do/natty

« back to all changes in this revision

Viewing changes to Do.Interface.Linux.Docky/src/Docky.Interface/LayoutUtils.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
Tags: 0.8.2+dfsg-1
* 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:
60
60
                        monitor_geo = Gdk.Screen.Default.GetMonitorGeometry (DockPreferences.Monitor);
61
61
                }
62
62
                
63
 
                public static Gdk.Rectangle MonitorGemonetry ()
 
63
                public static Gdk.Rectangle MonitorGeometry ()
64
64
                {
65
65
                        return monitor_geo;
66
66
                }
 
67
                
 
68
                public static Gdk.Rectangle RelativeRectangleToRootPoint (this Gdk.Rectangle relativePoint, Gtk.Window window)
 
69
                {
 
70
                        Gdk.Rectangle main;
 
71
                        if (window is DockWindow)
 
72
                                (window as DockWindow).GetBufferedPosition (out main.X, out main.Y);
 
73
                        else
 
74
                                window.GetPosition (out main.X, out main.Y);
 
75
                        return new Gdk.Rectangle (main.X + relativePoint.X, main.Y + relativePoint.Y, relativePoint.Width, relativePoint.Height);
 
76
                }
67
77
 
68
78
                public static Gdk.Point RelativePointToRootPoint (this Gdk.Point relativePoint, Gtk.Window window)
69
79
                {
70
80
                        Gdk.Rectangle main;
71
 
                        window.GetPosition (out main.X, out main.Y);
 
81
                        if (window is DockWindow)
 
82
                                (window as DockWindow).GetBufferedPosition (out main.X, out main.Y);
 
83
                        else
 
84
                                window.GetPosition (out main.X, out main.Y);
72
85
                        return new Gdk.Point (main.X + relativePoint.X, main.Y + relativePoint.Y);
73
86
                }
74
87