[ wxwindows-Bugs-1767485 ] wxGtk uses private API,
breaks with gtk 2.11.6
SourceForge.net
noreply at sourceforge.net
Sat Aug 25 22:47:15 PDT 2007
Bugs item #1767485, was opened at 2007-08-04 00:54
Message generated for change (Comment added) made by pcor
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1767485&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: Fixed
Priority: 9
Private: No
Submitted By: Sebastian Dröge (slomosnail)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxGtk uses private API, breaks with gtk 2.11.6
Initial Comment:
Hi,
wxGtk uses private Gtk API in src/gtk/settings.cpp at least. The GtkTooltips->tip_window field is marked private[0] and it's use in Gtk was stopped with version 2.11.6, thus it's always NULL now.
This makes gtk_widget_ensure_style(tooltips->tip_window) print a critical warning and the pointer dereference one line below gives a segfault.
The change in Gtk is [1]. Please fix this ASAP, otherwise many users will get a broken wxGtk soonish when all distributions switch to 2.12.
Bye
[0] http://svn.gnome.org/viewcvs/gtk%2B/trunk/gtk/gtktooltips.h?revision=18520&view=markup
[1] http://svn.gnome.org/viewcvs/gtk%2B/trunk/gtk/gtktooltips.c?r1=18241&r2=18418
----------------------------------------------------------------------
>Comment By: Paul Cornett (pcor)
Date: 2007-08-25 22:47
Message:
Logged In: YES
user_id=1084745
Originator: NO
Should be fixed now.
----------------------------------------------------------------------
Comment By: Julian Smart (juliansmart)
Date: 2007-08-13 04:06
Message:
Logged In: YES
user_id=59495
Originator: NO
Thanks for the note - good to see that it's fixed in GTK+ but at least now
wxGTK apps won't crash for GTK+ versions prior to 2.11.6, although the
tooltip colour will be hard-coded to something arbitrary.
----------------------------------------------------------------------
Comment By: Michael Schwendt (mschwendt)
Date: 2007-08-10 04:34
Message:
Logged In: YES
user_id=62241
Originator: NO
Julian,
in Fedora 8 development gtk 2.11.6 a patch from upstream svn has been
added, which reintroduces the old GtkTooltips API (in particular the
tip_window pointer), so that wxGTK (and e.g. acroread) don't crash.
----------------------------------------------------------------------
Comment By: Julian Smart (juliansmart)
Date: 2007-08-10 04:06
Message:
Logged In: YES
user_id=59495
Originator: NO
Thanks, I've committed a fix to stop it from crashing, but since I don't
know how to get the colour I'll leave this bug report open: perhaps Robert
or Mart can comment.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1767485&group_id=9863
More information about the wx-dev
mailing list