Why can't I update the content of GtkLabel



Hi,

In function processwindow() I created the GtkLabel label and it's parent window, and set it's content like 
"Now let's begin"
In another function do(), I use:
    gtk_label_set(GTK_LABEL(label), "Please wait...");
    gtk_widget_draw(label, NULL);
    ......
to make label changed by the program process.

But the label hasn't been updated until function do() returned, and only the last content was displayed.

Thanks,
Sarah




 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
¡°200¼ÒÁ¬ËøÍøÕ¾£¬ÈÃÑÛ¾¦³¢³¢ÏÊ¡±
http://www.chinese.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163µç×ÓÓʾ֣¬¸øÄú¸üÍêÃÀEmail·þÎñ£¡
http://www.163.net

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~








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