[gtk+] label: Include all of the allocation in the clip
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] label: Include all of the allocation in the clip
- Date: Sat, 12 Jul 2014 05:14:26 +0000 (UTC)
commit f35ec11578afb6175447d838d8fcbdb25ac15fb4
Author: Benjamin Otte <otte redhat com>
Date: Sat Jul 12 05:32:12 2014 +0200
label: Include all of the allocation in the clip
Otherwise, the CSS background we draw would be clipped if the ink rect
was smaller than the allocation (a very common thing).
Broken since 37030a771059f43ad701700380719d19cbc7c966 where we clipped
to the ink rect.
gtk/gtklabel.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 3c64322..17b4ca3 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -3996,6 +3996,7 @@ gtk_label_size_allocate (GtkWidget *widget,
}
gtk_label_get_ink_rect (label, &clip_rect);
+ gdk_rectangle_union (&clip_rect, allocation, &clip_rect);
gtk_widget_set_clip (widget, &clip_rect);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]