From: erg Date: Wed, 19 Mar 2008 21:43:59 +0000 (+0000) Subject: Clean up smyrna files: X-Git-Tag: LAST_LIBGRAPH~32^2~4458 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91bbb7ce560f5915715b750baa858501f505d988;p=graphviz Clean up smyrna files: remove unnecessary globals modify libraries not to rely on code in cmd/smyrna remove static declarations from .h files remove unnecessary libraries mark unused code and clean up warnings --- diff --git a/cmd/smyrna/gui/topviewsettings.c b/cmd/smyrna/gui/topviewsettings.c index 5dec9b08d..d55e5e383 100644 --- a/cmd/smyrna/gui/topviewsettings.c +++ b/cmd/smyrna/gui/topviewsettings.c @@ -1,30 +1,48 @@ +/* vim:set shiftwidth=4 ts=8: */ + +/********************************************************** +* This software is part of the graphviz package * +* http://www.graphviz.org/ * +* * +* Copyright (c) 1994-2004 AT&T Corp. * +* and is licensed under the * +* Common Public License, Version 1.0 * +* by AT&T Corp. * +* * +* Information and Software Systems Research * +* AT&T Research, Florham Park NJ * +**********************************************************/ + #include "topviewsettings.h" #include "gui.h" -void on_settingsOKBtn_clicked (GtkWidget *widget,gpointer user_data) +void on_settingsOKBtn_clicked(GtkWidget * widget, gpointer user_data) { } -void on_settingsCancelBtn_clicked (GtkWidget *widget,gpointer user_data) + +void on_settingsCancelBtn_clicked(GtkWidget * widget, gpointer user_data) { } -int load_settings_from_graph(Agraph_t *g) +int load_settings_from_graph(Agraph_t * g) { - return 1; + return 1; } -int update_graph_from_settings(Agraph_t *g) + +int update_graph_from_settings(Agraph_t * g) { - return 1; + return 1; } int show_settings_form() { - gtk_widget_hide(glade_xml_get_widget(xml, "dlgSettings")); - gtk_widget_show(glade_xml_get_widget(xml, "dlgSettings")); - gtk_window_set_keep_above ((GtkWindow*)glade_xml_get_widget(xml, "dlgSettings"),1); + gtk_widget_hide(glade_xml_get_widget(xml, "dlgSettings")); + gtk_widget_show(glade_xml_get_widget(xml, "dlgSettings")); + gtk_window_set_keep_above((GtkWindow *) + glade_xml_get_widget(xml, "dlgSettings"), 1); }