summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-17 15:37:41 +0100
committerinfirit <[email protected]>2014-12-17 17:23:02 +0100
commit894006a93e2cf38810801dfb2dfa4aafcf3c3d76 (patch)
tree41edbd85e27eadf8892d10ae08bb1c3747817141
parent15801ec450036918e6db1f66f36931eb48c212ed (diff)
downloadmate-system-monitor-894006a93e2cf38810801dfb2dfa4aafcf3c3d76.tar.bz2
mate-system-monitor-894006a93e2cf38810801dfb2dfa4aafcf3c3d76.tar.xz
Pass the parent window to the about dialog
Taken from GSM commit: 9f9f0c929659d63100a3efba7826c7f777ed21ed From: Cosimo Cecchi <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=645575
-rw-r--r--src/callbacks.cpp4
1 files changed, 3 insertions, 1 deletions
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<ProcData*>(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,