Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
f9d1d89b
Commit
f9d1d89b
authored
Oct 05, 2015
by
Sebastian Ramacher
Browse files
Use the widget's display
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
7da7bcb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura/callbacks.c
View file @
f9d1d89b
...
...
@@ -622,7 +622,8 @@ cb_page_widget_link(ZathuraPage* page, void* data)
bool
enter
=
(
bool
)
data
;
GdkWindow
*
window
=
gtk_widget_get_parent_window
(
GTK_WIDGET
(
page
));
GdkCursor
*
cursor
=
gdk_cursor_new_for_display
(
gdk_display_get_default
(),
enter
==
true
?
GDK_HAND1
:
GDK_LEFT_PTR
);
GdkDisplay
*
display
=
gtk_widget_get_display
(
GTK_WIDGET
(
page
));
GdkCursor
*
cursor
=
gdk_cursor_new_for_display
(
display
,
enter
==
true
?
GDK_HAND1
:
GDK_LEFT_PTR
);
gdk_window_set_cursor
(
window
,
cursor
);
g_object_unref
(
cursor
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment