[yocto] [matchbox-panel-2][PATCH 23/25] Draw systray icons in their actual locations

Jussi Kukkonen jussi.kukkonen at intel.com
Tue May 3 04:30:42 PDT 2016


Cairo context is now in widget-relative coordinates instead of
window-relative: undo that transform so the icon draw code actually
draws inside the window.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen at intel.com>
---
 applets/systray/na-tray.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/applets/systray/na-tray.c b/applets/systray/na-tray.c
index 7da908f..714bd90 100644
--- a/applets/systray/na-tray.c
+++ b/applets/systray/na-tray.c
@@ -538,6 +538,8 @@ static void
 na_tray_draw_box (GtkWidget *box,
 		  cairo_t   *cr)
 {
+  /* Transform to window-relative coordinates */
+  gtk_cairo_transform_to_window (cr, box, gtk_widget_get_window (box));
   gtk_container_foreach (GTK_CONTAINER (box), na_tray_draw_icon, cr);
 }
 
-- 
2.8.1




More information about the yocto mailing list