:: Re: [DNG] simple-netaid-gtk -- vers…
Inizio della pagina
Delete this message
Reply to this message
Autore: aitor
Data:  
To: dng
Oggetto: Re: [DNG] simple-netaid-gtk -- versions? dhcp? unbound?
Hi,

On 27/4/24 13:18, al3xu5 via Dng wrote:

> In both cases when launching from command line there are some gobject/gtk
> complains (for example see:
> https://bin.disroot.org/?3bd3211e4663e58a#7yJJN49HnX7MratDGKLwn8suNtMS11QYnztUMft1bfA2)
> and then simple-netaid starts...


Well..., let's take it one step at a time.

All the Gtk warnings have been fixed in simple-netaid-gtk-1.0.5. As for the GLib-GObject-CRITICAL warning:

>> Glib::ObjectBase* Glib::wrap_create_new_wrapper_for_interface(GObject*, GType): assertion 'wrap_func_table != nullptr' failed

>> g_object_set_qdata_full: assertion 'quark > 0' failed

I thought it was caused by the use of Glib::wrap() in the lines 278 and 285 of window_main.cpp:

https://git.devuan.org/aitor_czr/simple-netaid-gtk/src/branch/master/ui/window_main.cpp

that provides a C++ object on basis of the underlying C instance. But I was wrong, because the origin of the warning was in the use
of the smart pointers Glib::RefPtr<Gio::File> in main.cpp before initializing Glib, which was initialized later, together with Gtk.

Putting Glib::init() before using of the above pointers fixed these warnings. The rest of the warnings were more or less trivial.

Thanks!

Aitor.