mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-04-26 14:36:29 +00:00
atk: Move all .custom files to partial classes
This commit is contained in:
parent
c0129f42d5
commit
412fe3d9d1
|
@ -1,4 +1,4 @@
|
||||||
// Global.custom - Atk Global class customizations
|
// Global.cs - Atk Global class customizations
|
||||||
//
|
//
|
||||||
// Author: Mike Kestner <mkestner@novell.com>
|
// Author: Mike Kestner <mkestner@novell.com>
|
||||||
//
|
//
|
||||||
|
@ -21,6 +21,12 @@
|
||||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
// Boston, MA 02111-1307, USA.
|
// Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
namespace Atk {
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
public partial class Global {
|
||||||
|
|
||||||
[DllImport ("libatk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport ("libatk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
static extern uint atk_add_global_event_listener (GLib.Signal.EmissionHookNative hook, IntPtr event_type);
|
static extern uint atk_add_global_event_listener (GLib.Signal.EmissionHookNative hook, IntPtr event_type);
|
||||||
|
@ -32,4 +38,5 @@
|
||||||
GLib.Marshaller.Free (native_event_type);
|
GLib.Marshaller.Free (native_event_type);
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
// Hyperlink.custom - Atk Hyperlink class customizations
|
// Hyperlink.cs - Atk Hyperlink class customizations
|
||||||
//
|
//
|
||||||
// Author: Mike Gorse <mgorse@novell.com>
|
// Author: Mike Gorse <mgorse@novell.com>
|
||||||
//
|
//
|
||||||
|
@ -21,8 +21,12 @@
|
||||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
// Boston, MA 02111-1307, USA.
|
// Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
namespace Atk {
|
||||||
|
public partial class Hyperlink {
|
||||||
|
|
||||||
protected void EmitLinkActivated ()
|
protected void EmitLinkActivated ()
|
||||||
{
|
{
|
||||||
GLib.Signal.Emit (this, "link_activated");
|
GLib.Signal.Emit (this, "link_activated");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,16 +8,14 @@ references = ../glib/glib-sharp.dll
|
||||||
glue_includes = atk/atk.h
|
glue_includes = atk/atk.h
|
||||||
|
|
||||||
sources = \
|
sources = \
|
||||||
TextChangedDetail.cs
|
Global.cs \
|
||||||
|
Hyperlink.cs \
|
||||||
customs = \
|
Misc.cs \
|
||||||
Global.custom \
|
Object.cs \
|
||||||
Hyperlink.custom \
|
SelectionAdapter.cs \
|
||||||
Misc.custom \
|
TextAdapter.cs \
|
||||||
Object.custom \
|
TextChangedDetail.cs \
|
||||||
SelectionAdapter.custom \
|
Util.cs
|
||||||
TextAdapter.custom \
|
|
||||||
Util.custom
|
|
||||||
|
|
||||||
add_dist =
|
add_dist =
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Misc.custom - Atk Misc class customizations
|
// Misc.cs - Atk Misc class customizations
|
||||||
//
|
//
|
||||||
// Author: Mike Kestner <mkestner@novell.com>
|
// Author: Mike Kestner <mkestner@novell.com>
|
||||||
//
|
//
|
||||||
|
@ -21,6 +21,13 @@
|
||||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
// Boston, MA 02111-1307, USA.
|
// Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
namespace Atk {
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
public partial class Misc {
|
||||||
|
|
||||||
[DllImport("atksharpglue-3")]
|
[DllImport("atksharpglue-3")]
|
||||||
static extern void atksharp_misc_set_singleton_instance (IntPtr misc);
|
static extern void atksharp_misc_set_singleton_instance (IntPtr misc);
|
||||||
|
|
||||||
|
@ -28,4 +35,5 @@
|
||||||
{
|
{
|
||||||
atksharp_misc_set_singleton_instance (misc.Handle);
|
atksharp_misc_set_singleton_instance (misc.Handle);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
// Object.custom - Atk Object class customizations
|
// Object.cs - Atk Object class customizations
|
||||||
//
|
//
|
||||||
// Author: Andres G. Aragoneses <aaragoneses@novell.com>
|
// Author: Andres G. Aragoneses <aaragoneses@novell.com>
|
||||||
//
|
//
|
||||||
|
@ -21,6 +21,10 @@
|
||||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
// Boston, MA 02111-1307, USA.
|
// Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
namespace Atk {
|
||||||
|
|
||||||
|
public partial class Object {
|
||||||
|
|
||||||
protected void EmitChildrenChanged (ChildrenChangedDetail detail, uint child_index, Atk.Object child)
|
protected void EmitChildrenChanged (ChildrenChangedDetail detail, uint child_index, Atk.Object child)
|
||||||
{
|
{
|
||||||
GLib.Signal.Emit (this,
|
GLib.Signal.Emit (this,
|
||||||
|
@ -47,3 +51,5 @@
|
||||||
{
|
{
|
||||||
GLib.Signal.Emit (this, "focus-event", gained);
|
GLib.Signal.Emit (this, "focus-event", gained);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
// SelectionAdapter.custom - Atk SelectionAdapter class customizations
|
// SelectionAdapter.cs - Atk SelectionAdapter class customizations
|
||||||
//
|
//
|
||||||
// Author: Andrés G. Aragoneses <aaragoneses@novell.com>
|
// Author: Andrés G. Aragoneses <aaragoneses@novell.com>
|
||||||
//
|
//
|
||||||
|
@ -21,7 +21,12 @@
|
||||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
// Boston, MA 02111-1307, USA.
|
// Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
namespace Atk {
|
||||||
|
public partial class SelectionAdapter {
|
||||||
|
|
||||||
public void EmitSelectionChanged ()
|
public void EmitSelectionChanged ()
|
||||||
{
|
{
|
||||||
GLib.Signal.Emit (GLib.Object.GetObject (Handle), "selection_changed");
|
GLib.Signal.Emit (GLib.Object.GetObject (Handle), "selection_changed");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
// TextAdapter.custom - Atk TextAdapter class customizations
|
// TextAdapter.cs - Atk TextAdapter class customizations
|
||||||
//
|
//
|
||||||
// Author: Brad Taylor <brad@getcoded.net>
|
// Author: Brad Taylor <brad@getcoded.net>
|
||||||
//
|
//
|
||||||
|
@ -21,9 +21,14 @@
|
||||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
// Boston, MA 02111-1307, USA.
|
// Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
namespace Atk {
|
||||||
|
public partial class TextAdapter {
|
||||||
|
|
||||||
public void EmitTextChanged (TextChangedDetail detail, int position, int length)
|
public void EmitTextChanged (TextChangedDetail detail, int position, int length)
|
||||||
{
|
{
|
||||||
GLib.Signal.Emit (GLib.Object.GetObject (Handle),
|
GLib.Signal.Emit (GLib.Object.GetObject (Handle),
|
||||||
"text_changed::" + detail.ToString ().ToLower (),
|
"text_changed::" + detail.ToString ().ToLower (),
|
||||||
position, length);
|
position, length);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
// Util.custom - Atk Util class customizations
|
// Util.cs - Atk Util class customizations
|
||||||
//
|
//
|
||||||
// Author: Mike Kestner <mkestner@novell.com>
|
// Author: Mike Kestner <mkestner@novell.com>
|
||||||
//
|
//
|
||||||
|
@ -21,6 +21,12 @@
|
||||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
// Boston, MA 02111-1307, USA.
|
// Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
namespace Atk {
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
public partial class Util {
|
||||||
|
|
||||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||||
delegate uint AddGlobalEventListenerNativeDelegate (GLib.Signal.EmissionHookNative hook, IntPtr event_type);
|
delegate uint AddGlobalEventListenerNativeDelegate (GLib.Signal.EmissionHookNative hook, IntPtr event_type);
|
||||||
|
@ -103,3 +109,5 @@
|
||||||
atksharp_util_override_remove_key_event_listener (remove_key_event_listener_callback);
|
atksharp_util_override_remove_key_event_listener (remove_key_event_listener_callback);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue