diff options
Diffstat (limited to 'embed/mozilla/GtkNSSClientAuthDialogs.cpp')
-rw-r--r-- | embed/mozilla/GtkNSSClientAuthDialogs.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/embed/mozilla/GtkNSSClientAuthDialogs.cpp b/embed/mozilla/GtkNSSClientAuthDialogs.cpp index d8f68c883..4a0531e6d 100644 --- a/embed/mozilla/GtkNSSClientAuthDialogs.cpp +++ b/embed/mozilla/GtkNSSClientAuthDialogs.cpp @@ -57,6 +57,7 @@ #include "GtkNSSClientAuthDialogs.h" +#include "ephy-gui.h" #include "ephy-state.h" #include "ephy-debug.h" @@ -144,7 +145,7 @@ GtkNSSClientAuthDialogs::ChooseCertificate (nsIInterfaceRequestor *ctx, PRUint32 i; nsCOMPtr<nsIDOMWindow> parent = do_GetInterface (ctx); - GtkWidget *gparent = EphyUtils::FindGtkParent (parent); + GtkWindow *gparent = GTK_WINDOW (EphyUtils::FindGtkParent (parent)); dialog = gtk_dialog_new_with_buttons ("", GTK_WINDOW (gparent), @@ -154,7 +155,13 @@ GtkNSSClientAuthDialogs::ChooseCertificate (nsIInterfaceRequestor *ctx, _("_Select Certificate"), GTK_RESPONSE_OK, NULL); - + + if (gparent) + { + gtk_window_group_add_window (ephy_gui_ensure_window_group (gparent), + GTK_WINDOW (dialog)); + } + gtk_window_set_icon_name (GTK_WINDOW (dialog), "web-browser"); gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); |