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

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.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:
28
28
 
29
29
 
30
30
using System;
 
31
using System.Linq;
31
32
using System.IO;
32
33
using System.Xml;
33
34
using System.Collections.Generic;
178
179
                        get { return (Gtk.Window) workbench; }
179
180
                }
180
181
                
 
182
                /// <summary>
 
183
                /// Whether the root window or any undocked part of it has toplevel focus. 
 
184
                /// </summary>
 
185
                public bool HasToplevelFocus {
 
186
                        get {
 
187
                                var toplevel = Gtk.Window.ListToplevels ().Where (x => x.HasToplevelFocus).FirstOrDefault ();
 
188
                                if (toplevel == null)
 
189
                                        return false;
 
190
                                if (toplevel == RootWindow)
 
191
                                        return true;
 
192
                                //FIXME: don't depend on type name string
 
193
                                var c = toplevel.Child;
 
194
                                return c != null && c.GetType ().FullName.StartsWith ("MonoDevelop.Components.Docking");
 
195
                        }
 
196
                }
 
197
                
181
198
                public void Present ()
182
199
                {
183
200
                        //FIXME: Present is broken on Mac GTK+. It maximises the window.