Re: The Window expose-event with gtk_window_resize() problem:



On Thu, 8 Jul 2004 11:13:44 -0400, Tom Liu <tom liu flextrade com> wrote:
      gdk_window_clear(widget->window);// clear all this window;

In your expose handler, you are clearing the whole window, not just
the bit that needs repainting. So you are wiping the label.

Change this line to something like:

gdk_window_clear_area( widget->window,
                event->area.x, event->area.y, event->area.width,
event->area.height );

and change the prototype of your expose handler to:

static gboolean expose(GtkWidget * widget, GdkEventExpose *event, gpointer
data)



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