Re: [gtkmm] How to force widget draw
- From: Paul Davis <paul linuxaudiosystems com>
- To: "Find All" <find_all hotmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] How to force widget draw
- Date: Wed, 12 Nov 2003 11:43:25 -0500
>> 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]