[empathy] auth-client: set keep above on dialogs



commit d8d059db25a5775cb50cf634b339adaca182d900
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Jan 27 14:35:27 2012 +0100

    auth-client: set keep above on dialogs
    
    This will avoid to accidentally 'loose' the dialog.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=643699

 libempathy-gtk/empathy-base-password-dialog.c |    2 ++
 libempathy-gtk/empathy-tls-dialog.c           |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-base-password-dialog.c b/libempathy-gtk/empathy-base-password-dialog.c
index be708e8..5ca6cb6 100644
--- a/libempathy-gtk/empathy-base-password-dialog.c
+++ b/libempathy-gtk/empathy-base-password-dialog.c
@@ -272,6 +272,8 @@ empathy_base_password_dialog_constructed (GObject *object)
   gtk_widget_grab_focus (self->entry);
 
   gtk_window_set_position (GTK_WINDOW (self), GTK_WIN_POS_CENTER_ALWAYS);
+
+  gtk_window_set_keep_above (GTK_WINDOW (self), TRUE);
 }
 
 static void
diff --git a/libempathy-gtk/empathy-tls-dialog.c b/libempathy-gtk/empathy-tls-dialog.c
index 7eb59a2..7a9081f 100644
--- a/libempathy-gtk/empathy-tls-dialog.c
+++ b/libempathy-gtk/empathy-tls-dialog.c
@@ -313,6 +313,8 @@ empathy_tls_dialog_constructed (GObject *object)
   gtk_container_add (GTK_CONTAINER (expander), details);
   gtk_widget_show (details);
 
+  gtk_window_set_keep_above (GTK_WINDOW (self), TRUE);
+
   tp_g_signal_connect_object (priv->certificate, "invalidated",
       G_CALLBACK (certificate_invalidated_cb), self, 0);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]