Fix #857: Mouse locked in column adjusting mode in Exif window
authorColin Clark <colin.clark@cclark.uk>
Fri, 29 Jan 2021 10:21:30 +0000 (10:21 +0000)
committerColin Clark <colin.clark@cclark.uk>
Fri, 29 Jan 2021 10:21:30 +0000 (10:21 +0000)
https://github.com/BestImageViewer/geeqie/issues/857

The problem occurs only when compiled with GTK2. The reason is unknown.
Because the problem can cause Xorg to crash, it is best just to inhibit
the column adjust function in GTK2.

src/advanced_exif.c

index 9897e8d..c895dc5 100644 (file)
@@ -249,7 +249,9 @@ static void advanced_exif_add_column(GtkWidget *listview, const gchar *title, gi
                gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
                }
 
+#if GTK_CHECK_VERSION(3,0,0)
        gtk_tree_view_column_set_resizable(column, TRUE);
+#endif
        gtk_tree_view_column_set_sort_column_id(column, n);
 
        renderer = gtk_cell_renderer_text_new();