Mercurial > hg > forks > geeqie
changeset 2645:b1d2dd750915
Temp fix #531: Segfault when changing width of Collection window (GTK3)
https://github.com/BestImageViewer/geeqie/issues/531
Temporary fix to stop the crash
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Sat, 28 Oct 2017 11:23:18 +0100 |
parents | 42c4eee1db04 |
children | 37235424378e |
files | src/collect-table.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/collect-table.c Thu Oct 26 10:56:11 2017 +0100 +++ b/src/collect-table.c Sat Oct 28 11:23:18 2017 +0100 @@ -2420,6 +2420,15 @@ ct = cd->ct; gtk_tree_model_get(tree_model, iter, CTABLE_COLUMN_POINTER, &list, -1); + +#if GTK_CHECK_VERSION(3,0,0) + /* FIXME this is a primitive hack to stop a crash. + * When compiled with GTK3, if a Collection window containing + * say, 50 or so, images has its width changed, there is a segfault + * https://github.com/BestImageViewer/geeqie/issues/531 + */ + if (cd->number == COLLECT_TABLE_MAX_COLUMNS) return; +#endif info = g_list_nth_data(list, cd->number); style = gtk_widget_get_style(ct->listview);