After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 577721 - tooltips appears in wrong position
tooltips appears in wrong position
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: editor: scintilla
SVN TRUNK
Other Linux
: Normal normal
: ---
Assigned To: Naba Kumar
Anjuta maintainers
Depends on: 572754
Blocks:
 
 
Reported: 2009-04-02 13:25 UTC by Massimo Cora'
Modified: 2009-04-26 12:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (112.91 KB, image/png)
2009-04-02 13:27 UTC, Massimo Cora'
  Details
patch for this bug (496 bytes, patch)
2009-04-21 14:14 UTC, Maxim Ermilov
committed Details | Review
fix this in other places (1.03 KB, patch)
2009-04-21 14:21 UTC, Maxim Ermilov
committed Details | Review

Description Massimo Cora' 2009-04-02 13:25:31 UTC
as the subject says, the tooltips in scintilla are wrong positioned.
See screenshot below for an example.
Comment 1 Massimo Cora' 2009-04-02 13:27:25 UTC
Created attachment 131910 [details]
screenshot
Comment 2 Massimo Cora' 2009-04-02 15:47:03 UTC
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?
Comment 3 Johannes Schmid 2009-04-02 15:52:32 UTC
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).
Comment 4 Sébastien Granjoux 2009-04-02 19:15:15 UTC
(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).
Comment 5 Massimo Cora' 2009-04-03 12:00:59 UTC
(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

Comment 6 Massimo Cora' 2009-04-03 13:49:09 UTC
(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?


Comment 7 Massimo Cora' 2009-04-04 09:40:10 UTC
I'll take care of this.
Comment 8 Massimo Cora' 2009-04-20 20:50:14 UTC
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.
Comment 9 Massimo Cora' 2009-04-20 21:13:00 UTC
author notified for a confirmation.

https://sourceforge.net/tracker/?func=detail&aid=2776750&group_id=2439&atid=102439

Comment 10 Massimo Cora' 2009-04-20 21:40:06 UTC
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
Comment 11 Maxim Ermilov 2009-04-21 14:14:28 UTC
Created attachment 133040 [details] [review]
patch for this bug
Comment 12 Maxim Ermilov 2009-04-21 14:21:55 UTC
Created attachment 133041 [details] [review]
fix this in other places
Comment 13 Massimo Cora' 2009-04-26 12:13:34 UTC
thanks for the patches Maxim! I've just committed them.