Commit c82e82da authored by Gnome CVS User's avatar Gnome CVS User

gtk-dairiki-971117-0.patch

Clear window when aspect ratio or alignment is changed. -Jay
parent ba1d5129
Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkaspectframe.c (gtk_aspect_frame_set):
gtk-dairiki-971117-0.patch
Clear window when aspect ratio or alignment is changed.
Mon Nov 24 1997 Jay Painter <jpaint@serv.net> Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro * gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro
......
Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkaspectframe.c (gtk_aspect_frame_set):
gtk-dairiki-971117-0.patch
Clear window when aspect ratio or alignment is changed.
Mon Nov 24 1997 Jay Painter <jpaint@serv.net> Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro * gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro
......
Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkaspectframe.c (gtk_aspect_frame_set):
gtk-dairiki-971117-0.patch
Clear window when aspect ratio or alignment is changed.
Mon Nov 24 1997 Jay Painter <jpaint@serv.net> Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro * gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro
......
Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkaspectframe.c (gtk_aspect_frame_set):
gtk-dairiki-971117-0.patch
Clear window when aspect ratio or alignment is changed.
Mon Nov 24 1997 Jay Painter <jpaint@serv.net> Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro * gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro
......
Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkaspectframe.c (gtk_aspect_frame_set):
gtk-dairiki-971117-0.patch
Clear window when aspect ratio or alignment is changed.
Mon Nov 24 1997 Jay Painter <jpaint@serv.net> Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro * gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro
......
Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkaspectframe.c (gtk_aspect_frame_set):
gtk-dairiki-971117-0.patch
Clear window when aspect ratio or alignment is changed.
Mon Nov 24 1997 Jay Painter <jpaint@serv.net> Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro * gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro
......
Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkaspectframe.c (gtk_aspect_frame_set):
gtk-dairiki-971117-0.patch
Clear window when aspect ratio or alignment is changed.
Mon Nov 24 1997 Jay Painter <jpaint@serv.net> Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
* gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro * gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro
......
...@@ -124,13 +124,22 @@ gtk_aspect_frame_set (GtkAspectFrame *aspect_frame, ...@@ -124,13 +124,22 @@ gtk_aspect_frame_set (GtkAspectFrame *aspect_frame,
(aspect_frame->ratio != ratio) || (aspect_frame->ratio != ratio) ||
(aspect_frame->obey_child != obey_child)) (aspect_frame->obey_child != obey_child))
{ {
GtkWidget * this = GTK_WIDGET(aspect_frame);
aspect_frame->xalign = xalign; aspect_frame->xalign = xalign;
aspect_frame->yalign = yalign; aspect_frame->yalign = yalign;
aspect_frame->ratio = ratio; aspect_frame->ratio = ratio;
aspect_frame->obey_child = obey_child; aspect_frame->obey_child = obey_child;
gtk_widget_size_allocate (GTK_WIDGET (aspect_frame), &(GTK_WIDGET (aspect_frame)->allocation)); if (GTK_WIDGET_MAPPED(this))
gtk_widget_queue_draw (GTK_WIDGET (aspect_frame)); gdk_window_clear_area (this->window,
this->allocation.x,
this->allocation.y,
this->allocation.width,
this->allocation.height);
gtk_widget_size_allocate (this, &this->allocation);
gtk_widget_queue_draw (this);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment