[gnome-control-center] Using separate window group to avoid modal shadowing
- From: Sergey V. Udaltsov <svu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Using separate window group to avoid modal shadowing
- Date: Sun, 13 Mar 2011 01:05:52 +0000 (UTC)
commit d120490013716e5bf4b856e6a45f410af02db384
Author: Sergey V. Udaltsov <svu gnome org>
Date: Sun Mar 13 01:04:50 2011 +0000
Using separate window group to avoid modal shadowing
The idea by mclasen. Non-modal preview for modal "add layout" popup
panels/region/gnome-region-panel-xkbltadd.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-xkbltadd.c b/panels/region/gnome-region-panel-xkbltadd.c
index be12ca7..cddb7d2 100644
--- a/panels/region/gnome-region-panel-xkbltadd.c
+++ b/panels/region/gnome-region-panel-xkbltadd.c
@@ -129,6 +129,13 @@ xkb_layout_chooser_response (GtkDialog * dialog,
G_CALLBACK
(xkb_preview_destroy_callback),
NULL);
+ /* Put into the separate group to avoid conflict
+ with modal parent */
+ gtk_window_group_add_window
+ (gtk_window_group_new
+ (),
+ GTK_WINDOW
+ (preview_dialog));
};
gkbd_keyboard_drawing_dialog_set_layout
(preview_dialog,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]