[gtk/wip/baedert/for-master] popover: Stop using gtk_widget_input_shape_combine_region()
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] popover: Stop using gtk_widget_input_shape_combine_region()
- Date: Sat, 22 Feb 2020 15:15:26 +0000 (UTC)
commit b9fedba5c01f60b5e5f420cf46f30ad9b1065292
Author: Timm Bäder <mail baedert org>
Date: Sat Feb 22 15:28:44 2020 +0100
popover: Stop using gtk_widget_input_shape_combine_region()
We control the surface anyway, we can as well set the input shape on it
directly.
gtk/gtkpopover.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 7c202414ee..6989777536 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -1144,11 +1144,9 @@ static void
gtk_popover_update_shape (GtkPopover *popover)
{
GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
- GtkWidget *widget = GTK_WIDGET (popover);
if (priv->has_arrow)
{
-
cairo_surface_t *cairo_surface;
cairo_region_t *region;
cairo_t *cr;
@@ -1166,11 +1164,11 @@ gtk_popover_update_shape (GtkPopover *popover)
region = gdk_cairo_region_create_from_surface (cairo_surface);
cairo_surface_destroy (cairo_surface);
- gtk_widget_input_shape_combine_region (widget, region);
+ gdk_surface_input_shape_combine_region (priv->surface, region, 0, 0);
cairo_region_destroy (region);
}
else
- gtk_widget_input_shape_combine_region (widget, NULL);
+ gdk_surface_input_shape_combine_region (priv->surface, NULL, 0, 0);
}
static gint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]