GNOME Bugzilla – Bug 350107
[SexyTooltip] sexy_tooltip_position_to_widget positions widget off by size of window decorations
Last modified: 2014-08-30 13:19:48 UTC
sexy_tooltip_position_to_widget () positions the tooltip up and to the left by the size of the window decorations. This is because it uses gdk_window_get_root_origin; should be gdk_window_get_origin. This is with gtk+-2.10.1.
Created attachment 70284 [details] sexytooltip.c Testcase. Compile with gcc sexytooltip.c $(pkg-config --cflags --libs libsexy).
Created attachment 70285 [details] [review] sexy-tooltip-origin.patch Patch.
Can you show me some screenshots of the before and after on your system with that test case? Here, it looks even more incorrect after. Also, did you mean to compute the location in your enter() function and then call two separate position_to_* functions?
Created attachment 72097 [details] before.png
Created attachment 72098 [details] after.png
(In reply to comment #3) > Can you show me some screenshots of the before and after on your system with > that test case? Here, it looks even more incorrect after. Also, did you mean to > compute the location in your enter() function and then call two separate > position_to_* functions? Um. I guess that was a testcase and also a check of the proposed patch (the calculated position is that in sexy_tooltip_position_to_widget, with gdk_window_get_origin for gdk_window_get_root_origin; swap round the code to get the old and proposed new behaviours).
Far more serious: when used on a notification area icon, gdk_window_get_root_origin() always returns (0,0), positioning the tooltip at the origin. See http://bugzilla.gnome.org/show_bug.cgi?id=345592#c35 Please?
Yes, it would be good to fix this upstream rather than have to hack around it in rhythmbox, better link to problem: bug #345592 comment #35
libsexy has not seen any releases since 2007: http://releases.chipx86.com/libsexy/libsexy/ and the homepage is down and I have no idea where one could find a codebase. So this project is not under active development anymore and it looks unlikely that there will be any further active development. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again.