> Date: Thu, 21 Jan 2010 22:57:23 +0100
> From: [email protected]
> To: [email protected]
> Subject: [UFRaw-Devel] UFRaw minimum window height too large
>
> Hi,
>
> I just noticed another problem with the new Despeckling GUI parts,
> since it's addition, UFRaw is too large to properly display with a
> minimum height window on my 1280x800 resolution laptop. As you know,
> this is a very common resolution.
>
> I just did some measurements, and it seems with 800px height, with
> defaults settings GNOME will leave about 750px available for
> applications.
>
Please try this patch on various resolutions and let me know if it solves the
problem. I have tested it on Ubuntu systems with these resolutions with better
results than the current cvs code:
1600x900
1280x800
1024x768
1024x600
Regards,
Niels Kristian
_________________________________________________________________
Få 25 GB lagerplads på nettet!
http://www.microsoft.com/danmark/windows/windowslive/products/skydrive.aspx--- ufraw.cvs/ufraw_preview.c 2010-01-20 23:18:14.000000000 +0100
+++ ufraw/ufraw_preview.c 2010-01-22 09:34:17.000000000 +0100
@@ -5495,22 +5495,9 @@
// that will cause the scrollbars to appear.
preview_width = (uf->rotatedWidth+1) / scale;
preview_height = (uf->rotatedHeight+1) / scale;
- if (screen.height<=600) {
- curveeditorHeight = 192;
- data->HisMinHeight = 0;
- } else if (screen.height<700) {
- curveeditorHeight = 192;
- data->HisMinHeight = 48;
- } else if (screen.height<800) {
- curveeditorHeight = 192;
- data->HisMinHeight = 64;
- } else if (screen.height<900) {
- curveeditorHeight = 192;
- data->HisMinHeight = 80;
- } else {
- curveeditorHeight = 256;
- data->HisMinHeight = 96;
- }
+ curveeditorHeight = screen.height<900 ? 192 : 256;
+ data->HisMinHeight = screen.height<900 ? 16*(screen.height-600)/50 : 96;
+ if (data->HisMinHeight<0) data->HisMinHeight = 0;
previewHBox = GTK_BOX(gtk_hbox_new(FALSE, 0));
gtk_container_add(GTK_CONTAINER(previewWindow), GTK_WIDGET(previewHBox));
previewVBox = gtk_vbox_new(FALSE, 0);
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
ufraw-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-devel