Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

int gp_widget_set_readonly ( CameraWidget widget,
int  readonly 
)

Tells that the widget is readonly.

Parameters:
widget a CameraWidget
changed a boolean whether we are readonly or not
Returns:
a gphoto2 error code
Sets the readonly of the CameraWidget depending on the changed parameter.

Only useful when called from the camera driver.

Definition at line 315 of file gphoto2-widget.c.

References CHECK_NULL, GP_OK, and _CameraWidget::readonly.

{
      CHECK_NULL (widget);

      widget->readonly = readonly;
      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index