GtkToolItem ?

Hi all,

Anyone know if there's any particular reason why the gtk_tool_item
functions (e.g gtk_tool_item_new()) explicitly return a GtkToolItem
instead of a GtkWidget?

It seems (IMHO) a bit inconsistent in relation to all other widget
creation routines..

Another question:

How can I use accelerator paths on a GtkToolItem?

I tried:
gtk_widget_set_accel_path(GTK_WIDGET(tool_item), "<toolbar>/itemx",

On app startup Gtk reports:
Gtk-CRITICAL **: gtk_widget_set_accel_path: assertion
`GTK_WIDGET_GET_CLASS (widget)->activate_signal != 0' failed

Daniel Pekelharing
<legendstar gmail com>

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