From 894006a93e2cf38810801dfb2dfa4aafcf3c3d76 Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 17 Dec 2014 15:37:41 +0100 Subject: Pass the parent window to the about dialog Taken from GSM commit: 9f9f0c929659d63100a3efba7826c7f777ed21ed From: Cosimo Cecchi Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=645575 --- src/callbacks.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/callbacks.cpp') diff --git a/src/callbacks.cpp b/src/callbacks.cpp index d8d54ac..fbfb37d 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(data); + const gchar * const authors[] = { "Kevin Vandersloot", "Erik Johnsson", @@ -156,7 +158,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"), "version", VERSION, -- cgit v1.2.1