summaryrefslogtreecommitdiff
path: root/gtk/gtklabel.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2016-11-21 16:21:38 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2016-11-21 16:21:38 +0000
commit4cbe07976741b4b98ef34dc9f2151b33698823c4 (patch)
tree475d9bbd53e564e9324365976bb0c13776ffcc90 /gtk/gtklabel.c
parent8e5e165f79b2aada3d9d051b8bfe17ca79b139ce (diff)
downloadgtk+-4cbe07976741b4b98ef34dc9f2151b33698823c4.tar.gz
Use Graphene init macros for compound literals
The Graphene init macros can now be used for compound literals, which means we need to update our mixed uses.
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r--gtk/gtklabel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index e9e6a69bf6..42dac23e26 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4169,7 +4169,7 @@ gtk_label_snapshot (GtkWidget *widget,
static void layout_to_window_coords (GtkLabel *label,
gint *x,
gint *y);
-#define GRAPHENE_RECT_FROM_RECT(_r) ((graphene_rect_t) GRAPHENE_RECT_INIT ((_r)->x, (_r)->y, (_r)->width, (_r)->height))
+#define GRAPHENE_RECT_FROM_RECT(_r) (GRAPHENE_RECT_INIT ((_r)->x, (_r)->y, (_r)->width, (_r)->height))
static gboolean
gtk_label_render (GtkCssGadget *gadget,
@@ -4231,7 +4231,7 @@ gtk_label_render (GtkCssGadget *gadget,
range_clip = gdk_pango_layout_get_clip_region (priv->layout, lx, ly, range, 1);
cairo_region_get_extents (range_clip, &clip_extents);
cr = gtk_snapshot_append_cairo_node (snapshot,
- &GRAPHENE_RECT_FROM_RECT(&clip_extents),
+ &GRAPHENE_RECT_FROM_RECT (&clip_extents),
"Selected Text");
gtk_style_context_save_to_node (context, info->selection_node);