Re: GtkCheckMenuItem
- From: "Santhana Krishnan" <santhana krishnan wipro com>
- To: "Wasim Jaffer" <jaffer_w yahoo co in>, <gtk-list gnome org>
- Subject: Re: GtkCheckMenuItem
- Date: Wed, 3 Apr 2002 15:09:10 +0530
Hi,
For avoiding the recursion , set a flag before calling
gtk_check_menu_set_active() , and reset the flag after completed
gtk_check_menu_set_active().If the flag is set then don't allow
gtk_check_menu_set_active().
if (flag) return;
flag= true;
gtk_check_menu_set_active()
flag=false
I hope this will solve your problem.
Regards,
santhana
----- Original Message -----
From: "Wasim Jaffer" <jaffer_w yahoo co in>
To: <gtk-list gnome org>
Sent: Monday, April 01, 2002 4:51 AM
Subject: GtkCheckMenuItem
> Hi,
> evrybody. I am using gtk_check_menu_item_set_active
> to show the selection/dselection of a item in the
> menu bar (using GtkItemFactory, taken from the
> example
> in gtk tutorial).
>
> I am bit confused on
> gtk_check_menu_item_set_active(menuitem,gboolean
> is_active),
>
> As the name suggest it should set the menu item to
> active / inactive. Does this also check whether the
> menuitem is active or not?
>
> In my application I am facing a strange error
> where i need to toggle my menuitem . But somehow
> the code goes into a recursion and then fails.
>
> I saw calling gtk_check_menu_item_set_active()
> also calls the callback associated with the menuitem.
>
>
> why ??? shuld not it only make the item
> ticked/non-ticked. How to avoid the recursion .
>
> would appreciate any kind of help .
>
> Thanks
> wasim
>
>
>
>
>
>
>
>
> ________________________________________________________________________
> For live cricket scores download Yahoo! Score Tracker
> at: http://in.sports.yahoo.com/cricket/tracker.html
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]