1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565
|
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gtk {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class ApplicationWindow : Gtk.Window, GLib.IActionGroup, GLib.IActionMap {
public ApplicationWindow (IntPtr raw) : base(raw) {}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_application_window_new(IntPtr application);
public ApplicationWindow (Gtk.Application application) : base (IntPtr.Zero)
{
if (GetType () != typeof (ApplicationWindow)) {
var vals = new List<GLib.Value> ();
var names = new List<string> ();
if (application != null) {
names.Add ("application");
vals.Add (new GLib.Value (application));
}
CreateNativeObject (names.ToArray (), vals.ToArray ());
return;
}
Raw = gtk_application_window_new(application == null ? IntPtr.Zero : application.Handle);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_application_window_get_show_menubar(IntPtr raw);
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_application_window_set_show_menubar(IntPtr raw, bool show_menubar);
[GLib.Property ("show-menubar")]
public bool ShowMenubar {
get {
bool raw_ret = gtk_application_window_get_show_menubar(Handle);
bool ret = raw_ret;
return ret;
}
set {
gtk_application_window_set_show_menubar(Handle, value);
}
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("padding"
, Gtk.Window.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 14 // padding
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_application_window_get_help_overlay(IntPtr raw);
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_application_window_set_help_overlay(IntPtr raw, IntPtr help_overlay);
public Gtk.ShortcutsWindow HelpOverlay {
get {
IntPtr raw_ret = gtk_application_window_get_help_overlay(Handle);
Gtk.ShortcutsWindow ret = GLib.Object.GetObject(raw_ret) as Gtk.ShortcutsWindow;
return ret;
}
set {
gtk_application_window_set_help_overlay(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gtk_application_window_get_id(IntPtr raw);
public uint Id {
get {
uint raw_ret = gtk_application_window_get_id(Handle);
uint ret = raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_application_window_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gtk_application_window_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void g_action_group_action_added(IntPtr raw, IntPtr action_name);
public void EmitActionAdded(string action_name) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
g_action_group_action_added(Handle, native_action_name);
GLib.Marshaller.Free (native_action_name);
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void g_action_group_action_enabled_changed(IntPtr raw, IntPtr action_name, bool enabled);
public void EmitActionEnabledChanged(string action_name, bool enabled) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
g_action_group_action_enabled_changed(Handle, native_action_name, enabled);
GLib.Marshaller.Free (native_action_name);
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void g_action_group_action_removed(IntPtr raw, IntPtr action_name);
public void EmitActionRemoved(string action_name) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
g_action_group_action_removed(Handle, native_action_name);
GLib.Marshaller.Free (native_action_name);
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void g_action_group_action_state_changed(IntPtr raw, IntPtr action_name, IntPtr state);
public void EmitActionStateChanged(string action_name, GLib.Variant state) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
g_action_group_action_state_changed(Handle, native_action_name, state == null ? IntPtr.Zero : state.Handle);
GLib.Marshaller.Free (native_action_name);
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void g_action_group_activate_action(IntPtr raw, IntPtr action_name, IntPtr parameter);
public void ActivateAction(string action_name, GLib.Variant parameter) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
g_action_group_activate_action(Handle, native_action_name, parameter == null ? IntPtr.Zero : parameter.Handle);
GLib.Marshaller.Free (native_action_name);
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void g_action_group_change_action_state(IntPtr raw, IntPtr action_name, IntPtr value);
public void ChangeActionState(string action_name, GLib.Variant value) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
g_action_group_change_action_state(Handle, native_action_name, value == null ? IntPtr.Zero : value.Handle);
GLib.Marshaller.Free (native_action_name);
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool g_action_group_get_action_enabled(IntPtr raw, IntPtr action_name);
public bool GetActionEnabled(string action_name) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
bool raw_ret = g_action_group_get_action_enabled(Handle, native_action_name);
bool ret = raw_ret;
GLib.Marshaller.Free (native_action_name);
return ret;
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_action_group_get_action_parameter_type(IntPtr raw, IntPtr action_name);
public GLib.VariantType GetActionParameterType(string action_name) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
IntPtr raw_ret = g_action_group_get_action_parameter_type(Handle, native_action_name);
GLib.VariantType ret = new GLib.VariantType(raw_ret);
GLib.Marshaller.Free (native_action_name);
return ret;
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_action_group_get_action_state(IntPtr raw, IntPtr action_name);
public GLib.Variant GetActionState(string action_name) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
IntPtr raw_ret = g_action_group_get_action_state(Handle, native_action_name);
GLib.Variant ret = new GLib.Variant(raw_ret);
GLib.Marshaller.Free (native_action_name);
return ret;
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_action_group_get_action_state_hint(IntPtr raw, IntPtr action_name);
public GLib.Variant GetActionStateHint(string action_name) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
IntPtr raw_ret = g_action_group_get_action_state_hint(Handle, native_action_name);
GLib.Variant ret = new GLib.Variant(raw_ret);
GLib.Marshaller.Free (native_action_name);
return ret;
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_action_group_get_action_state_type(IntPtr raw, IntPtr action_name);
public GLib.VariantType GetActionStateType(string action_name) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
IntPtr raw_ret = g_action_group_get_action_state_type(Handle, native_action_name);
GLib.VariantType ret = new GLib.VariantType(raw_ret);
GLib.Marshaller.Free (native_action_name);
return ret;
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool g_action_group_has_action(IntPtr raw, IntPtr action_name);
public bool HasAction(string action_name) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
bool raw_ret = g_action_group_has_action(Handle, native_action_name);
bool ret = raw_ret;
GLib.Marshaller.Free (native_action_name);
return ret;
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_action_group_list_actions(IntPtr raw);
public string ListActions() {
IntPtr raw_ret = g_action_group_list_actions(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool g_action_group_query_action(IntPtr raw, IntPtr action_name, out bool enabled, IntPtr parameter_type, IntPtr state_type, IntPtr state_hint, IntPtr state);
public bool QueryAction(string action_name, out bool enabled, GLib.VariantType parameter_type, GLib.VariantType state_type, GLib.Variant state_hint, GLib.Variant state) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
bool raw_ret = g_action_group_query_action(Handle, native_action_name, out enabled, parameter_type == null ? IntPtr.Zero : parameter_type.Handle, state_type == null ? IntPtr.Zero : state_type.Handle, state_hint == null ? IntPtr.Zero : state_hint.Handle, state == null ? IntPtr.Zero : state.Handle);
bool ret = raw_ret;
GLib.Marshaller.Free (native_action_name);
return ret;
}
[GLib.Signal("action-added")]
public event GLib.ActionAddedHandler ActionAdded {
add {
this.AddSignalHandler ("action-added", value, typeof (GLib.ActionAddedArgs));
}
remove {
this.RemoveSignalHandler ("action-added", value);
}
}
[GLib.Signal("action-state-changed")]
public event GLib.ActionStateChangedHandler ActionStateChanged {
add {
this.AddSignalHandler ("action-state-changed", value, typeof (GLib.ActionStateChangedArgs));
}
remove {
this.RemoveSignalHandler ("action-state-changed", value);
}
}
[GLib.Signal("action-enabled-changed")]
public event GLib.ActionEnabledChangedHandler ActionEnabledChanged {
add {
this.AddSignalHandler ("action-enabled-changed", value, typeof (GLib.ActionEnabledChangedArgs));
}
remove {
this.RemoveSignalHandler ("action-enabled-changed", value);
}
}
[GLib.Signal("action-removed")]
public event GLib.ActionRemovedHandler ActionRemoved {
add {
this.AddSignalHandler ("action-removed", value, typeof (GLib.ActionRemovedArgs));
}
remove {
this.RemoveSignalHandler ("action-removed", value);
}
}
static ActionAddedNativeDelegate ActionAdded_cb_delegate;
static ActionAddedNativeDelegate ActionAddedVMCallback {
get {
if (ActionAdded_cb_delegate == null)
ActionAdded_cb_delegate = new ActionAddedNativeDelegate (ActionAdded_cb);
return ActionAdded_cb_delegate;
}
}
static void OverrideActionAdded (GLib.GType gtype)
{
OverrideActionAdded (gtype, ActionAddedVMCallback);
}
static void OverrideActionAdded (GLib.GType gtype, ActionAddedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "action-added", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ActionAddedNativeDelegate (IntPtr inst, IntPtr action_name);
static void ActionAdded_cb (IntPtr inst, IntPtr action_name)
{
try {
Gtk.ApplicationWindow __obj = GLib.Object.GetObject (inst, false) as Gtk.ApplicationWindow;
__obj.OnActionAdded (GLib.Marshaller.Utf8PtrToString (action_name));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.ApplicationWindow), ConnectionMethod="OverrideActionAdded")]
protected virtual void OnActionAdded (string action_name)
{
InternalActionAdded (action_name);
}
private void InternalActionAdded (string action_name)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
GLib.Value[] vals = new GLib.Value [2];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (action_name);
inst_and_params.Append (vals [1]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
static ActionRemovedNativeDelegate ActionRemoved_cb_delegate;
static ActionRemovedNativeDelegate ActionRemovedVMCallback {
get {
if (ActionRemoved_cb_delegate == null)
ActionRemoved_cb_delegate = new ActionRemovedNativeDelegate (ActionRemoved_cb);
return ActionRemoved_cb_delegate;
}
}
static void OverrideActionRemoved (GLib.GType gtype)
{
OverrideActionRemoved (gtype, ActionRemovedVMCallback);
}
static void OverrideActionRemoved (GLib.GType gtype, ActionRemovedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "action-removed", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ActionRemovedNativeDelegate (IntPtr inst, IntPtr action_name);
static void ActionRemoved_cb (IntPtr inst, IntPtr action_name)
{
try {
Gtk.ApplicationWindow __obj = GLib.Object.GetObject (inst, false) as Gtk.ApplicationWindow;
__obj.OnActionRemoved (GLib.Marshaller.Utf8PtrToString (action_name));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.ApplicationWindow), ConnectionMethod="OverrideActionRemoved")]
protected virtual void OnActionRemoved (string action_name)
{
InternalActionRemoved (action_name);
}
private void InternalActionRemoved (string action_name)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
GLib.Value[] vals = new GLib.Value [2];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (action_name);
inst_and_params.Append (vals [1]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
static ActionEnabledChangedNativeDelegate ActionEnabledChanged_cb_delegate;
static ActionEnabledChangedNativeDelegate ActionEnabledChangedVMCallback {
get {
if (ActionEnabledChanged_cb_delegate == null)
ActionEnabledChanged_cb_delegate = new ActionEnabledChangedNativeDelegate (ActionEnabledChanged_cb);
return ActionEnabledChanged_cb_delegate;
}
}
static void OverrideActionEnabledChanged (GLib.GType gtype)
{
OverrideActionEnabledChanged (gtype, ActionEnabledChangedVMCallback);
}
static void OverrideActionEnabledChanged (GLib.GType gtype, ActionEnabledChangedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "action-enabled-changed", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ActionEnabledChangedNativeDelegate (IntPtr inst, IntPtr action_name, bool enabled);
static void ActionEnabledChanged_cb (IntPtr inst, IntPtr action_name, bool enabled)
{
try {
Gtk.ApplicationWindow __obj = GLib.Object.GetObject (inst, false) as Gtk.ApplicationWindow;
__obj.OnActionEnabledChanged (GLib.Marshaller.Utf8PtrToString (action_name), enabled);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.ApplicationWindow), ConnectionMethod="OverrideActionEnabledChanged")]
protected virtual void OnActionEnabledChanged (string action_name, bool enabled)
{
InternalActionEnabledChanged (action_name, enabled);
}
private void InternalActionEnabledChanged (string action_name, bool enabled)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (action_name);
inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (enabled);
inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
static ActionStateChangedNativeDelegate ActionStateChanged_cb_delegate;
static ActionStateChangedNativeDelegate ActionStateChangedVMCallback {
get {
if (ActionStateChanged_cb_delegate == null)
ActionStateChanged_cb_delegate = new ActionStateChangedNativeDelegate (ActionStateChanged_cb);
return ActionStateChanged_cb_delegate;
}
}
static void OverrideActionStateChanged (GLib.GType gtype)
{
OverrideActionStateChanged (gtype, ActionStateChangedVMCallback);
}
static void OverrideActionStateChanged (GLib.GType gtype, ActionStateChangedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "action-state-changed", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ActionStateChangedNativeDelegate (IntPtr inst, IntPtr action_name, IntPtr state);
static void ActionStateChanged_cb (IntPtr inst, IntPtr action_name, IntPtr state)
{
try {
Gtk.ApplicationWindow __obj = GLib.Object.GetObject (inst, false) as Gtk.ApplicationWindow;
__obj.OnActionStateChanged (GLib.Marshaller.Utf8PtrToString (action_name), new GLib.Variant(state));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.ApplicationWindow), ConnectionMethod="OverrideActionStateChanged")]
protected virtual void OnActionStateChanged (string action_name, GLib.Variant state)
{
InternalActionStateChanged (action_name, state);
}
private void InternalActionStateChanged (string action_name, GLib.Variant state)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (action_name);
inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (state);
inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void g_action_map_add_action(IntPtr raw, IntPtr action);
public void AddAction(GLib.IAction action) {
g_action_map_add_action(Handle, action == null ? IntPtr.Zero : ((action is GLib.Object) ? (action as GLib.Object).Handle : (action as GLib.ActionAdapter).Handle));
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void g_action_map_add_action_entries(IntPtr raw, IntPtr entries, int n_entries, IntPtr user_data);
public void AddActionEntries(GLib.ActionEntry entries, int n_entries, IntPtr user_data) {
IntPtr native_entries = GLib.Marshaller.StructureToPtrAlloc (entries);
g_action_map_add_action_entries(Handle, native_entries, n_entries, user_data);
Marshal.FreeHGlobal (native_entries);
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_action_map_lookup_action(IntPtr raw, IntPtr action_name);
public GLib.IAction LookupAction(string action_name) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
IntPtr raw_ret = g_action_map_lookup_action(Handle, native_action_name);
GLib.IAction ret = GLib.ActionAdapter.GetObject (raw_ret, false);
GLib.Marshaller.Free (native_action_name);
return ret;
}
[DllImport("gio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void g_action_map_remove_action(IntPtr raw, IntPtr action_name);
public void RemoveAction(string action_name) {
IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup (action_name);
g_action_map_remove_action(Handle, native_action_name);
GLib.Marshaller.Free (native_action_name);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, Gtk.Window.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}
|