Mercurial > hg > forks > geeqie
changeset 2475:53faa92f790f
Bug fix: Re-size images in GTK3
When compiled with GTK3 if an image is opened with "View in new window"
the minimum window size is determined by the image size and screen size
etc. If a file selection is opened, the minimum window size is set by
the first image displayed.
This feature is determined by a call to gtk_widget_set_size_request().
When compiled with GTK2, the call to gtk_widget_set_size_request() seems
to be ignored, and the window can be resized at will.
The GTK2 style is much more practical, so the call to
gtk_widget_set_size_request() is ignored in GTK3.
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Thu, 04 May 2017 19:06:48 +0100 |
parents | f591509cb3d3 |
children | 095c1ada9ddf |
files | src/img-view.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/img-view.c Wed May 03 11:30:12 2017 +0100 +++ b/src/img-view.c Thu May 04 19:06:48 2017 +0100 @@ -906,7 +906,9 @@ req_size.height = h; gtk_widget_size_allocate(GTK_WIDGET(vw->window), &req_size); +#if !GTK_CHECK_VERSION(3,0,0) gtk_widget_set_size_request(vw->imd->pr, w, h); +#endif gtk_widget_show(vw->window);