[gtk+] popover: Use the right area for drawing the background
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] popover: Use the right area for drawing the background
- Date: Sun, 26 Oct 2014 14:21:51 +0000 (UTC)
commit 4d075cf202ae428652b98748ca28c06c6bfc6244
Author: Timm Bäder <mail baedert org>
Date: Sun Oct 26 15:21:06 2014 +0100
popover: Use the right area for drawing the background
The border shouldn't be subtracted.
gtk/gtkpopover.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 0106c65..ee247f6 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -856,9 +856,9 @@ gtk_popover_draw (GtkWidget *widget,
/* Render the rect background */
gtk_render_background (context, cr,
- rect_x1 + border.left, rect_y1 + border.top,
- rect_x2 - rect_x1 - border.left - border.right,
- rect_y2 - rect_y1 - border.top - border.bottom);
+ rect_x1, rect_y1,
+ rect_x2 - rect_x1,
+ rect_y2 - rect_y1);
gtk_popover_get_gap_coords (popover,
&initial_x, &initial_y,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]