[seahorse/wip/nielsdg/datetime: 2/3] pgp/expires-dialog: Set transient-for property
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse/wip/nielsdg/datetime: 2/3] pgp/expires-dialog: Set transient-for property
- Date: Sat, 27 Feb 2021 22:22:22 +0000 (UTC)
commit d4727e64180033690d7d8acd959e3b608c3638d4
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sat Feb 27 23:14:46 2021 +0100
pgp/expires-dialog: Set transient-for property
Fixes https://gitlab.gnome.org/GNOME/seahorse/-/issues/280
pgp/seahorse-gpgme-expires-dialog.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/pgp/seahorse-gpgme-expires-dialog.c b/pgp/seahorse-gpgme-expires-dialog.c
index 84b31c1d..07261e01 100644
--- a/pgp/seahorse-gpgme-expires-dialog.c
+++ b/pgp/seahorse-gpgme-expires-dialog.c
@@ -209,12 +209,14 @@ seahorse_gpgme_expires_dialog_class_init (SeahorseGpgmeExpiresDialogClass *klass
GtkDialog *
seahorse_gpgme_expires_dialog_new (SeahorseGpgmeSubkey *subkey,
- GtkWindow *parent)
+ GtkWindow *parent)
{
g_return_val_if_fail (SEAHORSE_GPGME_IS_SUBKEY (subkey), NULL);
+ g_return_val_if_fail (!parent || GTK_IS_WINDOW (parent), NULL);
return g_object_new (SEAHORSE_GPGME_TYPE_EXPIRES_DIALOG,
"subkey", subkey,
+ "transient-for", parent,
"use-header-bar", 1,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]