[gtk/wip/baedert/filechooser2: 8/10] window: Check whether the new focus widget is the old one
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/filechooser2: 8/10] window: Check whether the new focus widget is the old one
- Date: Sun, 28 Apr 2019 10:35:02 +0000 (UTC)
commit ed4c08d9b331c37df0ad296e3e694c15105c41b9
Author: Timm Bäder <mail baedert org>
Date: Sun Apr 28 11:27:21 2019 +0200
window: Check whether the new focus widget is the old one
We generally do that for all properties.
gtk/gtkwindow.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index b3cb887443..fd12df3266 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6524,6 +6524,9 @@ gtk_window_set_focus (GtkWindow *window,
if (focus && !gtk_widget_is_sensitive (focus))
return;
+ if (focus == priv->focus_widget)
+ return;
+
if (priv->focus_widget)
old_focus = g_object_ref (priv->focus_widget);
g_set_object (&priv->focus_widget, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]