Mail Archives: geda-user/2012/02/08/06:31:32
On Tue, 2012-02-07 at 23:39 +0100, Eike Krumbacher wrote:
> >
> > When you are subscribed to gtk-app-devel-list you may have seen my
> > recent question
>
> Sorry, I'm not.
>
OK, I will look for other gtk lists...
> > I really tried hard to provide an example code for the problem in the
> > last post (my C GTK skills are not really good), but no replies...
> >
>
> * You need to call g_object_set_property() or similar with the
> property "has-tooltip". In this case only, your callback gets executed.
>
Yes, gtk_tree_view_set_tooltip_column () sets the has-tooltip property,
and the callback is executed. But the return value FALSE/TRUE of this
handler has no effect, it is not possible to suppress the tooltip. Of
course I could inspect the GTK sources...
> * if you insert a button into your liststore.c file, your callback can call
> g_object_set_property( treeview, "has-tooltip", a_gvalue ) and this a_gvalue
> can change each time you hit the button.
> With this, you can toggle the tooltips.
>
> I don't know, if this is best practice. There may be some better solutions.
>
My problem was, that I have many treeviews, and it should be possible to
suppress tooltips imediately for all of them. I think what I can do is
recursively walk though all my widgets, check if it a treewiew, and then
enable or disable tooltips. But I am not sure if this is the smartest
solution.
Indeed this is a minor problem, but getting no useful replies from that
gtk list may be a hint that gtk is nearly death now, as some people
always say.
Best regards,
Stefan Salewski
- Raw text -