[gnome-builder] workbench: set modal state
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] workbench: set modal state
- Date: Wed, 11 May 2016 08:50:54 +0000 (UTC)
commit ed7ed68a98b69679d63328743459eb1cd0b167d7
Author: Christian Hergert <chergert redhat com>
Date: Wed May 11 11:50:43 2016 +0300
workbench: set modal state
This gets used by things such as FileChooserButtons to determine the
modal state of their dialogs.
libide/ide-workbench.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-workbench.c b/libide/ide-workbench.c
index bad9891..6e0f679 100644
--- a/libide/ide-workbench.c
+++ b/libide/ide-workbench.c
@@ -407,6 +407,13 @@ ide_workbench_init (IdeWorkbench *self)
{
gtk_widget_init_template (GTK_WIDGET (self));
+ /*
+ * dialogs often track the parent modal state, and we generally
+ * want the dialogs to be modal. so we set this here, even though
+ * it really doesn't make a difference for our operation.
+ */
+ gtk_window_set_modal (GTK_WINDOW (self), TRUE);
+
ide_workbench_add_perspective (self,
g_object_new (IDE_TYPE_GREETER_PERSPECTIVE,
"visible", TRUE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]