Changing Tooltips "On The Fly"
- From: jseymour LinxNet com (Jim Seymour)
- To: gtk-app-devel-list gnome org
- Subject: Changing Tooltips "On The Fly"
- Date: Sat, 12 Jan 2002 12:23:57 -0500 (EST)
Hi All,
I want to do something perhaps a bit odd. I'd like to be able to
change a tooltip's text "on the fly" in response to asynchronous and
irregular external events.
Now it seems that once a tooltip has been added to a widget, the only
thing you can get back via a query is a pointer to GtkTooltipsData via
gtk_tooltips_data_get(). The on-line docs don't *say* so, but I assume
that structures *tip_text member is g_malloc()'d.
So can I simply g_free() that pointer, g_malloc() a new one, and copy
in my new text?
Thanks,
Jim
--
Jim Seymour | PGP Public Key available at:
jseymour LinxNet com | http://www.uk.pgp.net/pgpnet/pks-commands.html
http://jimsun.LinxNet.com |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]