[gtk+] Switch the order for cursor lookup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Switch the order for cursor lookup
- Date: Sat, 9 Dec 2017 13:36:03 +0000 (UTC)
commit b3ebffa07d211c408e178574b990b2398b2c26ae
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 9 08:33:21 2017 -0500
Switch the order for cursor lookup
When looking for the cursor to apply, start from the innermost
widget and go up. This is the right behavior for cases like
entry icons. The top-down order we were using so far is the
right behavior for cases like global wait cursors. Since we
have entry icons in gtk, but not global wait cursors, lets
pick the other order for now.
gtk/gtkwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index eb00059..9396dfc 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -11358,7 +11358,7 @@ update_cursor (GtkWindow *toplevel,
}
}
- for (l = widgets; l; l = l->next)
+ for (l = g_list_last (widgets); l; l = l->prev)
{
cursor = gtk_widget_get_cursor (l->data);
if (cursor)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]