Mercurial > dwindows
comparison gtk/dw.c @ 1462:677ca99a8700
Fix dw_window_get_preferred_size() on GTK2... was using the wrong
function to get the requisition.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 15 Dec 2011 23:51:39 +0000 |
parents | dbe16031ffb4 |
children | 77f530f95826 |
comparison
equal
deleted
inserted
replaced
1461:09323eb9dc32 | 1462:677ca99a8700 |
---|---|
10148 { | 10148 { |
10149 GtkRequisition req; | 10149 GtkRequisition req; |
10150 int _locked_by_me = FALSE; | 10150 int _locked_by_me = FALSE; |
10151 | 10151 |
10152 DW_MUTEX_LOCK; | 10152 DW_MUTEX_LOCK; |
10153 gtk_widget_get_requisition(handle, &req); | 10153 gtk_widget_size_request(handle, &req); |
10154 if(width) | 10154 if(width) |
10155 *width = req.width; | 10155 *width = req.width; |
10156 if(height) | 10156 if(height) |
10157 *height = req.height; | 10157 *height = req.height; |
10158 DW_MUTEX_UNLOCK; | 10158 DW_MUTEX_UNLOCK; |