Thu 25 Apr 2013 07:02:34 AM UTC, comment #4:
Coincidentally (?) there is a new email on the gtk-list which I append below because I don't know how to reference it. I was going to say that if the default is not right then gtk should change it, and if it needs customization then some "theme" thing needs to be used - which may then expose some bug in Denemo ignoring themes....
From: Yclept Nemo <orbisvicis@gmail.com>
To: -unavailable-
Subject: Customize GtkTooltip position
Date: 04/25/13 05:03:05
I've settled on subclassing GtkTooltip:
. create a new type, GTK_TYPE_TOOLTIP_POSITION
. add three new instance members, gint position_x, gint position_y,
gboolean position_override
. override the class function gtk_tooltip_position: if
position_override: gtk_window_move to position_x and position_y;
position_override = FALSE, otherwise: call parent (original)
gtk_tooltip_position.
However, I can't figure out how to override the "query-tooltip" signal
and "query-tooltip" default handler to use GTK_TYPE_TOOLTIP_POSITION
instead of GTK_TYPE_TOOLTIP.
Also, I'm not clear at what point gtk_tooltip_init is called. Does the
new "query-tooltip" signal registered (g_signal_new) in gtkwidget.c
create a new GTK_TYPE_TOOLTIP object?
sincerely,
_____________________________________________
gtk-list mailing list
-unavailable-
https://mail.gnome.org/mailman/listinfo/gtk-list
|