Sun, 21 Sep 2025 21:20:58 +0200
remove unnecessary PangoAttrList from UiListView (GTK)
| ui/gtk/list.c | file | annotate | diff | comparison | revisions | |
| ui/gtk/list.h | file | annotate | diff | comparison | revisions |
--- a/ui/gtk/list.c Thu Sep 18 21:04:49 2025 +0200 +++ b/ui/gtk/list.c Sun Sep 21 21:20:58 2025 +0200 @@ -95,9 +95,6 @@ tableview->current_row = -1; tableview->getstyle = args->getstyle; tableview->getstyledata = args->getstyledata; -#if GTK_CHECK_VERSION(4, 10, 0) - tableview->default_attributes = pango_attr_list_new(); -#endif if(args->getvalue2) { tableview->getvalue = args->getvalue2; @@ -1908,7 +1905,6 @@ } #if GTK_CHECK_VERSION(4, 10, 0) free(v->columns); - pango_attr_list_unref(v->default_attributes); pango_attr_list_unref(v->current_row_attributes); cxMapFree(v->bound_rows); #endif
--- a/ui/gtk/list.h Thu Sep 18 21:04:49 2025 +0200 +++ b/ui/gtk/list.h Sun Sep 21 21:20:58 2025 +0200 @@ -67,7 +67,6 @@ GtkSelectionModel *selectionmodel; UiColData *columns; int numcolumns; - PangoAttrList *default_attributes; // TODO: remove PangoAttrList *current_row_attributes; #else int style_offset;