From: <mar...@us...> - 2009-12-13 13:17:09
|
Revision: 12558 http://gphoto.svn.sourceforge.net/gphoto/?rev=12558&view=rev Author: marcusmeissner Date: 2009-12-13 13:16:58 +0000 (Sun, 13 Dec 2009) Log Message: ----------- mark readonly widgets as readonly Modified Paths: -------------- trunk/libgphoto2/camlibs/ptp2/ChangeLog trunk/libgphoto2/camlibs/ptp2/config.c Modified: trunk/libgphoto2/camlibs/ptp2/ChangeLog =================================================================== --- trunk/libgphoto2/camlibs/ptp2/ChangeLog 2009-12-13 13:10:17 UTC (rev 12557) +++ trunk/libgphoto2/camlibs/ptp2/ChangeLog 2009-12-13 13:16:58 UTC (rev 12558) @@ -1,3 +1,7 @@ +2009-12-13 Marcus Meissner <ma...@je...> + + * config.c: Mark readonly widgets as readonly + 2009-12-06 Laurent Calmes <lc...@us...> * library.c: Fixed Nikon Preview code for Nikon D300, Modified: trunk/libgphoto2/camlibs/ptp2/config.c =================================================================== --- trunk/libgphoto2/camlibs/ptp2/config.c 2009-12-13 13:10:17 UTC (rev 12557) +++ trunk/libgphoto2/camlibs/ptp2/config.c 2009-12-13 13:16:58 UTC (rev 12558) @@ -4383,6 +4383,8 @@ memset(&dpd,0,sizeof(dpd)); ptp_getdevicepropdesc(params,cursub->propid,&dpd); ret = cursub->getfunc (camera, &widget, cursub, &dpd); + if (dpd.GetSet == PTP_DPGS_Get) + gp_widget_set_readonly (widget, 1); ptp_free_devicepropdesc(&dpd); if (nrofsetprops) setprops = realloc(setprops,sizeof(setprops[0])*(nrofsetprops+1)); @@ -4564,7 +4566,10 @@ default: break; } + if (dpd.GetSet == PTP_DPGS_Get) + gp_widget_set_readonly (widget, 1); gp_widget_append (section, widget); + ptp_free_devicepropdesc(&dpd); } return GP_OK; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |