Mercurial > dwindows
comparison gtk/dw.c @ 1566:035bc006afbe
Experimental change... halfway between min and max for tree controls.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 20 Jan 2012 18:47:10 +0000 |
parents | 9a8aa230a538 |
children | 5371dbfc2262 |
comparison
equal
deleted
inserted
replaced
1565:007ed833ac79 | 1566:035bc006afbe |
---|---|
10085 } | 10085 } |
10086 } | 10086 } |
10087 } | 10087 } |
10088 else | 10088 else |
10089 { | 10089 { |
10090 /* Set to max for others */ | 10090 /* Set to half for others */ |
10091 *thiswidth = _DW_SCROLLED_MAX_WIDTH; | 10091 *thiswidth = (int)((_DW_SCROLLED_MAX_WIDTH + _DW_SCROLLED_MIN_WIDTH)/2); |
10092 *thisheight = _DW_SCROLLED_MAX_HEIGHT; | 10092 *thisheight = (int)((_DW_SCROLLED_MAX_HEIGHT + _DW_SCROLLED_MIN_HEIGHT)/2); |
10093 } | 10093 } |
10094 if(*thiswidth < _DW_SCROLLED_MIN_WIDTH) | 10094 if(*thiswidth < _DW_SCROLLED_MIN_WIDTH) |
10095 *thiswidth = _DW_SCROLLED_MIN_WIDTH; | 10095 *thiswidth = _DW_SCROLLED_MIN_WIDTH; |
10096 if(*thiswidth > _DW_SCROLLED_MAX_WIDTH) | 10096 if(*thiswidth > _DW_SCROLLED_MAX_WIDTH) |
10097 *thiswidth = _DW_SCROLLED_MAX_WIDTH; | 10097 *thiswidth = _DW_SCROLLED_MAX_WIDTH; |