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:56:16 +0300
committerDmytro Ovcharov <dmytro.ovcharov@globallogic.com>2017-07-03 14:56:16 +0300
commit118994b82135b57aa149af5324035ab4e536fbe3 (patch)
tree4d370680e7d1a41aead5ba4222ae89910433cec3 /main/src/core/MonoDevelop.Ide/gtk-gui
parent2959ef0bc6b76cbcda5bdb7dc48dabbafcf48ebd (diff)
fix bugs 53532
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, 27 insertions, 22 deletions
diff --git a/main/src/core/MonoDevelop.Ide/gtk-gui/generated.cs b/main/src/core/MonoDevelop.Ide/gtk-gui/generated.cs
index a58073258b..453751b36a 100644
--- a/main/src/core/MonoDevelop.Ide/gtk-gui/generated.cs
+++ b/main/src/core/MonoDevelop.Ide/gtk-gui/generated.cs
@@ -6,9 +6,10 @@ 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;
}
}
@@ -20,48 +21,52 @@ 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;
}
}
@@ -70,12 +75,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;
}