[gnome-builder] workbench: add each window to its own group
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] workbench: add each window to its own group
- Date: Thu, 5 Jan 2017 02:50:08 +0000 (UTC)
commit 3913edaff108c6034279a6732d557960cf6cc455
Author: Dimitrios Christidis <dimitrios christidis me>
Date: Wed Jan 4 15:48:30 2017 +0200
workbench: add each window to its own group
This fixes a bug that blocked interactions on all windows when a modal
dialog appeared.
https://bugzilla.gnome.org/show_bug.cgi?id=776864
libide/workbench/ide-workbench.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libide/workbench/ide-workbench.c b/libide/workbench/ide-workbench.c
index ea167d1..f6e1303 100644
--- a/libide/workbench/ide-workbench.c
+++ b/libide/workbench/ide-workbench.c
@@ -416,6 +416,8 @@ ide_workbench_class_init (IdeWorkbenchClass *klass)
static void
ide_workbench_init (IdeWorkbench *self)
{
+ GtkWindowGroup *window_group = NULL;
+
gtk_widget_init_template (GTK_WIDGET (self));
self->perspectives = g_list_store_new (IDE_TYPE_PERSPECTIVE);
@@ -427,6 +429,10 @@ ide_workbench_init (IdeWorkbench *self)
G_CALLBACK (ide_workbench_notify_visible_child),
self,
G_CONNECT_SWAPPED);
+
+ window_group = gtk_window_group_new ();
+ gtk_window_group_add_window (window_group, GTK_WINDOW (self));
+ g_object_unref (window_group);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]