Re: I'd like to ask about menu item callback
- From: Arren <jianling xiang sw-linux com>
- To: nguyen phong <phongnh0211k hotmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: I'd like to ask about menu item callback
- Date: Mon, 21 Nov 2005 15:17:12 +0800
struct _data {
type data1;
type data2;
} data;
on_activate_test(GtkmenuItem *menuitem, gpointer data);
nguyen phong 写道:
Hi alll,
How can I pass 2 parameters to the callback function of a menu item?
For example:
In callback function:
void on_activate_test(GtkMenuItem *menuitem,
gpointer user_data1,
gpointer user_data2
) ;
Where to pass user_data1 and user_data2?
---------------------------------
and
how can I pass a widget parameter and a data parameter when I click on
the menu_item
For example:
In callback function:
void call_back_test(GtkWidget *widget,gpointer user_data)
Where to pass user_data?
I'm looking for hear from you.
Thank you very much.
Phong
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's
FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]