comparison src/img-view.c @ 2868:4fc59d8e53c0

Fix #648: Correctly size image windows opened from collections https://github.com/BestImageViewer/geeqie/pull/648
author Dave Lambert <>
date Mon, 26 Nov 2018 17:53:22 +0000
parents b20a96b979a3
children 6a16ed6742be 627bd720b0a1
comparison
equal deleted inserted replaced
2867:52edc8a3990c 2868:4fc59d8e53c0
869 g_signal_connect(G_OBJECT(vw->window), "key_press_event", 869 g_signal_connect(G_OBJECT(vw->window), "key_press_event",
870 G_CALLBACK(view_window_key_press_cb), vw); 870 G_CALLBACK(view_window_key_press_cb), vw);
871 if (cd && info) 871 if (cd && info)
872 { 872 {
873 image_change_from_collection(vw->imd, cd, info, image_zoom_get_default(NULL)); 873 image_change_from_collection(vw->imd, cd, info, image_zoom_get_default(NULL));
874 /* Grab the fd so we can correctly size the window in
875 the call to image_load_dimensions() below. */
876 fd = info->fd;
874 if (options->image.enable_read_ahead) 877 if (options->image.enable_read_ahead)
875 { 878 {
876 CollectInfo * r_info = collection_next_by_info(cd, info); 879 CollectInfo * r_info = collection_next_by_info(cd, info);
877 if (!r_info) r_info = collection_prev_by_info(cd, info); 880 if (!r_info) r_info = collection_prev_by_info(cd, info);
878 if (r_info) image_prebuffer_set(vw->imd, r_info->fd); 881 if (r_info) image_prebuffer_set(vw->imd, r_info->fd);