mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 20:18:09 +00:00
Disables changing cursor when it hovers a chatroom link with GTK+ version < 2.22
This feature cannot be implemented because gdk_cursor_get_cursor_type() is unavailable
This commit is contained in:
parent
10713a7291
commit
a228a2715e
1 changed files with 2 additions and 0 deletions
|
|
@ -437,6 +437,7 @@ static gboolean link_event_handler(GtkTextTag *tag, GObject *text_view,GdkEvent
|
|||
}
|
||||
|
||||
static void chatroom_enable_hand_cursor(GdkWindow *window, gboolean hand_cursor_enabled) {
|
||||
#if GTK_CHECK_VERSION(2,22,0)
|
||||
GdkCursor *cursor = gdk_window_get_cursor(window);
|
||||
GdkCursor *new_cursor = NULL;
|
||||
if(!hand_cursor_enabled && gdk_cursor_get_cursor_type(cursor) != GDK_XTERM) {
|
||||
|
|
@ -448,6 +449,7 @@ static void chatroom_enable_hand_cursor(GdkWindow *window, gboolean hand_cursor_
|
|||
gdk_window_set_cursor(window, new_cursor);
|
||||
gdk_cursor_unref(new_cursor);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static gboolean chatroom_event(GtkWidget *widget, GdkEvent *event, gpointer user_data) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue