Can't find the expression function while ui and code files not in the same folder
the demo project: GtkColumnViewDemo, tag 1.1 builds and work fine, the main branch could build and execute, it will throw errors.
Steps to reproduce
- define UI file
<object class="GtkColumnViewColumn" id="column_name">
<property name="title">Name</property>
<property name="resizable">1</property>
<property name="expand">TRUE</property>
<property name="header-menu">header_menu</property>
<property name="factory">
<object class="GtkSignalListItemFactory">
<signal name="setup" handler="column_name_setup_handler" />
<signal name="bind" handler="column_name_bind_handler" />
</object>
</property>
<property name="sorter">
<object class="GtkStringSorter" id="sorter_name">
<property name="expression">
<closure type="gchararray" function="get_file_name">
</closure>
</property>
</object>
</property>
</object>
- create code file with template
- Compile successfully, but throw error:
Gtk-CRITICAL **: 10:22:02.508: Error building template class 'GtkColumnViewDemoWindow' for an instance of type 'GtkColumnViewDemoWindow': No function named get_file_name.
Current behavior
Can't find the closure function
Expected outcome
- find the closure function correctly.
- support binding class methods like signal
Version information
GTK 4.5
Additional information
it work fine while the UI file stay with the code file in the same folder(same as gresource.xml)
Edited by TAO ZUHONG