GNOME Bugzilla – Bug 605723
tool tip offset is back
Last modified: 2010-01-05 02:16:30 UTC
new gnumeric In C3 add a web hyperlink with tooltip "Tooltip" hover over C3 the tooltip appears at about D11 (I see this both in current git as well as 1.9.16)
Note that this problem is also visible when one resizes column widths or row heights. The problem apparently lies inside gnumeric_position_tooltip. note that the comment tooltip appears in teh correct position and does not use gnumeric_position_tooltip.
And the third place where we are using gnumeric_position_tooltip is when we drag a selection and the tooltip is also misplaced.
Note that if in src/gui-util.c in gnm_canvas_get_position ox and oy are forced to zero (ie., gdk_window_get_internal_paint_info would not be used) then the tooltips appear in a reasonable location. I don't understand the reason for that gdk_window_get_internal_paint_info call, so will not be able to fix this confidently.
Moretn would know since he added it (and filed #586756). Anyway, I'm pretty sure that we don't need this call (to gdk_window_get_internal_paint_info) anymore since the scrolling is now implemented in the canvas code and we don't rely on gtk/gdk anymore for that.
My guess is that some gtk+ versions require this and others do not.
Morten: I take it this means that you are not seeing incorrectly placed tooltips on you 2.12 machine? I think there are two possible culprits: the cahnge from foocanvas and gtk versions. If you don't see any problem we should probably disable the gdk_window_get_internal_paint_info call for gtk 2.18 and later.
I don't even get that far. When I start gnumeric and click the insert-hyperlunk button I get this: (/home/welinder/gnome-src/gnumeric/src/.libs/lt-gnumeric:29645): Gtk-CRITICAL **: gtk_size_group_add_widget: assertion `GTK_IS_WIDGET (widget)' failed (/home/welinder/gnome-src/gnumeric/src/.libs/lt-gnumeric:29645): GLib-GObject-WARNING **: invalid (NULL) pointer instance (/home/welinder/gnome-src/gnumeric/src/.libs/lt-gnumeric:29645): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed (/home/welinder/gnome-src/gnumeric/src/.libs/lt-gnumeric:29645): Gtk-CRITICAL **: gtk_toggle_button_set_active: assertion `GTK_IS_TOGGLE_BUTTON (toggle_button)' failed
Scratch that. Something was up with my build. With 2.12 I do not see any misplaced tooltips. Hyperlinks, comments, resize. Note: you have to try way, way down to make sure things work there too.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report. at least for gtk == 2.18 I have tested it down to 32000 rows