gtkwidget: Fix a typo preventing the CSD input shape from applying

We were setting "csd-shade" but reading from "csd-region".
This commit is contained in:
Jasper St. Pierre 2014-12-01 18:01:18 -08:00
parent 8ec72dd2b1
commit 579c7f80a0

View File

@ -12972,9 +12972,9 @@ gtk_widget_set_csd_input_shape (GtkWidget *widget,
const cairo_region_t *region) const cairo_region_t *region)
{ {
if (region == NULL) if (region == NULL)
g_object_set_data (G_OBJECT (widget), "csd-shade", NULL); g_object_set_data (G_OBJECT (widget), "csd-region", NULL);
else else
g_object_set_data_full (G_OBJECT (widget), "csd-shade", g_object_set_data_full (G_OBJECT (widget), "csd-region",
cairo_region_copy (region), cairo_region_copy (region),
(GDestroyNotify) cairo_region_destroy); (GDestroyNotify) cairo_region_destroy);
gtk_widget_update_input_shape (widget); gtk_widget_update_input_shape (widget);