Re: Adding a callback to a GtkAction

2006-03-19 Thread John Cupitt
On 3/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > toolbar item. Obviously I'm missing something. How do you add a callback > to a GtkAction item? For a regular pushbutton item, make a table of GtkActionEntry: static GtkActionEntry mainw_actions[] = { { "NewColumn",

Adding a callback to a GtkAction

2006-03-19 Thread beckenba
Hi, Evidently, earlier methods of creating items for menus and toolbars have been replaced in GTK 2.4 with GtkAction items. I have been unable to figure out how to associate a callback function with a GtkAction item. gtk_action_new() does not include a parameter for a callback, and there