summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDenis Gorodnichev <[email protected]>2016-04-18 18:40:20 +0300
committerDenis Gorodnichev <[email protected]>2016-04-18 18:41:05 +0300
commit9489810db63347e602eaebaf2c8fa6d9c305b589 (patch)
tree0ce4b2e39ca6a351ea889b338a2f79912f81080c /src
parente3d8ca494335bcea1aa776614ed17c75012e1f2b (diff)
downloadmate-screensaver-9489810db63347e602eaebaf2c8fa6d9c305b589.tar.bz2
mate-screensaver-9489810db63347e602eaebaf2c8fa6d9c305b589.tar.xz
gtk3: fix assertion 'GTK_IS_WIDGET (widget)' failed
Diffstat (limited to 'src')
-rw-r--r--src/gs-grab-x11.c2
-rw-r--r--src/gs-window-x11.c2
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);