diff options
author | Michael Hutchinson <mhutchinson@novell.com> | 2010-04-22 01:16:56 +0400 |
---|---|---|
committer | Michael Hutchinson <mhutchinson@novell.com> | 2010-04-22 01:16:56 +0400 |
commit | 8901920caa680aefb986b2a3e93450087f8cf1c1 (patch) | |
tree | 99cd61bd554eb0de72cd14850fad2e93b7e4abb9 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components | |
parent | 0564ea670b7721560a8ed291946c6a2604ea96b7 (diff) |
* src/addins/NUnit/Gui/TestResultsPad.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/TaskListPad.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/MonodocTreePad.cs:
* src/addins/TextTemplating/MonoDevelop.TextTemplating/Gui/T4EditorExtension.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid/PropertyGridTree.cs:
* src/addins/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor.Gui/BaseXmlEditorExtension.cs:
* src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/ClassOutlineTextEditorExtension.cs:
Free up wasted space between scrollbars and treeview contents.
* src/core/MonoDevelop.Ide/MonoDevelop.Components/CompactScrolledWindow.cs:
New widget, ScrolledWindow with style overridden to have less
padding inside.
* src/core/MonoDevelop.Ide/Makefile.am:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj: Added file.
* src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/Toolbox.cs:
Free up wasted space between scrollbars and contents.
svn path=/trunk/monodevelop/; revision=155921
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components/CompactScrolledWindow.cs | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/CompactScrolledWindow.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/CompactScrolledWindow.cs new file mode 100644 index 0000000000..f81e8e853e --- /dev/null +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/CompactScrolledWindow.cs @@ -0,0 +1,50 @@ +// +// CompactScrolledWindow.cs +// +// Author: +// Michael Hutchinson <mhutchinson@novell.com> +// +// Copyright (c) 2010 Novell, Inc. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +using System; + +namespace MonoDevelop.Components +{ + public class CompactScrolledWindow : Gtk.ScrolledWindow + { + const string styleName = "MonoDevelop.Components.CompactScrolledWindow"; + + static CompactScrolledWindow () + { + Gtk.Rc.ParseString (@"style """ + styleName + @""" +{ + GtkScrolledWindow::scrollbar-spacing = 1 +}"); + } + + public CompactScrolledWindow () : base () + { + //HACK to hide the useless padding that many themes have inside the ScrolledWindow - GTK default is 3 + Gtk.Rc.ParseString (string.Format ("widget \"*.{0}\" style \"{1}\" ", Name, styleName)); + } + } +} + |