Re: Can't locate object method "set_tab_hborder" via package "Gtk3::Notebook"



Juergen Harms <juergen harms unige ch> writes:

Trying to convert a gtk2 application to gtk3, I get the above error 
message - looks like set_tab_hborder and set_tab_vborder is not mapped 
in Perl-Gtk3 (Mageia perl-Gtk3-0.9.0-1) - maybe also the corresponding 
get_... functions, I did not check - or is there another reason?

The tab border stuff was apparently removed in gtk+ 3:
https://bugzilla.gnome.org/show_bug.cgi?id=659777
https://bugzilla.gnome.org/show_bug.cgi?id=612567
https://bugzilla.gnome.org/show_bug.cgi?id=643633

Subsidiary question: is there an easy way (example code would be very 
helpful) to include c-code for temporarily creating a workaround  for 
non-mapped methods at the level of the application? - I try to stick to 
what my friendly distro gives me in its rpm package).

Not easily, as far as I'm aware, but you could probably rig something up
with Inline::C or FFI.  But nowadays, with Glib::Object::Introspection,
if some function is not callable, then there's probably a significant
obstacle, like the presence of varargs or untyped pointers in the
signature, which would not be easily overcome with Inline::C or FFI.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]