Re: Double clicking in a clist (yes, I know it has been covered a zil lion times already!!)
- From: Paul Davis <pbd Op Net>
- To: rhfreeman <rhfreeman micron com>
- Cc: "'gtk-list gnome org'" <gtk-list gnome org>
- Subject: Re: Double clicking in a clist (yes, I know it has been covered a zil lion times already!!)
- Date: Tue, 20 Mar 2001 11:06:30 -0500
>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]