1 |
loki_val 08/06/16 19:29:52 |
2 |
|
3 |
Added: banshee-1.0.0-notification-icon.patch |
4 |
Log: |
5 |
Add fix for bug 227447, wrongly sized icon with vertical panel. |
6 |
(Portage version: 2.1.5.5) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 media-sound/banshee/files/banshee-1.0.0-notification-icon.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/banshee/files/banshee-1.0.0-notification-icon.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/banshee/files/banshee-1.0.0-notification-icon.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: banshee-1.0.0-notification-icon.patch |
15 |
=================================================================== |
16 |
If the panel in which the notification area sits is vertical, the icon size |
17 |
will be set to abnormally big. Changing panel to horizontal then back to |
18 |
vertical returns to a normal-sized icon. |
19 |
Bug has been reported upstream[1] and a patch is available. |
20 |
Patch is attached to this bug report. |
21 |
Tried in overlay with adding patch. It compiles and runs fine. |
22 |
|
23 |
[1]: http://bugzilla.gnome.org/show_bug.cgi?id=537679 |
24 |
|
25 |
Index: src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/X11NotificationAreaBox.cs |
26 |
=================================================================== |
27 |
--- src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/X11NotificationAreaBox.cs (revision 4138) |
28 |
+++ src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/X11NotificationAreaBox.cs (working copy) |
29 |
@@ -149,11 +149,11 @@ |
30 |
// Determine whether the tray is inside a horizontal or vertical |
31 |
// panel so the size of the icon can adjust correctly. |
32 |
|
33 |
- if (ParentWindow == null) { |
34 |
+ if (event_box.ParentWindow == null) { |
35 |
return PanelOrientation.Horizontal; |
36 |
} |
37 |
|
38 |
- Gdk.Window top_level_window = ParentWindow.Toplevel; |
39 |
+ Gdk.Window top_level_window = event_box.ParentWindow.Toplevel; |
40 |
|
41 |
Gdk.Rectangle rect = top_level_window.FrameExtents; |
42 |
if (rect.Width < rect.Height) { |
43 |
|
44 |
|
45 |
|
46 |
-- |
47 |
gentoo-commits@l.g.o mailing list |