Re: [Fwd: Custom Toolbar]





Andrew E. Makeev wrote:

Hi.

Excuse me, there is no answer, even simple "yes" or "no"?
Probably, you didn't quite understand my english, then tell me about it, please.

Regards,
-andrew


------------------------------------------------------------------------

Subject:
Custom Toolbar
From:
"Andrew E. Makeev" <andrew solvo ru>
Date:
Tue, 19 Oct 2004 17:52:48 +0400
To:
gtk-list gnome org


Hi,

I found that gtk_action_create_tool_item() doesn't set action properties ( tooltip, accelerator ) for that ToolItem automatically. Is there a mechanism that allows to create "full feature" GtkToolItem from GtkAction, except for UImanager?

thanks in advance,
-andrew

GTK+-2.4.13

My experience is that the accelerator for an Action is set up using:

gtk_action_set_accel_group()
gtk_action_group_add_action_with_accel()
gtk_action_connect_accelerator()

assuming that the Action uses a Stock Item with an accelerator.

Also the tooltip for an Action has to be set after the associated ToolItem is added to the Toolbar. You can get and set the "tooltip" property on the Action.

John




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