From: arif Date: Tue, 26 Feb 2008 16:43:51 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: LAST_LIBGRAPH~32^2~4696 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d647523e1c28afa306f38a113cdcb232781cd792;p=graphviz *** empty log message *** --- diff --git a/lib/gui/gui.c b/lib/gui/gui.c index 343eca59b..edc683cfa 100755 --- a/lib/gui/gui.c +++ b/lib/gui/gui.c @@ -26,6 +26,7 @@ #include #include #include +#include "viewport.h" static char guibuffer[255]; //general purpose buffer @@ -62,7 +63,7 @@ void create_object_properties() char* data4="TEST4"; GladeXML *xml; GtkWidget *widget; - xml = glade_xml_new(SMYRNA_GLADE, NULL, NULL); + xml = glade_xml_new(GTKTOPVIEW_GLADE, NULL, NULL); widget = glade_xml_get_widget(xml, "listPoints"); gtk_clist_set_column_title (widget,0,"Def"); @@ -103,9 +104,8 @@ void graph_properties_init(int newgraph) //initialize little open graph dialog gint result=0; - xml = glade_xml_new(SMYRNA_GLADE, NULL, NULL); + xml = glade_xml_new(GTKTOPVIEW_GLADE, NULL, NULL); gladewidget = glade_xml_get_widget(xml, "entryGraphFileName"); - globalString=gtk_entry_get_text(gladewidget); //signals //OK @@ -197,11 +197,11 @@ int update_graph_properties(Agraph_t* graph) //updates graph from gui int respond=0; int id=0; //check the graph name should not be duplicated graph names - for (id=0;id < view.graphCount ; id ++) + for (id=0;id < view->graphCount ; id ++) { - if (graph != view.g[id]) + if (graph != view->g[id]) { - if(strcasecmp (gtk_entry_get_text(glade_xml_get_widget(xml, "entryGraphName")),((custom_graph_data*)AGDATA(view.g[id]))->GraphName ) == 0) + if(strcasecmp (gtk_entry_get_text(glade_xml_get_widget(xml, "entryGraphName")),((custom_graph_data*)AGDATA(view->g[id]))->GraphName ) == 0) { Dlg=gtk_message_dialog_new (NULL, @@ -545,7 +545,7 @@ void load_attributes() int ind=0; int attrcount=0; //loads attributes from a text file - file = fopen (SMYRNA_ATTRS, "r"); + file = fopen (GTKTOPVIEW_ATTRS, "r"); if ( file != NULL ) { while ( fgets ( line, sizeof line, file ) != NULL )