diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-10-19 03:58:22 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-10-19 03:58:22 +0800 |
commit | cb0ed210287eb3f4b81376a0cbe72661af0f7756 (patch) | |
tree | 8395f720e891b6aba6669a4f23e5aa4c8511eeb6 /e-util/e-dialog-utils.c | |
parent | 02f36a07f6fb2f6fe341d9f8817628c629871635 (diff) | |
download | gsoc2013-evolution-cb0ed210287eb3f4b81376a0cbe72661af0f7756.tar gsoc2013-evolution-cb0ed210287eb3f4b81376a0cbe72661af0f7756.tar.gz gsoc2013-evolution-cb0ed210287eb3f4b81376a0cbe72661af0f7756.tar.bz2 gsoc2013-evolution-cb0ed210287eb3f4b81376a0cbe72661af0f7756.tar.lz gsoc2013-evolution-cb0ed210287eb3f4b81376a0cbe72661af0f7756.tar.xz gsoc2013-evolution-cb0ed210287eb3f4b81376a0cbe72661af0f7756.tar.zst gsoc2013-evolution-cb0ed210287eb3f4b81376a0cbe72661af0f7756.zip |
Fix the WM problems related to the folder selection dialog being
out-of-proc. Now it can be set to be a transient window correctly,
and fakes its WindowGroup hint appropriately.
svn path=/trunk/; revision=13765
Diffstat (limited to 'e-util/e-dialog-utils.c')
-rw-r--r-- | e-util/e-dialog-utils.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/e-util/e-dialog-utils.c b/e-util/e-dialog-utils.c index 0a6bf13386..68f0abfde8 100644 --- a/e-util/e-dialog-utils.c +++ b/e-util/e-dialog-utils.c @@ -147,3 +147,21 @@ e_set_dialog_parent (GtkWindow *dialog, gdk_window = gdk_window_foreign_new (xid); set_transient_for_gdk (dialog, gdk_window); } + +/** + * e_set_dialog_parent_from_xid: + * @dialog: + * @xid: + * + * Like %e_set_dialog_parent_from_xid, but use an XID to specify the parent + * window. + **/ +void +e_set_dialog_parent_from_xid (GtkWindow *dialog, + Window xid) +{ + g_return_if_fail (dialog != NULL); + g_return_if_fail (GTK_IS_WINDOW (dialog)); + + set_transient_for_gdk (dialog, gdk_window_foreign_new (xid)); +} |