[gnome-builder/gnome-builder-3-20] workbench: set modal state



commit 28d768dff8d2287b59a4a1193e3cf84210ac372d
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]