summaryrefslogtreecommitdiff
path: root/src/interface.cpp
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-19 00:38:30 +0100
committerinfirit <[email protected]>2014-12-19 00:48:47 +0100
commit18833cb8c4c52155e055ef54d52dacc34d75d551 (patch)
tree959af84c41016586b55be3ab2e6a27b9c8b54a35 /src/interface.cpp
parent51357cc58ed32763b7eaff97d9ba04507ac0665d (diff)
downloadmate-system-monitor-18833cb8c4c52155e055ef54d52dacc34d75d551.tar.bz2
mate-system-monitor-18833cb8c4c52155e055ef54d52dacc34d75d551.tar.xz
Add a Process Properties dialog in MATE System Monitor
Taken from GSM commit: 72546b7f3346fc0647a433529f3292050f15278f From: Krishnan Parthasarathi <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=543347
Diffstat (limited to 'src/interface.cpp')
-rw-r--r--src/interface.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/interface.cpp b/src/interface.cpp
index f9428a4..b58123a 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -81,6 +81,9 @@ static const GtkActionEntry menu_entries[] =
// Translators: this means 'Files that are open' (open is no verb here
{ "OpenFiles", NULL, N_("Open _Files"), "<control>F",
N_("View the files opened by a process"), G_CALLBACK (cb_show_open_files) },
+ { "ProcessProperties", NULL, N_("_Properties"), NULL,
+ N_("View additional information about a process"), G_CALLBACK (cb_show_process_properties) },
+
{ "HelpContents", GTK_STOCK_HELP, N_("_Contents"), "F1",
N_("Open the manual"), G_CALLBACK (cb_help_contents) },
@@ -158,6 +161,8 @@ static const char ui_info[] =
" <menuitem name=\"ViewMemoryMapsMenu\" action=\"MemoryMaps\" />"
" <menuitem name=\"ViewOpenFilesMenu\" action=\"OpenFiles\" />"
" <separator />"
+ " <menuitem name=\"ViewProcessPropertiesMenu\" action=\"ProcessProperties\" />"
+ " <separator />"
" <menuitem name=\"ViewRefresh\" action=\"Refresh\" />"
" </menu>"
" <menu name=\"HelpMenu\" action=\"Help\">"
@@ -184,6 +189,9 @@ static const char ui_info[] =
" <separator />"
" <menuitem action=\"MemoryMaps\" />"
" <menuitem action=\"OpenFiles\" />"
+ " <separator />"
+ " <menuitem action=\"ProcessProperties\" />"
+
" </popup>";
@@ -848,7 +856,8 @@ update_sensitivity(ProcData *data)
"KillProcess",
"ChangePriority",
"MemoryMaps",
- "OpenFiles" };
+ "OpenFiles",
+ "ProcessProperties" };
const char * const processes_actions[] = { "ShowActiveProcesses",
"ShowAllProcesses",