Event question



Hello,

I am trying to do the following:


on button1_clicked ( ....)
{

while (button2_not_pressed)
    {
    do something
    }

}


on button2_clicked (...)
{
button2_not_pressed = false
}

Where the loop is started after the user presses button1, and I want "do
something" to run until button2 is pressed. I don't know how to make the
button2_clicked event happen while I am in the button1 processing loop.

I read the archive and the only thing approaching this was to run another
instance of gtk_main, but then it blocks the first loop, and I want the
do_something to keep running

Thanks for your help,


Chris.





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