ui/gtk/list.c

changeset 772
fa8afa19b8b6
parent 749
0f052f6f532c
child 776
867ff911492d
equal deleted inserted replaced
771:155f8722b927 772:fa8afa19b8b6
93 tableview->selection.count = 0; 93 tableview->selection.count = 0;
94 tableview->selection.rows = NULL; 94 tableview->selection.rows = NULL;
95 tableview->current_row = -1; 95 tableview->current_row = -1;
96 tableview->getstyle = args->getstyle; 96 tableview->getstyle = args->getstyle;
97 tableview->getstyledata = args->getstyledata; 97 tableview->getstyledata = args->getstyledata;
98 #if GTK_CHECK_VERSION(4, 10, 0)
99 tableview->default_attributes = pango_attr_list_new();
100 #endif
101 98
102 if(args->getvalue2) { 99 if(args->getvalue2) {
103 tableview->getvalue = args->getvalue2; 100 tableview->getvalue = args->getvalue2;
104 tableview->getvaluedata = args->getvalue2data; 101 tableview->getvaluedata = args->getvalue2data;
105 } else if(args->getvalue) { 102 } else if(args->getvalue) {
1906 } 1903 }
1907 free(v->elements); 1904 free(v->elements);
1908 } 1905 }
1909 #if GTK_CHECK_VERSION(4, 10, 0) 1906 #if GTK_CHECK_VERSION(4, 10, 0)
1910 free(v->columns); 1907 free(v->columns);
1911 pango_attr_list_unref(v->default_attributes);
1912 pango_attr_list_unref(v->current_row_attributes); 1908 pango_attr_list_unref(v->current_row_attributes);
1913 cxMapFree(v->bound_rows); 1909 cxMapFree(v->bound_rows);
1914 #endif 1910 #endif
1915 free(v->selection.rows); 1911 free(v->selection.rows);
1916 free(v); 1912 free(v);

mercurial