From 011e2f5035272b493ad5262d273771db28ae6e84 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 21 Jul 2022 18:08:04 -0700 Subject: [PATCH] smyrna load_settings_from_graph: remove unused 'g' parameter --- cmd/smyrna/gui/topviewsettings.c | 4 ++-- cmd/smyrna/gui/topviewsettings.h | 2 +- cmd/smyrna/viewport.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/smyrna/gui/topviewsettings.c b/cmd/smyrna/gui/topviewsettings.c index 5d2b9e3b8..f370086c6 100644 --- a/cmd/smyrna/gui/topviewsettings.c +++ b/cmd/smyrna/gui/topviewsettings.c @@ -287,7 +287,7 @@ static int get_combobox_widget_to_attribute(char *attribute, } -int load_settings_from_graph(Agraph_t * g) +int load_settings_from_graph(void) { Agsym_t* sym=NULL; while ((sym = agnxtattr(view->systemGraphs.attrs_widgets,AGRAPH, sym))) { @@ -334,7 +334,7 @@ int show_settings_form() { if (view->activeGraph >= 0) { - load_settings_from_graph(view->g[view->activeGraph]); + load_settings_from_graph(); gtk_widget_hide(glade_xml_get_widget(xml, "dlgSettings")); gtk_widget_show(glade_xml_get_widget(xml, "dlgSettings")); gtk_window_set_keep_above((GtkWindow *) diff --git a/cmd/smyrna/gui/topviewsettings.h b/cmd/smyrna/gui/topviewsettings.h index c62a251b5..d2d8b14ca 100644 --- a/cmd/smyrna/gui/topviewsettings.h +++ b/cmd/smyrna/gui/topviewsettings.h @@ -21,6 +21,6 @@ _BB void color_change_request(GtkWidget * widget, gpointer user_data); _BB void size_change_request(GtkWidget * widget, gpointer user_data); _BB void on_dlgSettings_close (GtkWidget * widget, gpointer user_data); - extern int load_settings_from_graph(Agraph_t * g); + extern int load_settings_from_graph(void); extern int update_graph_from_settings(Agraph_t * g); extern int show_settings_form(void); diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 687b49a17..3bf122955 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -497,7 +497,7 @@ void refreshViewport(void) view->refresh.nodesize=1; view->refresh.pos=1; view->refresh.selection=1; - load_settings_from_graph(graph); + load_settings_from_graph(); if(view->guiMode!=GUI_FULLSCREEN) update_graph_from_settings(graph); -- 2.40.0