[Monodevelop-patches-list] r2190 - in trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor: . Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sat Jan 29 19:53:20 EST 2005
Author: tberman
Date: 2005-01-29 19:53:19 -0500 (Sat, 29 Jan 2005)
New Revision: 2190
Modified:
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
Log:
2005-01-29 Todd Berman <tberman at off.net>
* Gui/SourceEditorView.cs: Only show "Breakpoint" if the
DebuggingService is available.
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2005-01-29 03:15:30 UTC (rev 2189)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2005-01-30 00:53:19 UTC (rev 2190)
@@ -1,3 +1,8 @@
+2005-01-29 Todd Berman <tberman at off.net>
+
+ * Gui/SourceEditorView.cs: Only show "Breakpoint" if the
+ DebuggingService is available.
+
2005-01-27 John Luke <john.luke at gmail.com>
* EditorBindings.glade:
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2005-01-29 03:15:30 UTC (rev 2189)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2005-01-30 00:53:19 UTC (rev 2190)
@@ -91,15 +91,19 @@
} else if (e.Event.Button == 3) {
Gtk.Menu popup = new Gtk.Menu ();
Gtk.CheckMenuItem bookmarkItem = new Gtk.CheckMenuItem (GettextCatalog.GetString ("Bookmark"));
- Gtk.CheckMenuItem breakpointItem = new Gtk.CheckMenuItem (GettextCatalog.GetString ("Breakpoint"));
-
bookmarkItem.Active = buf.IsBookmarked (line.Line);
- breakpointItem.Active = buf.IsBreakpoint (line.Line);
-
bookmarkItem.Toggled += new EventHandler (bookmarkToggled);
- breakpointItem.Toggled += new EventHandler (breakpointToggled);
popup.Append (bookmarkItem);
- popup.Append (breakpointItem);
+
+ if (ServiceManager.GetService (typeof (IDebuggingService)) != null) {
+ Gtk.CheckMenuItem breakpointItem = new Gtk.CheckMenuItem (GettextCatalog.GetString ("Breakpoint"));
+
+ breakpointItem.Active = buf.IsBreakpoint (line.Line);
+
+ breakpointItem.Toggled += new EventHandler (breakpointToggled);
+ popup.Append (breakpointItem);
+ }
+
popup.ShowAll ();
lineToMark = line.Line;
popup.Popup (null, null, null, IntPtr.Zero, 3, e.Event.Time);
More information about the Monodevelop-patches-list
mailing list