[gtk/wip/matthiasc/popup4: 31/115] widget: Use root pointer focus apis
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup4: 31/115] widget: Use root pointer focus apis
- Date: Wed, 24 Apr 2019 19:33:13 +0000 (UTC)
commit b4d40c6027a590aa3ecddba5b6d041b93dd7bb4c
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 17 09:26:55 2019 -0400
widget: Use root pointer focus apis
gtk/gtkwidget.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 9fa5d4e203..f6f0516065 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3271,11 +3271,8 @@ update_cursor_on_state_change (GtkWidget *widget)
GtkWidget *toplevel;
toplevel = gtk_widget_get_toplevel (widget);
- if (!GTK_IS_WINDOW (toplevel))
- return;
-
- gtk_window_update_pointer_focus_on_state_change (GTK_WINDOW (toplevel),
- widget);
+ if (GTK_IS_ROOT (toplevel))
+ gtk_root_update_pointer_focus_on_state_change (GTK_ROOT (toplevel), widget);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]