Re: Double clicking in a clist (yes, I know it has been covered a zil lion times already!!)



>First the code:
>
>      gtk_signal_connect(GTK_OBJECT(w_layout[number].signal_lists),
>"select_row",  GTK_SIGNAL_FUNC(clist_select), GINT_TO_POINTER(number));

first mistake: use the button_press event, the use
get_selection_info() to figure out the row and column. you may or may
not want to gtk_signal_emit_stop_by_name() after your handler is done,
depending on what actions your button_press handler does.

by the time you get to select_row, things have been already been
heavily processed by the CList widget itself.

--p




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