Why is this callback being called twice??



Greetings. A quick question, I am trying to work with the GtkCombo widget
some more and am unable to figure out why my callback is being called twice.
Below is the code snippet:


popup_id = gtk_signal_connect (GTK_OBJECT (GTK_COMBO (combo)->list),
             "select_child", GTK_SIGNAL_FUNC (test_cb), NULL);

void
test_cb (GtkWidget *wdg, gpointer data)
{
  printf ("Callback entered.\n");
}

Could someone explain why that when I select an item out the list that I
am using in the GtkCombo widget, that the callback is called twice? Thanks.


-Steve



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