From cb0ed210287eb3f4b81376a0cbe72661af0f7756 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 18 Oct 2001 19:58:22 +0000 Subject: 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 --- e-util/ChangeLog | 4 ++++ e-util/e-dialog-utils.c | 18 ++++++++++++++++++ e-util/e-dialog-utils.h | 8 ++++++-- 3 files changed, 28 insertions(+), 2 deletions(-) (limited to 'e-util') diff --git a/e-util/ChangeLog b/e-util/ChangeLog index fed6610258..6a41fd9f8e 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,7 @@ +2001-10-17 Ettore Perazzoli + + * e-dialog-utils.c (e_set_dialog_parent_from_xid): New. + 2001-10-12 Chris Toshok * e-passwords.h: new parameter to e_passwords_init, and add 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)); +} diff --git a/e-util/e-dialog-utils.h b/e-util/e-dialog-utils.h index 578ea0d585..b92808d386 100644 --- a/e-util/e-dialog-utils.h +++ b/e-util/e-dialog-utils.h @@ -27,7 +27,11 @@ #include #include -void e_set_dialog_parent (GtkWindow *dialog, - GtkWidget *parent_widget); +#include /* Window */ + +void e_set_dialog_parent (GtkWindow *dialog, + GtkWidget *parent_widget); +void e_set_dialog_parent_from_xid (GtkWindow *dialog, + Window xid); #endif -- cgit