Re: popupmen item callback



On Wed, Nov 29, 2006 at 03:18:57PM +0800, sunzysjzri wrote:
hi, i write a button which pops up a popupmenu after clicked,
and when i select an item of the popupmen such warring appeared, and why? 

...
  g_signal_connect (menu, "deactivate", G_CALLBACK (gtk_widget_destroy), NULL);

You cannot destroy the menu in the middle of deselection.
Destroy it in "selection-done" handler.

Yeti


--
Whatever.



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