[gtk/wip/baedert/for-master] inspect-button: Use new gtk_window_set_extra_input_region
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] inspect-button: Use new gtk_window_set_extra_input_region
- Date: Sat, 22 Feb 2020 15:15:37 +0000 (UTC)
commit 6fad240857acfe741d44065698b1a90ec3606476
Author: Timm Bäder <mail baedert org>
Date: Sat Feb 22 16:07:12 2020 +0100
inspect-button: Use new gtk_window_set_extra_input_region
gtk/inspector/inspect-button.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/inspector/inspect-button.c b/gtk/inspector/inspect-button.c
index 9ecb168dd8..57076dbbd0 100644
--- a/gtk/inspector/inspect-button.c
+++ b/gtk/inspector/inspect-button.c
@@ -35,6 +35,7 @@
#include "gtkeventcontrollermotion.h"
#include "gtkeventcontrollerkey.h"
#include "gtknative.h"
+#include "gtkwindowprivate.h"
static GtkWidget *
find_widget_at_pointer (GdkDevice *device)
@@ -116,8 +117,10 @@ reemphasize_window (GtkWidget *window)
display = gtk_widget_get_display (window);
if (gdk_display_is_composited (display))
{
+ GtkInspectorWindow *iw = GTK_INSPECTOR_WINDOW (window);
+
gtk_widget_set_opacity (window, 1.0);
- gtk_widget_input_shape_combine_region (window, NULL);
+ gtk_window_set_extra_input_region (GTK_WINDOW (iw), NULL);
}
else
gdk_surface_raise (gtk_native_get_surface (GTK_NATIVE (window)));
@@ -200,7 +203,7 @@ gtk_inspector_on_inspect (GtkWidget *button,
gtk_widget_set_opacity (GTK_WIDGET (iw), 0.3);
rect.x = rect.y = rect.width = rect.height = 0;
region = cairo_region_create_rectangle (&rect);
- gtk_widget_input_shape_combine_region (GTK_WIDGET (iw), region);
+ gtk_window_set_extra_input_region (GTK_WINDOW (iw), region);
cairo_region_destroy (region);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]