[gnome-builder/search] workbench: ignore focus if we are in destruction
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/search] workbench: ignore focus if we are in destruction
- Date: Tue, 16 Dec 2014 00:25:26 +0000 (UTC)
commit fa12c95d9bf51c4b12e00b05a5ee995417837114
Author: Christian Hergert <christian hergert me>
Date: Mon Dec 15 16:25:20 2014 -0800
workbench: ignore focus if we are in destruction
src/workbench/gb-workbench.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/workbench/gb-workbench.c b/src/workbench/gb-workbench.c
index 99c0c80..2e51cd9 100644
--- a/src/workbench/gb-workbench.c
+++ b/src/workbench/gb-workbench.c
@@ -614,7 +614,7 @@ gb_workbench_set_focus (GtkWindow *window,
GTK_WINDOW_CLASS (gb_workbench_parent_class)->set_focus (window, widget);
- if (!widget)
+ if (!widget && !gtk_widget_in_destruction (GTK_WIDGET (window)))
{
GbWorkspace *workspace;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]