GNOME Bugzilla – Bug 577721
tooltips appears in wrong position
Last modified: 2009-04-26 12:13:34 UTC
as the subject says, the tooltips in scintilla are wrong positioned. See screenshot below for an example.
Created attachment 131910 [details] screenshot
even when debugging the tooltips appears on top-left of the screen. it's then maybe not related to language-support plugin. @Seb: any ideas?
It's a problem in PlatformGtk.cxx! You can a warning that GDK_IS_WINDOW() failed for gdk_window_move() and thus the tooltip is not moved (same for autocompletion btw.). Funny enough it works sometimes correctly (1 out of 10).
(In reply to comment #2) > even when debugging the tooltips appears on top-left of the screen. > it's then maybe not related to language-support plugin. > @Seb: any ideas? I have never seen this here. The tooltips is always displayed at the right position, so perhaps it due to some change in gtk. I have a rather old version (2.10).
(In reply to comment #4) > (In reply to comment #2) > > even when debugging the tooltips appears on top-left of the screen. > > it's then maybe not related to language-support plugin. > > @Seb: any ideas? > > I have never seen this here. The tooltips is always displayed at the right > position, so perhaps it due to some change in gtk. I have a rather old version > (2.10). > maybe that's the problem then, I'm on a $ pkg-config --modversion gtk+-2.0 2.14.7
(In reply to comment #3) > It's a problem in PlatformGtk.cxx! You can a warning that GDK_IS_WINDOW() > failed for gdk_window_move() and thus the tooltip is not moved (same for > autocompletion btw.). Funny enough it works sometimes correctly (1 out of 10). > I saw the warning here too. It's a scintilla problem: their last release is Oct 19 2008. Should we warn them?
I'll take care of this.
hmm debian upgraded the gtk to $ pkg-config --modversion gtk+-2.0 2.16.1 and I don't see the warnings anymore, but the window still remains at pos 0.0.
author notified for a confirmation. https://sourceforge.net/tracker/?func=detail&aid=2776750&group_id=2439&atid=102439
ok, further details. The problem seems to come from http://svn.gnome.org/viewvc/anjuta/trunk/plugins/scintilla/scintilla/PlatGTK.cxx?r1=4770&r2=4912&pathrev=4919 where gtk_widget_set_uposition () is replaced by gdk_window_move (). The former is deprecated since 2.12, and that could explain why Seb has no problems while me and Johannes have them. Please Maxim can you check if you replaced this function elsewhere, and provide a patch to fix these issues? thanks
Created attachment 133040 [details] [review] patch for this bug
Created attachment 133041 [details] [review] fix this in other places
thanks for the patches Maxim! I've just committed them.