| cheese Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
CheeseWidget;
GtkWidget * cheese_widget_new (void);
void cheese_widget_get_error (CheeseWidget *widget,
GError **error);
enum CheeseWidgetState;
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkNotebook +----CheeseWidget
GtkWidget * cheese_widget_new (void);
Returns a new CheeseWidget widget.
Returns : |
a CheeseWidget widget. |
void cheese_widget_get_error (CheeseWidget *widget,
GError **error);
Listen for notify::state signals and call this when the current state is CHEESE_WIDGET_STATE_ERROR.
The returned GError will contain more details on what went wrong.
|
a CheeseWidget |
|
return location for the error |
"state" property"state" CheeseWidgetState : Read
Current state of the widget.
Connect to notify::state signal to get notified about state changes. Useful to update other widgets sensitiveness when the camera is ready or to handle errors if camera setup fails.
Default value: CHEESE_WIDGET_STATE_NONE