[Gtk-sharp-list] Gtk.Builder & Autoconnect

Sascha Manns Sascha.Manns at mailbox.org
Tue Jan 17 17:26:32 UTC 2017


Hello list,

i've written a new GUI for my program with Glade and Gtk.Builder.

Actually i'm having that constructors:

public static PublicanCreators Create()
{
    Builder builder = new Builder();
    builder.AddFromFile("gui.glade");
    return new PublicanCreators(builder, builder.GetObject("PublicanCreators").Handle);
}
protected PublicanCreators(Builder builder, IntPtr handle) : base(handle)
{
    _builder = builder;
    builder.Autoconnect(this);
    SetupHandlers();
}

The usage of "builder.Autoconnect(this)" is often used in other
projects. But on my it breaks the build because: "Error:(69, 21) CS1061:
PublicanCreators.cs(69,21):  error CS1061: Type `Gtk.Builder' does not
contain a definition for `Autoconnect' and no extension method
`Autoconnect' of type `Gtk.Builder' could be found. Are you missing an
assembly reference?"
The GUI is described in Program.cs and PublicanCreators.cs there:
https://github.com/saigkill/PublicanCreators/tree/master/PublicanCreators
Maybe anyone knows how to get the Autoconnect working?

Greetings
Sascha
-- 

Sascha Manns
Sascha.Manns at mailbox.org <mailto:Sascha.Manns at mailbox.org>
GPG: 0x168428cdb1f20ab1
<http://pgpkey.org/pks/lookup?op=vindex&search=0x168428cdb1f20ab1&fingerprint=on>
jabber:Sascha.Manns at jabber.org <jabber:Sascha.Manns at jabber.org>


Maifeldstraße 10
56727 Mayen
mobile: +49-1573-9242730
home: +49-2651-4014045
https://saigkill.github.io

Twitter <https://twitter.com/saigkill> Facebook
<https://www.facebook.com/sascha.manns> LinkedIn
<https://de.linkedin.com/in/saigkill> Skype <skype:schurik0815?call>
Github <https://github.com/saigkill> Xing
<https://www.xing.com/profile/Sascha_Manns4>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170117/09372bae/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twitter.png
Type: image/png
Size: 1418 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170117/09372bae/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spacer.gif
Type: image/gif
Size: 1097 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170117/09372bae/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: facebook.png
Type: image/png
Size: 956 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170117/09372bae/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin.png
Type: image/png
Size: 1141 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170117/09372bae/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: skype.png
Type: image/png
Size: 1632 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170117/09372bae/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: github.png
Type: image/png
Size: 2345 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170117/09372bae/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xing.png
Type: image/png
Size: 2636 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170117/09372bae/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 837 bytes
Desc: OpenPGP digital signature
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170117/09372bae/attachment.sig>


More information about the Gtk-sharp-list mailing list