Commit bc32291b authored by Jody Goldberg's avatar Jody Goldberg

missed commit.

parent ebe95def
......@@ -611,6 +611,8 @@ sheet_widget_checkbox_get_ref (SheetWidgetCheckbox const *swc, CellRef *res)
g_return_val_if_fail (!res->col_relative, FALSE);
g_return_val_if_fail (!res->row_relative, FALSE);
if (res->sheet == NULL)
res->sheet = sheet_object_get_sheet (SHEET_OBJECT (swc));
return TRUE;
}
......@@ -924,6 +926,14 @@ sheet_widget_checkbox_read_xml (SheetObject *so,
return FALSE;
}
void
sheet_widget_checkbox_set_link (SheetObject *so, ExprTree *expr)
{
SheetWidgetCheckbox *swc = SHEET_WIDGET_CHECKBOX (so);
g_return_if_fail (swc != NULL);
dependent_set_expr (&swc->dep, expr);
}
SOW_MAKE_TYPE(checkbox, Checkbox,
&sheet_widget_checkbox_user_config,
&sheet_widget_checkbox_set_sheet,
......
......@@ -11,7 +11,10 @@ void sheet_object_widget_handle (SheetObject *so, GtkWidget *widget,
SheetObject *sheet_widget_label_new (Sheet *sheet);
SheetObject *sheet_widget_frame_new (Sheet *sheet);
SheetObject *sheet_widget_button_new (Sheet *sheet);
SheetObject *sheet_widget_checkbox_new (Sheet *sheet);
void sheet_widget_checkbox_set_link (SheetObject *so, ExprTree *expr);
SheetObject *sheet_widget_radio_button_new (Sheet *sheet);
SheetObject *sheet_widget_list_new (Sheet *sheet);
SheetObject *sheet_widget_combo_new (Sheet *sheet);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment