Re: Adding tooltips to menu entries defined in an XML file?



On 1/22/06, Murray Cumming <murrayc murrayc com> wrote:
> On Sat, 2006-01-21 at 21:39 -0500, Pierre Sarrazin wrote:
> > Hi.  I am using Gtk::UIManager::add_ui_from_file() to load the
> > menubar and toolbar from an XML file.  The resulting menu entries
> > do not come with tooltips.  Is it possible to add tooltips in
> > the <menuitem> tags in the XML file (in a way that works with
> > GNU Gettext)?
>
> The ui XML does not contain any human-readable text. I guess that would
> be provided in the call to Gtk::Action::create(). For instance:
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Action.html#e2555a23dc41f5b01d97db7ffad573da
>
> (Those functions need doxygen reference documentation.)

I'm not sure that it's possible to display tooltips for menu items
though, is it?  I know that the action can have an associated
tooltips, but in my experience, the tooltips are only displayed on
toolbar buttons associated with those actions, but are not displayed
when a menu item is associated with the action.

Jonner



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