[Xfce4-commits] [apps/xfce4-screensaver] 248/425: gtk3: fix assertion 'GTK_IS_WIDGET (widget)' failed

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:51:35 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 9489810db63347e602eaebaf2c8fa6d9c305b589
Author: Denis Gorodnichev <denis.gorodnichev at gmail.com>
Date:   Mon Apr 18 18:40:20 2016 +0300

    gtk3: fix assertion 'GTK_IS_WIDGET (widget)' failed
---
 src/gs-grab-x11.c   | 2 +-
 src/gs-window-x11.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gs-grab-x11.c b/src/gs-grab-x11.c
index 004fddd..0a5d601 100644
--- a/src/gs-grab-x11.c
+++ b/src/gs-grab-x11.c
@@ -213,7 +213,7 @@ gs_grab_get_mouse (GSGrab    *grab,
 	g_return_val_if_fail (screen != NULL, FALSE);
 
 #if GTK_CHECK_VERSION (3, 16, 0)
-	display = gtk_widget_get_display (GTK_WIDGET (window));
+	display = gdk_window_get_display (window);
 	cursor = gdk_cursor_new_for_display (display, GDK_BLANK_CURSOR);
 #else
 	cursor = gdk_cursor_new (GDK_BLANK_CURSOR);
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index 6dd6d59..d4bb564 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -168,7 +168,7 @@ set_invisible_cursor (GdkWindow *window,
 	{
 
 #if GTK_CHECK_VERSION (3, 16, 0)
-		display = gtk_widget_get_display (GTK_WIDGET (window));
+		display = gdk_window_get_display (window);
 		cursor = gdk_cursor_new_for_display (display, GDK_BLANK_CURSOR);
 #else
 		cursor = gdk_cursor_new (GDK_BLANK_CURSOR);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list