gtk combo popup with accelerator ?



Hi,

i am writing an application where i want to give a key control to a gtk combo widget (pressing a key should pop up the combo-list like clicking on the combo button).

Somebody wrote an example in an article somewhere on the net for a button, but something like

gtk_widget_add_accelerator( GTK_COMBO(combo)->button, "clicked",gtk_accel_group_get_default(),GDK_F1, 0,0 );

didn't work or i made a mistake. Can anybody give me a small tip ?


-- 
Bye and thanks
Björn




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