[gtk+] GskRoundedRect: Fix GSK_ROUNDED_RECT_INIT macro
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GskRoundedRect: Fix GSK_ROUNDED_RECT_INIT macro
- Date: Sat, 27 Jan 2018 11:22:14 +0000 (UTC)
commit c1882fe44eb03c87fe0821906ace9c9eb7befe57
Author: Timm Bäder <mail baedert org>
Date: Sat Jan 27 12:11:49 2018 +0100
GskRoundedRect: Fix GSK_ROUNDED_RECT_INIT macro
GskRoundedRect does not have a .rect member, it's 'bounds'. Also,
properly initialize all fields, i.e. all the corners.
gsk/gskroundedrect.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gsk/gskroundedrect.h b/gsk/gskroundedrect.h
index d12156c..3abc3d9 100644
--- a/gsk/gskroundedrect.h
+++ b/gsk/gskroundedrect.h
@@ -35,10 +35,17 @@ G_BEGIN_DECLS
* @_h: the height
*
* Initializes a #GskRoundedRect when declaring it.
+ * All corner sizes will be initialized to 0.
*
* Since: 3.90
*/
-#define GSK_ROUNDED_RECT_INIT(_x,_y,_w,_h) (GskRoundedRect) { .rect = GRAPHENE_RECT_INIT(_x,_y,_w,_h) }
+#define GSK_ROUNDED_RECT_INIT(_x,_y,_w,_h) (GskRoundedRect) { .bounds =
GRAPHENE_RECT_INIT(_x,_y,_w,_h), \
+ .corner = { \
+ GRAPHENE_SIZE_INIT(0, 0),\
+ GRAPHENE_SIZE_INIT(0, 0),\
+ GRAPHENE_SIZE_INIT(0, 0),\
+ GRAPHENE_SIZE_INIT(0, 0),\
+ }}
/**
* GskRoundedRect:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]