]> granicus.if.org Git - graphviz/commitdiff
Clean up smyrna files:
authorerg <devnull@localhost>
Wed, 19 Mar 2008 21:43:59 +0000 (21:43 +0000)
committererg <devnull@localhost>
Wed, 19 Mar 2008 21:43:59 +0000 (21:43 +0000)
  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

cmd/smyrna/gui/topviewsettings.c

index 5dec9b08d2af0a50e844d2b890b6029fc68abcaa..d55e5e383a14bda8feb29d8b76d17d5d8c69dcd9 100644 (file)
@@ -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);
 }