[seahorse] viewer: set the about dialog transient for the main window



commit d481949b1cb54894f7862e541a5970d65618304f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Mar 8 12:20:35 2011 -0500

    viewer: set the about dialog transient for the main window
    
    So it will be attached to it with the shell effect.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=644220

 src/seahorse-viewer.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/seahorse-viewer.c b/src/seahorse-viewer.c
index 4f770e5..04ea904 100644
--- a/src/seahorse-viewer.c
+++ b/src/seahorse-viewer.c
@@ -149,6 +149,7 @@ on_app_about (GtkAction* action, SeahorseViewer* self)
 	gtk_about_dialog_set_website_label (about, _("Seahorse Project Homepage"));
 	
 	g_signal_connect (about, "response", G_CALLBACK (gtk_widget_hide), NULL);
+	gtk_window_set_transient_for (GTK_WINDOW (about), seahorse_viewer_get_window (self));
 	
 	gtk_dialog_run (GTK_DIALOG (about));
 	gtk_widget_destroy (GTK_WIDGET (about));



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