[Glade-devel] Glade 3 development

Damon Chaplin damon@karuna.uklinux.net
21 Apr 2004 22:47:27 +0100


On Wed, 2004-04-21 at 22:19, Joaquin Cuenca Abela wrote:

> >  o The tooltip property isn't working. For lots of widgets it doesn't
> >    even appear.
> 
> Is there any widget that should not have a tooltip?  If all the widgets
> should have it, we can put it on gtkwidget.xml

Generally only widgets with their own windows can have tooltips.
Though a few widgets have InputOnly windows which work as well.
Glade 2 has this code:


  /* Only widgets with windows can have tooltips at present. Though
     buttons seem to be a special case, as they are NO_WINDOW widgets
     but have InputOnly windows, so tooltip still work. In GTK+ 2
     menuitems are like buttons. */
  if (!GTK_WIDGET_NO_WINDOW (widget) || GTK_IS_BUTTON (widget)
      || GTK_IS_MENU_ITEM (widget) || GTK_IS_TOOL_BUTTON (widget))


Tooltips are handled slightly differently in toolbars.
gtk_tool_item_set_tooltip() is used rather than gtk_tooltips_set_tip().

Damon