Mercurial > dwindows
comparison gtk3/dw.c @ 1539:b7136c130a66
Default scrolled items to 500x200 on GTK3.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 12 Jan 2012 18:50:17 +0000 |
parents | 5facb5380944 |
children | 6edf3fce77f2 |
comparison
equal
deleted
inserted
replaced
1538:333f07bdbf7c | 1539:b7136c130a66 |
---|---|
8469 /* Set the requested size of the widget */ | 8469 /* Set the requested size of the widget */ |
8470 if(GTK_IS_SCROLLED_WINDOW(item)) | 8470 if(GTK_IS_SCROLLED_WINDOW(item)) |
8471 { | 8471 { |
8472 if(width > 0) | 8472 if(width > 0) |
8473 gtk_scrolled_window_set_min_content_width(GTK_SCROLLED_WINDOW(item), width); | 8473 gtk_scrolled_window_set_min_content_width(GTK_SCROLLED_WINDOW(item), width); |
8474 else if(!hsize) | |
8475 gtk_scrolled_window_set_min_content_width(GTK_SCROLLED_WINDOW(item), 500); | |
8474 if(height > 0) | 8476 if(height > 0) |
8475 gtk_scrolled_window_set_min_content_height(GTK_SCROLLED_WINDOW(item), height); | 8477 gtk_scrolled_window_set_min_content_height(GTK_SCROLLED_WINDOW(item), height); |
8478 else if(!vsize) | |
8479 gtk_scrolled_window_set_min_content_height(GTK_SCROLLED_WINDOW(item), 200); | |
8476 } | 8480 } |
8477 else | 8481 else |
8478 { | 8482 { |
8479 if(width == -1 && (GTK_IS_COMBO_BOX(item) || GTK_IS_ENTRY(item))) | 8483 if(width == -1 && (GTK_IS_COMBO_BOX(item) || GTK_IS_ENTRY(item))) |
8480 gtk_widget_set_size_request(item, 150, height); | 8484 gtk_widget_set_size_request(item, 150, height); |