]> granicus.if.org Git - graphviz/commitdiff
smyrna load_settings_from_graph: remove unused 'g' parameter
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 22 Jul 2022 01:08:04 +0000 (18:08 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 27 Jul 2022 14:27:00 +0000 (07:27 -0700)
cmd/smyrna/gui/topviewsettings.c
cmd/smyrna/gui/topviewsettings.h
cmd/smyrna/viewport.c

index 5d2b9e3b8fbb82c683dee3bfdf3201cd4b9e10de..f370086c652470183fbd37aa5c7d2970bffd27e7 100644 (file)
@@ -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 *)
index c62a251b5b66349c22eecbeae18db63cb82bcb8a..d2d8b14ca2c867be1e4760f4c1e756b717b8333a 100644 (file)
@@ -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);
index 687b49a1762ea55ce979031b045da9fef11e0c0b..3bf1229556784c572fef29a269e3376503c69005 100644 (file)
@@ -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);