Re: question about menu item callback and window closing



mcmahill mtl mit edu writes: 
Is the following the correct prototype at least for window_close()?

static void window_close(GtkWidget *widget,
                       GdkEventAny *event,
                       gpointer data)

It should be:

 GtkItemFactoryCallback1 ()

void        (*GtkItemFactoryCallback1)      (gpointer callback_data,
                                             guint callback_action,
                                             GtkWidget *widget);

 
I know this should be a simple question, but I've been unable to find the
answer in the tutorial or API guide.

Yes, the 1.2 API guide is a bit limited. For 2.0 we have 80% of
functions documented so far, and hopefully will have 100% by release.
Not enough time in the day...

Havoc




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