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

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmytro Ovcharov <dmytro.ovcharov@globallogic.com>2017-07-03 14:57:48 +0300
committerDmytro Ovcharov <dmytro.ovcharov@globallogic.com>2017-07-03 14:57:48 +0300
commitcae0b69070216f3e0cbdb0757c96a2e79f4b5a0b (patch)
tree5eae9c5127e230ca6cb7f23bb44de12807eac9ee /main/src/core/MonoDevelop.Ide/gtk-gui
parent118994b82135b57aa149af5324035ab4e536fbe3 (diff)
Revert "fix bugs 53532"
This reverts commit 118994b82135b57aa149af5324035ab4e536fbe3.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/gtk-gui')
-rw-r--r--main/src/core/MonoDevelop.Ide/gtk-gui/generated.cs49
1 files changed, 22 insertions, 27 deletions
diff --git a/main/src/core/MonoDevelop.Ide/gtk-gui/generated.cs b/main/src/core/MonoDevelop.Ide/gtk-gui/generated.cs
index 453751b36a..a58073258b 100644
--- a/main/src/core/MonoDevelop.Ide/gtk-gui/generated.cs
+++ b/main/src/core/MonoDevelop.Ide/gtk-gui/generated.cs
@@ -6,10 +6,9 @@ namespace Stetic
{
private static bool initialized;
- internal static void Initialize(Gtk.Widget iconRenderer)
+ internal static void Initialize (Gtk.Widget iconRenderer)
{
- if ((Stetic.Gui.initialized == false))
- {
+ if ((Stetic.Gui.initialized == false)) {
Stetic.Gui.initialized = true;
}
}
@@ -21,52 +20,48 @@ namespace Stetic
private Gtk.UIManager uimanager;
- public static BinContainer Attach(Gtk.Bin bin)
+ public static BinContainer Attach (Gtk.Bin bin)
{
- BinContainer bc = new BinContainer();
- bin.SizeRequested += new Gtk.SizeRequestedHandler(bc.OnSizeRequested);
- bin.SizeAllocated += new Gtk.SizeAllocatedHandler(bc.OnSizeAllocated);
- bin.Added += new Gtk.AddedHandler(bc.OnAdded);
+ BinContainer bc = new BinContainer ();
+ bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested);
+ bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated);
+ bin.Added += new Gtk.AddedHandler (bc.OnAdded);
return bc;
}
- private void OnSizeRequested(object sender, Gtk.SizeRequestedArgs args)
+ private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args)
{
- if ((this.child != null))
- {
- args.Requisition = this.child.SizeRequest();
+ if ((this.child != null)) {
+ args.Requisition = this.child.SizeRequest ();
}
}
- private void OnSizeAllocated(object sender, Gtk.SizeAllocatedArgs args)
+ private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
{
- if ((this.child != null))
- {
+ if ((this.child != null)) {
this.child.Allocation = args.Allocation;
}
}
- private void OnAdded(object sender, Gtk.AddedArgs args)
+ private void OnAdded (object sender, Gtk.AddedArgs args)
{
this.child = args.Widget;
}
- public void SetUiManager(Gtk.UIManager uim)
+ public void SetUiManager (Gtk.UIManager uim)
{
this.uimanager = uim;
- this.child.Realized += new System.EventHandler(this.OnRealized);
+ this.child.Realized += new System.EventHandler (this.OnRealized);
}
- private void OnRealized(object sender, System.EventArgs args)
+ private void OnRealized (object sender, System.EventArgs args)
{
- if ((this.uimanager != null))
- {
+ if ((this.uimanager != null)) {
Gtk.Widget w;
w = this.child.Toplevel;
if (((w != null)
- && typeof(Gtk.Window).IsInstanceOfType(w)))
- {
- ((Gtk.Window)(w)).AddAccelGroup(this.uimanager.AccelGroup);
+ && typeof (Gtk.Window).IsInstanceOfType (w))) {
+ ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup);
this.uimanager = null;
}
}
@@ -75,12 +70,12 @@ namespace Stetic
internal class ActionGroups
{
- public static Gtk.ActionGroup GetActionGroup(System.Type type)
+ public static Gtk.ActionGroup GetActionGroup (System.Type type)
{
- return Stetic.ActionGroups.GetActionGroup(type.FullName);
+ return Stetic.ActionGroups.GetActionGroup (type.FullName);
}
- public static Gtk.ActionGroup GetActionGroup(string name)
+ public static Gtk.ActionGroup GetActionGroup (string name)
{
return null;
}