Why check menu item always return FALSE ?




Hi, I have made a check menu with Gtk+, however, it always returns FALSE:

   if (GTK_CHECK_MENU_ITEM(ckMnItem)->active == TRUE)
   {
	fprintf(stderr,"TRUE: linkage_toggled!\n");
   }
   else
   {
	fprintf(stderr,"FALSE: linkage_toggled!\n");
   }

 Why, how can I get "TRUE: linkage_toggled!\n"?

regards,
Brook.

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn



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