Re: Why check menu item always return FALSE ?

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

 



On Fri, Aug 13, 2004 at 03:55:48PM +0800, jacky618 jacky618 wrote:
> 
>  I have made a check menu with Gtk+, however, it always returns FALSE:
> 
>    if (GTK_CHECK_MENU_ITEM(ckMnItem)->active == TRUE)

Never access the widget struct directly (except for fields
declared public). Alaways do

    if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(ckMnItem)))
        ...

Using (something == TRUE) instead of (something) is not an
excellent idea either.

Yeti


--
Do not use tab characters. Their effect is not predictable.
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux