Re: [gtkmm] How to force widget draw



>>   gtk_widget_queue_draw (widget);
>>   gtk_main_iteration();

oops, i thought this was on gtk-list. sorry for the C-isms.

>
>I've try:
>
>    statusbar->queue_draw();
>    gtk_main_iteration();
>
>     func(); // Lot of CPU use
>
>and also
>
>    gtk_widget_draw_queue((GtkWidget *)statusbar->gobj());
>    gtk_main_iteration();
>
>    func(); // Lot of CPU use

try 
    
     gtk_main_iteration ();
     while (gtk_events_pending()) {
         gtk_main_iteration ();
     }

instead of just gtk_main_iteration(). there are gtkmm wrappers for
this stuff, but for now, i'd just use the gtk calls directly.



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