diff options
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)); +} |