From: Matthew Fernandez Date: Wed, 7 Sep 2022 03:49:08 +0000 (-0700) Subject: smyrna load_graph_properties: remove unused 'graph' parameter X-Git-Tag: 6.0.1~4^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3189e0ee3a2625fab328981c510e00a933e6980;p=graphviz smyrna load_graph_properties: remove unused 'graph' parameter --- diff --git a/cmd/smyrna/gui/gui.c b/cmd/smyrna/gui/gui.c index 346f0cd67..d4a3968da 100644 --- a/cmd/smyrna/gui/gui.c +++ b/cmd/smyrna/gui/gui.c @@ -31,8 +31,7 @@ void Color_Widget_bg(char *colorstring, GtkWidget * widget) gtk_widget_modify_base(widget, GTK_STATE_NORMAL, &color); } -void load_graph_properties(Agraph_t * graph) -{ +void load_graph_properties(void) { //dlgOpenGraph , GtkDialog gtk_entry_set_text((GtkEntry *) glade_xml_get_widget(xml, "entryGraphFileName"), diff --git a/cmd/smyrna/gui/gui.h b/cmd/smyrna/gui/gui.h index 11fdc1ab9..139144ad5 100644 --- a/cmd/smyrna/gui/gui.h +++ b/cmd/smyrna/gui/gui.h @@ -26,7 +26,7 @@ extern attribute attr[MAXIMUM_WIDGET_COUNT]; - void load_graph_properties(Agraph_t * graph); //load from graph to gui + void load_graph_properties(void); //load from graph to gui void load_attributes(void); //loads attributes from a text file diff --git a/cmd/smyrna/gui/menucallbacks.c b/cmd/smyrna/gui/menucallbacks.c index 614989e27..dcaa64473 100644 --- a/cmd/smyrna/gui/menucallbacks.c +++ b/cmd/smyrna/gui/menucallbacks.c @@ -192,7 +192,7 @@ void mGraphPropertiesSlot(GtkWidget * widget, gpointer user_data) //there has to be an active graph to open the graph prop page if (view->activeGraph > -1) { - load_graph_properties(view->g[view->activeGraph]); //load from graph to gui + load_graph_properties(); //load from graph to gui gtk_dialog_set_response_sensitive((GtkDialog *) glade_xml_get_widget(xml, "dlgOpenGraph"),