--- a/ui/gtk/list.h Sun Jan 05 16:56:05 2025 +0100 +++ b/ui/gtk/list.h Sun Jan 05 17:31:53 2025 +0100 @@ -113,9 +113,11 @@ UiListSelection ui_listview_getselection2(UiList *list); void ui_listview_setselection2(UiList *list, UiListSelection selection); -void ui_columnview_activate(GtkColumnView* self, guint position, gpointer userdata); +void ui_columnview_activate(void *ignore, guint position, gpointer userdata); void ui_listview_selection_changed(GtkSelectionModel* self, guint position, guint n_items, gpointer user_data); +void ui_dropdown_activate(GtkDropDown* self, gpointer userdata); + #endif void* ui_strmodel_getvalue(void *elm, int column); @@ -132,6 +134,9 @@ void ui_combobox_destroy(GtkWidget *w, UiListView *v); void ui_listview_destroy(GtkWidget *w, UiListView *v); +#if GTK_CHECK_VERSION(4, 10, 0) + +#else void ui_listview_activate_event( GtkTreeView *tree_view, GtkTreePath *path, @@ -144,6 +149,7 @@ GtkTreeSelection *selection, UiTreeEventData *event); int ui_tree_path_list_index(GtkTreePath *path); +#endif void ui_listview_add_dnd(UiListView *listview, UiListArgs *args); void ui_listview_enable_drop(UiListView *listview, UiListArgs *args);