Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=670144
--- Comment #1 from fujiwara tfujiwar@redhat.com 2011-01-19 01:44:52 EST --- Created attachment 474200 --> https://bugzilla.redhat.com/attachment.cgi?id=474200 Test Program
I attached the test program to reproduce this problem. % cc -o test test.c `pkg-config --cflags --libs gtk+-2.0` % ./test
The test program switches the panel icon when you click it. If you run it on XFCE4 desktop, the g_print() and the actual icon are reverse. If you run it on GNOME desktop, the g_print() and the actual icon are same correctly.
GTK2 gtk_status_icon_set_from_file() calls gtk_image_set_from_pixbuf(), and gtk_image_expose() is called later. gtk_image_expose() calls gdk_draw_pixbuf() and gdk_draw_pixbuf() calls gdk_x11_draw_pixbuf(), gdk_x11_draw_pixbuf() calls XRenderComposite().
It seems the rendering is buffered in XFCE4.