[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
passing data to Menu handler function
- From: Carlos Pereira <carlos pehoe civil ist utl pt>
- To: gtk-app-devel-list redhat com
- Subject: passing data to Menu handler function
- Date: Tue, 26 Oct 1999 14:21:02 +0100
Dear all,
Typically, the event_handler to pop up a menu looks like this:
static gint button_press_handler (GtkWidget *widget, GdkEvent *event)
{ .
gtk_menu_popup (menu, ...
.
}
Now the question is, how can I pass data to this function (not talking of
external variables of course)? When I try a function with three arguments
static gint button_press (GtkWidget *widget, GdkEvent *event, gpointer data)
I always get errors. In fact, all the examples I see use a signal_connect_object
function, where the object is the menu, which makes it difficult to pass a gpointer...
Thanks for the help!
Carlos
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]