~ubuntu-branches/ubuntu/lucid/monodevelop/lucid

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Components/MonoDevelop.Components.DockToolbars/DockToolbar.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-02-02 11:39:59 UTC
  • mfrom: (1.2.6 upstream) (1.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100202113959-s4exdz7er7igylz2
Tags: 2.2.1+dfsg-1
* New upstream release
* debian/control:
  + Standards version 3.8.4 (no changes needed)
* debian/patches/remove_support_for_non_debian_functionality.patch,
  debian/patches/remove_support_for_soft_debugger.patch,
  debian/patches/remove_support_for_moonlight.patch,
  debian/rules:
  + Split patch into two pieces, to make it easier to enable either
    SDB or Moonlight support with a rebuild
* debian/monodevelop-moonlight.install,
  debian/monodevelop-debugger-sdb.install,
  debian/control:
  + Create packaging data for the Soft Debugger addin and Moonlight addin -
    and comment them out of debian/control as we can't provide them on
    Debian for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
265
265
                {
266
266
                        //use the base class to paint the background like a toolbar, which may be a gradient
267
267
                        // but only if horizontal, else the gradient usually looks really ugly
268
 
                        if (this.Orientation == Orientation.Horizontal)
269
 
                                return base.OnExposeEvent (evnt);
270
 
                        
271
 
                        //else we paint a plain flat background to make everything even - see DockToolbarPanel.OnExposeEvent
272
 
                        
273
 
                    GdkWindow.DrawRectangle (Style.BackgroundGC (State), true, Allocation);
 
268
                        if (this.Orientation == Orientation.Horizontal){
 
269
                                //the WIMP theme engine's rendering is a bit off, need to force it to render wider
 
270
                                int widen = MonoDevelop.Core.PropertyService.IsWindows? 1 : 0;
 
271
                                
 
272
                                var shadowType = (ShadowType)StyleGetProperty ("shadow-type");
 
273
                                Style.PaintBox (Style, evnt.Window, State, shadowType, evnt.Area, this, "toolbar", 
 
274
                                                Allocation.X - widen, Allocation.Y, Allocation.Width + widen + widen, Allocation.Height);
 
275
                        } else {
 
276
                                //else we paint a plain flat background to make everything even - see DockToolbarPanel.OnExposeEvent
 
277
                                GdkWindow.DrawRectangle (Style.BackgroundGC (State), true, Allocation);
 
278
                        }
274
279
            
275
280
            foreach (Widget child in Children) {
276
281
                PropagateExpose (child, evnt);