#include <glade/glade.h>
#include <gdk/gdkkeysyms.h>
#include <gdk/gdk.h>
+#include "viewport.h"
static char guibuffer[255]; //general purpose buffer
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");
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
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,
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 )