Mercurial > dwindows
changeset 1413:28210f7941c7
Safety checks for -1 parameter to dw_box_pack*() for GTK3.
Updated the readme with dw_box_pack*() changes.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 02 Dec 2011 09:25:37 +0000 |
parents | 246aadf8fbd4 |
children | 38c4484f5b90 |
files | gtk3/dw.c readme |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk3/dw.c Fri Dec 02 08:52:21 2011 +0000 +++ b/gtk3/dw.c Fri Dec 02 09:25:37 2011 +0000 @@ -8374,8 +8374,10 @@ /* Set the requested size of the widget */ if(GTK_IS_SCROLLED_WINDOW(item)) { - gtk_scrolled_window_set_min_content_width(GTK_SCROLLED_WINDOW(item), width); - gtk_scrolled_window_set_min_content_height(GTK_SCROLLED_WINDOW(item), height); + if(width > 0) + gtk_scrolled_window_set_min_content_width(GTK_SCROLLED_WINDOW(item), width); + if(height > 0) + gtk_scrolled_window_set_min_content_height(GTK_SCROLLED_WINDOW(item), height); } else gtk_widget_set_size_request(item, width, height);
--- a/readme Fri Dec 02 08:52:21 2011 +0000 +++ b/readme Fri Dec 02 09:25:37 2011 +0000 @@ -35,8 +35,10 @@ Added dw_menu_delete_item() for removing menu items. Now you can use dw_window_destroy() on menu items handles also. Added dw_app_dir() which attempts to locate private application data - for the current platform. + for the current platform. Added dw_window_set_tooltip() for adding tooltips to most widgets. +Added support for -1 size parameter to the dw_box_pack*() functions to + automatically figure out a suggested size for many controls. Fixed bubble help not being displayed on Windows. Fixed menu bar items remaining highlighted on Mac.