summaryrefslogtreecommitdiff
path: root/community/docky/bzr-1798.diff
blob: 4fcfb9fa2bd1bdb81c3e9b547846e749ddec395f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
=== modified file 'Docky.CairoHelper/Docky.CairoHelper/DockySurface.cs'
--- Docky.CairoHelper/Docky.CairoHelper/DockySurface.cs	2010-12-29 15:35:31 +0000
+++ Docky.CairoHelper/Docky.CairoHelper/DockySurface.cs	2011-03-13 17:16:18 +0000
@@ -150,7 +150,7 @@
 		{
 			DockySurface result = new DockySurface (area.Width, area.Height, this);
 			
-			Internal.Show (result.Context, 0 - area.X, 0 - area.Y);
+			Internal.Show (result.Context, -area.X, -area.Y);
 			
 			return result;
 		}

=== modified file 'Docky.Items/Docky.Painters/PagingDockPainter.cs'
--- Docky.Items/Docky.Painters/PagingDockPainter.cs	2011-01-26 04:43:08 +0000
+++ Docky.Items/Docky.Painters/PagingDockPainter.cs	2011-03-13 17:16:18 +0000
@@ -117,7 +117,7 @@
 						ShowBuffer (surface, LastPage, offset);
 					} else {
 						ShowBuffer (surface, Page, Allocation.Width - offset);
-						ShowBuffer (surface, LastPage, 0 - offset);
+						ShowBuffer (surface, LastPage, -offset);
 					}
 					
 					// fade out the edges during a slide

=== modified file 'Docky/Docky/CairoHelper/DockySurface_Extensions.cs'
--- Docky/Docky/CairoHelper/DockySurface_Extensions.cs	2010-12-29 08:12:28 +0000
+++ Docky/Docky/CairoHelper/DockySurface_Extensions.cs	2011-03-13 17:16:18 +0000
@@ -44,15 +44,15 @@
 			double cos, sin;
 			cos = Math.Cos (rotation);
 			sin = Math.Sin (rotation);
-			Matrix m = new Matrix (cos, sin, 0 - sin, cos, point.X, point.Y);
+			Matrix m = new Matrix (cos, sin, -sin, cos, point.X, point.Y);
 			cr.Transform (m);
 			
 			if (zoom != 1)
 				cr.Scale (zoom, zoom);
 			
 			cr.SetSource (self.Internal,
-				0 - self.Width / 2, 
-				0 - self.Height / 2);
+				-self.Width / 2, 
+				-self.Height / 2);
 			
 			cr.PaintWithAlpha (opacity);
 			
@@ -85,7 +85,7 @@
 			double cos, sin;
 			cos = Math.Cos (rotation);
 			sin = Math.Sin (rotation);
-			Matrix m = new Matrix (cos, sin, 0 - sin, cos, point.X, point.Y);
+			Matrix m = new Matrix (cos, sin, -sin, cos, point.X, point.Y);
 			cr.Transform (m);
 			
 			if (zoom != 1)
@@ -97,8 +97,8 @@
 				cr.Scale (1, -1);
 			
 			cr.SetSource (self.Internal, 
-				0 - self.Width / 2, 
-				0 - self.Height / 2);
+				-self.Width / 2, 
+				-self.Height / 2);
 			
 			cr.PaintWithAlpha (opacity * .3);
 			

=== modified file 'Docky/Docky/Interface/DockWindow.cs'
--- Docky/Docky/Interface/DockWindow.cs	2011-03-03 08:59:59 +0000
+++ Docky/Docky/Interface/DockWindow.cs	2011-03-13 17:16:18 +0000
@@ -2749,10 +2749,10 @@
 				} else {
 					switch (Position) {
 					case DockPosition.Top:
-						cr.SetSource (main_buffer.Internal, 0, 0 - HideOffset * ZoomedDockHeight);
+						cr.SetSource (main_buffer.Internal, 0, -HideOffset * ZoomedDockHeight);
 						break;
 					case DockPosition.Left:
-						cr.SetSource (main_buffer.Internal, 0 - HideOffset * ZoomedDockHeight, 0);
+						cr.SetSource (main_buffer.Internal, -HideOffset * ZoomedDockHeight, 0);
 						break;
 					case DockPosition.Right:
 						cr.SetSource (main_buffer.Internal, HideOffset * ZoomedDockHeight, 0);

=== modified file 'Docky/Docky/Menus/DockMenu.cs'
--- Docky/Docky/Menus/DockMenu.cs	2010-10-15 15:32:36 +0000
+++ Docky/Docky/Menus/DockMenu.cs	2011-03-13 17:16:18 +0000
@@ -543,15 +543,15 @@
 				switch (Orientation) {
 				case DockPosition.Top:
 					cr.Scale (1, -1);
-					cr.Translate (0, 0 - background_buffer.Height);
+					cr.Translate (0, -background_buffer.Height);
 					break;
 				case DockPosition.Left:
 					cr.Rotate (Math.PI * .5);
-					cr.Translate (0, 0 - background_buffer.Height);
+					cr.Translate (0, -background_buffer.Height);
 					break;
 				case DockPosition.Right:
 					cr.Rotate (Math.PI * -0.5);
-					cr.Translate (0 - background_buffer.Width, 0);
+					cr.Translate (-background_buffer.Width, 0);
 					break;
 				}
 				

=== modified file 'StandardPlugins/Clock/src/ClockDockItem.cs'
--- StandardPlugins/Clock/src/ClockDockItem.cs	2010-11-21 22:19:54 +0000
+++ StandardPlugins/Clock/src/ClockDockItem.cs	2011-03-13 17:16:18 +0000
@@ -388,20 +388,20 @@
 			double minuteRotation = 2 * Math.PI * (DateTime.Now.Minute / 60.0) + Math.PI;
 			cr.Rotate (minuteRotation);
 			cr.MoveTo (0, radius - radius * .35);
-			cr.LineTo (0, 0 - radius * .15);
+			cr.LineTo (0, -radius * .15);
 			cr.Stroke ();
-			cr.Rotate (0 - minuteRotation);
+			cr.Rotate (-minuteRotation);
 			
 			cr.Color = new Cairo.Color (0, 0, 0);
 			double hourRotation = 2 * Math.PI * (DateTime.Now.Hour / (ShowMilitary ? 24.0 : 12.0)) + 
 					Math.PI + (Math.PI / (ShowMilitary ? 12.0 : 6.0)) * DateTime.Now.Minute / 60.0;
 			cr.Rotate (hourRotation);
 			cr.MoveTo (0, radius - radius * .5);
-			cr.LineTo (0, 0 - radius * .15);
+			cr.LineTo (0, -radius * .15);
 			cr.Stroke ();
-			cr.Rotate (0 - hourRotation);
+			cr.Rotate (-hourRotation);
 			
-			cr.Translate (0 - center, 0 - center);
+			cr.Translate (-center, -center);
 			
 			RenderFileOntoContext (cr, System.IO.Path.Combine (ThemePath, "clock-glass.svg"), radius * 2);
 			RenderFileOntoContext (cr, System.IO.Path.Combine (ThemePath, "clock-frame.svg"), radius * 2);

=== modified file 'Docky/Docky/ConfigurationWindow.cs'
--- Docky/Docky/ConfigurationWindow.cs	2011-02-05 08:06:51 +0000
+++ Docky/Docky/ConfigurationWindow.cs	2011-03-15 07:48:42 +0000
@@ -94,9 +94,10 @@
 			this.SetCompositeColormap ();
 			Stick ();
 			
-			// why 1? because Compiz sucks... thats why!
-			Move (0, 1);
-			SetSizeRequest (Screen.Width, Screen.Height - 1);
+			// make the window extend off screen in all directions
+			// to work around problems with struts
+			Move (-50, -50);
+			SetSizeRequest (Screen.Width + 100, Screen.Height + 100);
 		}
 		
 		void HandleRealized (object sender, EventArgs e)

=== modified file 'Docky/Docky/Interface/DockDragTracker.cs'
--- Docky/Docky/Interface/DockDragTracker.cs	2011-03-10 10:48:09 +0000
+++ Docky/Docky/Interface/DockDragTracker.cs	2011-03-15 07:49:42 +0000
@@ -539,7 +539,7 @@
 				EnableDragTo ();
 			} else if ((Owner.CursorTracker.Modifier & ModifierType.Button1Mask) == ModifierType.Button1Mask) {
 				Gdk.Window bestProxy = BestProxyWindow ();
-				if (proxy_window != bestProxy) {
+				if (bestProxy != null && proxy_window != bestProxy) {
 					proxy_window = bestProxy;
 					Gtk.Drag.DestSetProxy (Owner, proxy_window, DragProtocol.Xdnd, true);
 				}