Re: [gtk-list] Re: Tooltips for insensitive widgets?



On Wed, 5 May 1999, Tim Janik wrote:

> as you already guessed, GtkTooltips doesn't feature tooltips on insensitive
> widgets for various technical reasons, and that facility is actually not
> very high on our priority list, though we'd of course apprechiate appropriate
> patches ;)
I could imagine such technical reasons and I'm happy that there is a
workaround.
 
> as a workaround (at least for solely insensitive widgets), you can put
> the insensitive widget into a GtkEventBox and set the tooltip on
> the event box, that way, if only the event box's child is insensitive,
> tooltips for the eventbox will still show up.
Could you ship a small code snipped for that.  My problem is that I 
create at first the whole menue using item_factory.  Later on I
check the state of the program and obtain the widgets which have to
be insensitive by gtk_item_factory_get_widget(items, menue_text) . 
But I didn't found any gtk_item_factory_set_widget()
                                        ^^^
function to put the GtkEventBox into the menue structure.  Could
you actually describe how to proceed?

Kind regards

         Andreas.

PS:  By the way:  Would you think, that tooltips on insensitive
     items are reasonable or not, regardingless the technical problems.
     If the effort is to high I would leave them out but I wanted to
     tell the user *why* it is insensitive.  Its a design question.


[X] Against war.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]