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

Re: How do I flush signals and gray out a menu item?



Hi,

You should declare a function like this:

void ProcessEvents()
{
    while(gtk_events_pending())
        gtk_main_iteration();
}

then you call it every where you want signals to be processed.
to gray out menu items you should use this:

gtk_widget_set_sensitive(menu_item,false);

it also work for any widgets.


friendly,
Xavier


Jeff Bergman wrote:

>     I am having two problems with an application I am writing.  One is
> that when I do some time-consuming processing in a loop none of the
> messages get through until it is done.  Is there some call that will
> flush these signals or should?  Also, I would like to be able to gray
> out menu items that don't always apply.  Is there a way to do this?
>
> Thanks for any help.
>
> --
>          To unsubscribe: mail gtk-app-devel-list-request@redhat.com with
>                        "unsubscribe" as the Subject.
>
>         Mailing list concerns should be mailed to <listmaster@redhat.com>



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