mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-07-09 07:40:40 +00:00
gtk: Re-indent code that was moved inside partial classes
No real code change in this commit, just whitespace changes.
This commit is contained in:
parent
a410d42975
commit
a8e1e8fd7d
|
@ -26,8 +26,7 @@ namespace Gtk {
|
||||||
public partial class Action {
|
public partial class Action {
|
||||||
|
|
||||||
public Action (string name, string label) : this (name, label, null, null)
|
public Action (string name, string label) : this (name, label, null, null)
|
||||||
{
|
{}
|
||||||
}
|
|
||||||
|
|
||||||
[DllImport ("libgtk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport ("libgtk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
static extern IntPtr gtk_action_get_proxies (IntPtr raw);
|
static extern IntPtr gtk_action_get_proxies (IntPtr raw);
|
||||||
|
|
|
@ -44,7 +44,6 @@ public DateTime GetDate ()
|
||||||
// This defines a Date property for Calendar
|
// This defines a Date property for Calendar
|
||||||
// Note that the setter causes CalendarChange events to be fired
|
// Note that the setter causes CalendarChange events to be fired
|
||||||
public DateTime Date
|
public DateTime Date
|
||||||
|
|
||||||
{
|
{
|
||||||
get {
|
get {
|
||||||
return this.GetDate();
|
return this.GetDate();
|
||||||
|
|
|
@ -23,6 +23,7 @@ namespace Gtk {
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
public partial class ColorSelectionDialog {
|
public partial class ColorSelectionDialog {
|
||||||
|
|
||||||
[Obsolete ("Do not use this class. It will cause your app to crash in mysterious ways.")]
|
[Obsolete ("Do not use this class. It will cause your app to crash in mysterious ways.")]
|
||||||
public class ColorSelectionButton : Gtk.Button {
|
public class ColorSelectionButton : Gtk.Button {
|
||||||
private ColorSelectionDialog color_sel;
|
private ColorSelectionDialog color_sel;
|
||||||
|
|
|
@ -20,6 +20,7 @@ namespace Gtk {
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
public partial class Entry {
|
public partial class Entry {
|
||||||
|
|
||||||
public int InsertText (string new_text)
|
public int InsertText (string new_text)
|
||||||
{
|
{
|
||||||
int position = 0;
|
int position = 0;
|
||||||
|
|
|
@ -129,8 +129,7 @@ namespace Gtk {
|
||||||
throw new Exception (String.Format ("You have two TreeNodeValueAttributes with the Column={0}", col));
|
throw new Exception (String.Format ("You have two TreeNodeValueAttributes with the Column={0}", col));
|
||||||
|
|
||||||
getters [col] = mi;
|
getters [col] = mi;
|
||||||
Type t = mi is PropertyInfo ? ((PropertyInfo) mi).PropertyType
|
Type t = mi is PropertyInfo ? ((PropertyInfo) mi).PropertyType : ((FieldInfo) mi).FieldType;
|
||||||
: ((FieldInfo) mi).FieldType;
|
|
||||||
ctypes [col] = (GLib.GType) t;
|
ctypes [col] = (GLib.GType) t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,6 +54,7 @@ namespace Gtk {
|
||||||
Widget[] result = new Widget [list.Count];
|
Widget[] result = new Widget [list.Count];
|
||||||
for (int i = 0; i < list.Count; i++)
|
for (int i = 0; i < list.Count; i++)
|
||||||
result [i] = list [i] as Widget;
|
result [i] = list [i] as Widget;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,6 +68,7 @@ namespace Gtk {
|
||||||
ActionGroup[] result = new ActionGroup [list.Count];
|
ActionGroup[] result = new ActionGroup [list.Count];
|
||||||
for (int i = 0; i < list.Count; i++)
|
for (int i = 0; i < list.Count; i++)
|
||||||
result [i] = list [i] as ActionGroup;
|
result [i] = list [i] as ActionGroup;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,7 @@ namespace Gtk {
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
public partial class Widget {
|
public partial class Widget {
|
||||||
|
|
||||||
[Obsolete ("Replaced by Window property.")]
|
[Obsolete ("Replaced by Window property.")]
|
||||||
public Gdk.Window GdkWindow {
|
public Gdk.Window GdkWindow {
|
||||||
get { return Window; }
|
get { return Window; }
|
||||||
|
@ -37,7 +38,6 @@ public Gdk.Window GdkWindow {
|
||||||
public void AddAccelerator (string accel_signal, AccelGroup accel_group, AccelKey accel_key)
|
public void AddAccelerator (string accel_signal, AccelGroup accel_group, AccelKey accel_key)
|
||||||
{
|
{
|
||||||
this.AddAccelerator (accel_signal, accel_group, (uint) accel_key.Key, accel_key.AccelMods, accel_key.AccelFlags);
|
this.AddAccelerator (accel_signal, accel_group, (uint) accel_key.Key, accel_key.AccelMods, accel_key.AccelFlags);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int FocusLineWidth {
|
public int FocusLineWidth {
|
||||||
|
|
Loading…
Reference in a new issue