From: Matthew Fernandez Date: Fri, 24 Sep 2021 00:31:19 +0000 (-0700) Subject: smyrna: remove unused object init functions X-Git-Tag: 2.49.2~30^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a260cc8c1f6c16298ea9a7582c6356dd818d3146;p=graphviz smyrna: remove unused object init functions --- diff --git a/cmd/smyrna/gui/gui.c b/cmd/smyrna/gui/gui.c index 26d9aae13..6a5d6fa38 100644 --- a/cmd/smyrna/gui/gui.c +++ b/cmd/smyrna/gui/gui.c @@ -33,46 +33,6 @@ int attr_widgets_modified[MAXIMUM_WIDGET_COUNT]; int widgetcounter; //number of attributes counted dynamically, might be removed in the future attribute attr[MAXIMUM_WIDGET_COUNT]; - - -//loads object properties form and does some fixes -//call this function only ones -void create_object_properties(void) -{ - GladeXML *xml; - GtkWidget *widget; - xml = glade_xml_new(smyrnaGlade, NULL, NULL); - - widget = glade_xml_get_widget(xml, "listPoints"); - gtk_clist_set_column_title((GtkCList *) widget, 0, "Def"); - gtk_clist_set_column_title((GtkCList *) widget, 1, "x"); - gtk_clist_set_column_title((GtkCList *) widget, 2, "y"); - gtk_clist_set_column_title((GtkCList *) widget, 3, "z"); - gtk_clist_column_titles_show((GtkCList *) widget); - gtk_widget_show(widget); - widget = glade_xml_get_widget(xml, "win"); - gtk_widget_show(widget); - - -} - -//call this after create_object_properties() -void object_properties_node_init(void) -{ - -} -void object_properties_edge_init(void) //customize window for Edges -{ -} -void object_properties_cluster_init(void) //customize window for Cluster -{ - -} -void object_properties_graph_init(void) //customize window for Graph , this shows the graph default values -{ - -} - void Color_Widget(char *colorstring, GtkWidget * widget) { GtkRcStyle *rc_style; diff --git a/cmd/smyrna/gui/gui.h b/cmd/smyrna/gui/gui.h index 87fe67da5..a681187dd 100644 --- a/cmd/smyrna/gui/gui.h +++ b/cmd/smyrna/gui/gui.h @@ -39,11 +39,6 @@ extern "C" { extern attribute attr[MAXIMUM_WIDGET_COUNT]; - void create_object_properties(void); //creates general purpose object properties template - void object_properties_node_init(void); //customize window for Nodes - void object_properties_edge_init(void); //customize window for Edges - void object_properties_cluster_init(void); //customize window for Cluster - void object_properties_graph_init(void); //customize window for Graph , this shows the graph default values void graph_properties_init(int newgraph); //initialize little open graph dialog int update_graph_properties(Agraph_t * graph); //updates graph from gui void load_graph_properties(Agraph_t * graph); //load from graph to gui