Mercurial > dwindows
comparison gtk3/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 | 90fdfc8aa16d |
children | 58ed65820baf |
comparison
equal
deleted
inserted
replaced
1565:007ed833ac79 | 1566:035bc006afbe |
---|---|
8346 | 8346 |
8347 if(widget) | 8347 if(widget) |
8348 { | 8348 { |
8349 if(g_object_get_data(G_OBJECT(widget), "_dw_tree_type") == GINT_TO_POINTER(_DW_TREE_TYPE_TREE)) | 8349 if(g_object_get_data(G_OBJECT(widget), "_dw_tree_type") == GINT_TO_POINTER(_DW_TREE_TYPE_TREE)) |
8350 { | 8350 { |
8351 *thiswidth = _DW_SCROLLED_MAX_WIDTH; | 8351 /* Set to half for tree */ |
8352 *thisheight = _DW_SCROLLED_MAX_HEIGHT; | 8352 *thiswidth = (int)((_DW_SCROLLED_MAX_WIDTH + _DW_SCROLLED_MIN_WIDTH)/2); |
8353 *thisheight = (int)((_DW_SCROLLED_MAX_HEIGHT + _DW_SCROLLED_MIN_HEIGHT)/2); | |
8353 } | 8354 } |
8354 else if(GTK_IS_TEXT_VIEW(widget)) | 8355 else if(GTK_IS_TEXT_VIEW(widget)) |
8355 { | 8356 { |
8356 unsigned long bytes; | 8357 unsigned long bytes; |
8357 int height, width; | 8358 int height, width; |