RE: The Window expose-event with gtk_window_resize() problem:
- From: "Tom Liu" <tom liu flextrade com>
- To: "'John Cupitt'" <jcupitt gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: RE: The Window expose-event with gtk_window_resize() problem:
- Date: Thu, 8 Jul 2004 14:08:29 -0400
Yes, This will fix this problem.
There is only another problem left which can be get around:
Double expose event when call gtk_window_resize();
If I call gdk_window_resize, it will only have one expose event.
Thanks.
-----Original Message-----
From: gtk-app-devel-list-bounces gnome org [mailto:gtk-app-devel-list-
bounces gnome org] On Behalf Of John Cupitt
Sent: Thursday, July 08, 2004 11:39 AM
To: Tom Liu
Cc: gtk-app-devel-list gnome org
Subject: 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)
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]