Re: Combo box and selection signal



Michael wrote:
> I m trying to use a combo box and I want an notification when the user
> changes the item from the list . I tried to trap the list object with
> gtk_signal_connect,  but it didn't work .
> Any options ?

HI Michael, I do this by catching "hide" from the combo's popup. I'm sure
there's a better way though, it's pretty ugly.

  gtk_signal_connect (GTK_OBJECT (GTK_COMBO (my_combo)->popwin), "hide",
                      GTK_SIGNAL_FUNC (new_item_selected_from_list_cb),
                      (gpointer) my_stuff);

John




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