|
Lines 149-159
Link Here
|
| 149 |
// Determine whether the tray is inside a horizontal or vertical |
149 |
// Determine whether the tray is inside a horizontal or vertical |
| 150 |
// panel so the size of the icon can adjust correctly. |
150 |
// panel so the size of the icon can adjust correctly. |
| 151 |
|
151 |
|
| 152 |
if (ParentWindow == null) { |
152 |
if (event_box.ParentWindow == null) { |
| 153 |
return PanelOrientation.Horizontal; |
153 |
return PanelOrientation.Horizontal; |
| 154 |
} |
154 |
} |
| 155 |
|
155 |
|
| 156 |
Gdk.Window top_level_window = ParentWindow.Toplevel; |
156 |
Gdk.Window top_level_window = event_box.ParentWindow.Toplevel; |
| 157 |
|
157 |
|
| 158 |
Gdk.Rectangle rect = top_level_window.FrameExtents; |
158 |
Gdk.Rectangle rect = top_level_window.FrameExtents; |
| 159 |
if (rect.Width < rect.Height) { |
159 |
if (rect.Width < rect.Height) { |