/** * @brief Sets whether or not the action-area's hbox is homogeneous, i.e whether or not all the widgets of the * action-area should have the same size * @param dialog a dialog * @param homogeneous ETK_TRUE to make the action-area's hbox homogeneous, ETK_FALSE otherwise */ void etk_dialog_action_area_homogeneous_set(Etk_Dialog *dialog, Etk_Bool homogeneous) { if (!dialog) return; etk_box_homogeneous_set(ETK_BOX(dialog->action_area_hbox), homogeneous); etk_object_notify(ETK_OBJECT(dialog), "action-area-homogeneous"); }
/* Sets the property whose id is "property_id" to the value "value" */ static void _etk_box_property_set(Etk_Object *object, int property_id, Etk_Property_Value *value) { Etk_Box *box; if (!(box = ETK_BOX(object)) || !value) return; switch (property_id) { case ETK_BOX_SPACING_PROPERTY: etk_box_spacing_set(box, etk_property_value_int_get(value)); break; case ETK_BOX_HOMOGENEOUS_PROPERTY: etk_box_homogeneous_set(box, etk_property_value_bool_get(value)); break; default: break; } }
void EtkBox::setHomogeneous (bool homogeneous) { etk_box_homogeneous_set(ETK_BOX (_o), homogeneous); }