calling gtk_menu_popup from a button's "clicked" signal




Hi!

I have a GtkMenu which I want to popup when a user clicks a button.
my function that is called when user clicks the button looks like this

void
on_zamowienia_button_print_clicked     (GtkButton       *button,
                                        gpointer         user_data)
{
...
}

How do I get the GdkEventButton here so I can pass the time and button
values to gtk_menu_popup ?

thanks in advance
hs



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