[gnome-system-monitor] Pass the parent window to the about dialog



commit 9f9f0c929659d63100a3efba7826c7f777ed21ed
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Mar 22 18:49:10 2011 -0400

    Pass the parent window to the about dialog
    
    So that the WM correctly attaches it to the toplevel.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=645575

 src/callbacks.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/callbacks.cpp b/src/callbacks.cpp
index 88d1f3d..ce77d70 100644
--- a/src/callbacks.cpp
+++ b/src/callbacks.cpp
@@ -131,6 +131,8 @@ cb_show_lsof(GtkAction *action, gpointer data)
 void
 cb_about (GtkAction *action, gpointer data)
 {
+	ProcData *procdata = static_cast<ProcData*>(data);
+
 	const gchar * const authors[] = {
 		"Kevin Vandersloot",
 		"Erik Johnsson",
@@ -153,7 +155,7 @@ cb_about (GtkAction *action, gpointer data)
 	};
 
 	gtk_show_about_dialog (
-		NULL,
+		GTK_WINDOW (procdata->app),
 		"name",			_("System Monitor"),
 		"comments",		_("View current processes and monitor "
 					  "system state"),



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