[krb5-auth-dialog] Set pwdialog transient to the main window
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] Set pwdialog transient to the main window
- Date: Mon, 17 Jul 2017 06:01:47 +0000 (UTC)
commit 188a6bd32940db46a0fadd56860d9acecee96c39
Author: Guido Günther <agx sigxcpu org>
Date: Thu Jul 13 18:34:50 2017 +0200
Set pwdialog transient to the main window
Now that both can appear on the screen at the same time.
src/ka-applet.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/ka-applet.c b/src/ka-applet.c
index 440a29f..50e6b70 100644
--- a/src/ka-applet.c
+++ b/src/ka-applet.c
@@ -360,13 +360,17 @@ static void
ka_applet_startup (GApplication *application)
{
KaApplet *self = KA_APPLET (application);
+ GtkWindow *main_window;
KA_DEBUG ("Primary application");
G_APPLICATION_CLASS (ka_applet_parent_class)->startup (application);
self->priv->startup_ccache = ka_kerberos_init (self);
- ka_main_window_create (self);
+ main_window = GTK_WINDOW(ka_main_window_create (self));
+ gtk_window_set_transient_for(GTK_WINDOW(self->priv->pwdialog),
+ main_window);
+
self->priv->prefs = ka_preferences_new (self);
ka_applet_app_menu_create(self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]