mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
when extending the draw rectangle by the "draw-border" style property,
2008-09-04 Michael Natterer <mitch@imendio.com> * gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): when extending the draw rectangle by the "draw-border" style property, subtract "left" from "x" and "top" from "y", not the other way around. svn path=/trunk/; revision=21285
This commit is contained in:
parent
300f282076
commit
5e25a5c7ca
@ -1,3 +1,9 @@
|
||||
2008-09-04 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): when extending
|
||||
the draw rectangle by the "draw-border" style property, subtract
|
||||
"left" from "x" and "top" from "y", not the other way around.
|
||||
|
||||
2008-09-03 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/gdkwindow.c:
|
||||
|
@ -3493,13 +3493,13 @@ gtk_widget_get_draw_rectangle (GtkWidget *widget,
|
||||
|
||||
*rect = widget->allocation;
|
||||
|
||||
gtk_widget_style_get (widget,
|
||||
gtk_widget_style_get (widget,
|
||||
"draw-border", &draw_border,
|
||||
NULL);
|
||||
if (draw_border)
|
||||
{
|
||||
rect->x -= draw_border->top;
|
||||
rect->y -= draw_border->left;
|
||||
rect->x -= draw_border->left;
|
||||
rect->y -= draw_border->top;
|
||||
rect->width += draw_border->left + draw_border->right;
|
||||
rect->height += draw_border->top + draw_border->bottom;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user