Unfortunately we cannot also do the same for `attr_name` in this function
because it is passed to a Graphviz function that accepts a non-const pointer.
(void)user_data;
char *attr_name;
- char *defValue;
int objKind;
topview *t;
Agraph_t *g;
attr_name =
(char *) gtk_entry_get_text((GtkEntry *)
glade_xml_get_widget(xml, "txtAttr"));
- defValue =
- (char *) gtk_entry_get_text((GtkEntry *)
+ const char *defValue = gtk_entry_get_text((GtkEntry *)
glade_xml_get_widget(xml,
"txtDefValue"));
g = view->g[view->activeGraph];