Definition at line 334 of file gnc-option-gtk-ui.cpp.
◆ GncGtkCommodityUIItem()
| GncGtkCommodityUIItem::GncGtkCommodityUIItem |
( |
GtkWidget * |
widget | ) |
|
|
inline |
Definition at line 337 of file gnc-option-gtk-ui.cpp.
337 :
class GncOptionGtkUIItem Gtk-specific Interface class for Option Widget
◆ set_option_from_ui_item()
| void GncGtkCommodityUIItem::set_option_from_ui_item |
( |
GncOption & |
option | ) |
|
|
inlineoverridevirtualnoexcept |
Implements GncOptionUIItem.
Definition at line 347 of file gnc-option-gtk-ui.cpp.
348 {
349 auto widget{GNC_GENERAL_SELECT(get_widget())};
350 auto commodity{gnc_general_select_get_selected(widget)};
351 option.set_value<gnc_commodity*>(GNC_COMMODITY(commodity));
352 }
◆ set_ui_item_from_option()
| void GncGtkCommodityUIItem::set_ui_item_from_option |
( |
GncOption & |
option | ) |
|
|
inlineoverridevirtualnoexcept |
Implements GncOptionUIItem.
Definition at line 339 of file gnc-option-gtk-ui.cpp.
340 {
341 auto widget{GNC_GENERAL_SELECT(get_widget())};
342 auto commodity{option.get_value<gnc_commodity*>()};
343
344 if (commodity)
345 gnc_general_select_set_selected(widget, GNC_COMMODITY(commodity));
346 }
The documentation for this class was generated from the following file: