# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1322817937 0 # Node ID 28210f7941c7d88a013f7e9bf3414e36364f4d1a # Parent 246aadf8fbd4c8e14615e45e49c4ba1cf06b8fac Safety checks for -1 parameter to dw_box_pack*() for GTK3. Updated the readme with dw_box_pack*() changes. diff -r 246aadf8fbd4 -r 28210f7941c7 gtk3/dw.c --- 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); diff -r 246aadf8fbd4 -r 28210f7941c7 readme --- 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.