Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kestner <mkestner@gmail.com>2009-08-04 23:31:47 +0400
committerMike Kestner <mkestner@gmail.com>2009-08-04 23:31:47 +0400
commit52692117ba600c0b959c0aaa3a6e3518355489d0 (patch)
tree45eca33a30f66aaeb1bd09f6d6978f3c414ec51b /Mono.Profiler
parent24a30268a7f84be3c8e3b9fc2e47a0181dbe8146 (diff)
2009-08-04 Mike Kestner <mkestner@novell.com>
* MainWindow.cs : update sensitivity of the Show System Nodes action to indicate if the option is supported in the current view. svn path=/trunk/mono-tools/; revision=139361
Diffstat (limited to 'Mono.Profiler')
-rw-r--r--Mono.Profiler/mprof-gui/ChangeLog5
-rw-r--r--Mono.Profiler/mprof-gui/MainWindow.cs5
2 files changed, 10 insertions, 0 deletions
diff --git a/Mono.Profiler/mprof-gui/ChangeLog b/Mono.Profiler/mprof-gui/ChangeLog
index 6de21947..58e6d4db 100644
--- a/Mono.Profiler/mprof-gui/ChangeLog
+++ b/Mono.Profiler/mprof-gui/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-04 Mike Kestner <mkestner@novell.com>
+
+ * MainWindow.cs : update sensitivity of the Show System Nodes action
+ to indicate if the option is supported in the current view.
+
2009-07-15 Mike Kestner <mkestner@novell.com>
* MainWindow.cs : support file open and save operations.
diff --git a/Mono.Profiler/mprof-gui/MainWindow.cs b/Mono.Profiler/mprof-gui/MainWindow.cs
index c22519ce..78d223fb 100644
--- a/Mono.Profiler/mprof-gui/MainWindow.cs
+++ b/Mono.Profiler/mprof-gui/MainWindow.cs
@@ -11,6 +11,7 @@ namespace Mono.Profiler.Gui {
public class MainWindow : Gtk.Window {
Gtk.Action save_action;
+ Gtk.Action show_system_nodes_action;
ProfileView contents;
string filename;
@@ -47,6 +48,7 @@ namespace Mono.Profiler.Gui {
if (contents.LoadProfile (log_file)) {
filename = log_file;
save_action.Sensitive = true;
+ show_system_nodes_action.Sensitive = contents.SupportsFiltering;
}
});
};
@@ -61,6 +63,7 @@ namespace Mono.Profiler.Gui {
if (d.Run () == (int) ResponseType.Accept && contents.LoadProfile (d.Filename)) {
filename = d.Filename;
save_action.Sensitive = false;
+ show_system_nodes_action.Sensitive = contents.SupportsFiltering;
}
d.Destroy ();
}
@@ -77,6 +80,7 @@ namespace Mono.Profiler.Gui {
System.IO.File.Move (filename, d.Filename);
filename = d.Filename;
save_action.Sensitive = false;
+ show_system_nodes_action.Sensitive = contents.SupportsFiltering;
}
d.Destroy ();
}
@@ -126,6 +130,7 @@ namespace Mono.Profiler.Gui {
AddAccelGroup (uim.AccelGroup);
save_action = group.GetAction ("SaveAsAction");
save_action.Sensitive = false;
+ show_system_nodes_action = group.GetAction ("ShowSystemNodesAction");
return uim.GetWidget ("/Menubar");
}
}