HomeeNTiDi

demo: ensure AdgGtkLayout is registered

Authored by ntd on Tue, Apr 20, 11:09 PM.

Description

demo: ensure AdgGtkLayout is registered

When a GtkBuilder file references a custom widget, you can potentially
get an "Invalid object type" error if that object has never been
registered before:

https://stackoverflow.com/questions/44230814/invalid-object-type-when-using-a-custom-widget-in-gtk-builder-ui-file

Use g_type_ensure to avoid that error altogether.

Details

Committed
ntdTue, Apr 20, 11:11 PM
Parents
rADGd33003ddaae9: adg: fix path in icons test
Branches
Unknown
Tags
Unknown