popover: Remove an unneeded local variable
authorTimm Bäder <mail@baedert.org>
Fri, 16 Mar 2018 20:33:56 +0000 (21:33 +0100)
committerTimm Bäder <mail@baedert.org>
Sat, 17 Mar 2018 11:09:30 +0000 (12:09 +0100)
gtk/gtkpopover.c

index c751897182bc291802b0a3769b8718ab8f6f34a3..2dcab2f8ad23109032408289f7057fd064160b66 100644 (file)
@@ -1204,18 +1204,17 @@ gtk_popover_snapshot (GtkWidget   *widget,
   GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
   GtkStyleContext *context;
   GtkBorder border;
-  graphene_rect_t bounds;
   cairo_t *cr;
 
   /* Draw the child first so we can draw the arrow (partially) over it */
   gtk_widget_snapshot_child (widget, priv->contents_widget, snapshot);
 
-  graphene_rect_init (&bounds,
-                      0, 0,
-                      gtk_widget_get_width (widget),
-                      gtk_widget_get_height (widget));
   cr = gtk_snapshot_append_cairo (snapshot,
-                                  &bounds,
+                                  &GRAPHENE_RECT_INIT (
+                                    0, 0,
+                                    gtk_widget_get_width (widget),
+                                    gtk_widget_get_height (widget)
+                                  ),
                                   "Popover");
 
   /* Clip to the arrow shape */