www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2012/02/08/06:31:32

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Subject: Re: [geda-user] Patch: change GtkoptionMenu to GtkComboBoxText
(part one)
From: Stefan Salewski <mail AT ssalewski DOT de>
To: geda-user AT delorie DOT com
In-Reply-To: <4F31A80E.8000309@x-eike.de>
References: <4F314AFF DOT 50201 AT x-eike DOT de>
<1328635654 DOT 2423 DOT 12 DOT camel AT AMD64X2 DOT fritz DOT box> <4F31A80E DOT 8000309 AT x-eike DOT de>
Date: Wed, 08 Feb 2012 12:27:09 +0100
Message-ID: <1328700429.2485.19.camel@AMD64X2.fritz.box>
Mime-Version: 1.0
X-Mailer: Evolution 2.32.3
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019