only translate widget relative coordinates to window relative if the
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org> * gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget relative coordinates to window relative if the widget is not a toplevel (i.e. it has ->parent != NULL), otherwise the area size gets screwed up for toplevels.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||
relative coordinates to window relative if the widget is not a toplevel
|
||||
(i.e. it has ->parent != NULL), otherwise the area size gets screwed up
|
||||
for toplevels.
|
||||
|
||||
Tue Feb 16 14:25:44 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* INSTALL
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||
relative coordinates to window relative if the widget is not a toplevel
|
||||
(i.e. it has ->parent != NULL), otherwise the area size gets screwed up
|
||||
for toplevels.
|
||||
|
||||
Tue Feb 16 14:25:44 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* INSTALL
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||
relative coordinates to window relative if the widget is not a toplevel
|
||||
(i.e. it has ->parent != NULL), otherwise the area size gets screwed up
|
||||
for toplevels.
|
||||
|
||||
Tue Feb 16 14:25:44 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* INSTALL
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||
relative coordinates to window relative if the widget is not a toplevel
|
||||
(i.e. it has ->parent != NULL), otherwise the area size gets screwed up
|
||||
for toplevels.
|
||||
|
||||
Tue Feb 16 14:25:44 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* INSTALL
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||
relative coordinates to window relative if the widget is not a toplevel
|
||||
(i.e. it has ->parent != NULL), otherwise the area size gets screwed up
|
||||
for toplevels.
|
||||
|
||||
Tue Feb 16 14:25:44 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* INSTALL
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||
relative coordinates to window relative if the widget is not a toplevel
|
||||
(i.e. it has ->parent != NULL), otherwise the area size gets screwed up
|
||||
for toplevels.
|
||||
|
||||
Tue Feb 16 14:25:44 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* INSTALL
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||
relative coordinates to window relative if the widget is not a toplevel
|
||||
(i.e. it has ->parent != NULL), otherwise the area size gets screwed up
|
||||
for toplevels.
|
||||
|
||||
Tue Feb 16 14:25:44 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* INSTALL
|
||||
|
||||
@@ -1851,6 +1851,8 @@ gtk_widget_queue_clear_area (GtkWidget *widget,
|
||||
gtk_widget_queue_draw_data (parent, x, y, width, height, widget->window);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (widget->parent)
|
||||
{
|
||||
gint wx, wy, wwidth, wheight;
|
||||
/* Translate widget relative to window-relative */
|
||||
@@ -1873,6 +1875,7 @@ gtk_widget_queue_clear_area (GtkWidget *widget,
|
||||
width = wwidth - x;
|
||||
if (y + height > wheight)
|
||||
height = wheight - y;
|
||||
}
|
||||
|
||||
gtk_widget_queue_draw_data (widget, x, y, width, height, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user