Is there a way to set the default visibility for attributes and methods in the Dia-Editor? I find myself doing a lot of clicking to change the visibility of attributes to private. Setting the default visibility to private is also a more sane default as it forces you to adhere to the idea of encapsulation.
Download the source, edit the file objects/UML/umlattributes.c
, in function UMLAttribute * uml_attribute_new(void)
(around line 73), change the line
attr->visibility = UML_PUBLIC;
to
attr->visibility = UML_PRIVATE;
Optionally, play around with other files and modify to your liking.
Compile the modified source: How to compile Dia