Placeholder for binding GtkMenuItem::activate signal

This commit is contained in:
Michael Becker 2016-06-06 14:42:06 -04:00
parent b1fb5b5b21
commit 99e4dcf921

View File

@ -20,9 +20,19 @@ namespace UniversalEditor.Engines.GTK
}
}
private Internal.GLib.Delegates.GCallback _this_activate = null;
private void _this_activate_impl(IntPtr sender)
{
Console.WriteLine ("Hello world for item " + sender.ToString ());
}
protected override IntPtr CreateInternal ()
{
IntPtr handle = Internal.GTK.Methods.gtk_menu_item_new ();
_this_activate = new Internal.GLib.Delegates.GCallback (_this_activate_impl);
Internal.GLib.Methods.g_signal_connect (handle, "activate", _this_activate, IntPtr.Zero);
return handle;
}
protected override void AfterCreateInternal ()