testgcucrystalviewer.c File Reference

#include <gcu/gcucrystalviewer.h>
#include <gcu/chemistry.h>
#include <glib.h>
#include <gtk/gtk.h>
#include <stdio.h>
#include <libxml/parser.h>

Go to the source code of this file.

Functions

int main (int argc, char *argv[])


Detailed Description

A simple sample of the use of the GcuCrystalViewer widget.

Definition in file testgcucrystalviewer.c.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

main function of the test program. It fulfills the following operations, in order:

  • initialize Gtk;
  • loads atomic radii.
  • build the widow embedding the sample GcuCrystalViewer.
  • build the GcuCrystalViewer with either a file from the command line or the default nickel.gcrystal provided with the sources.
  • shows everything and enter gtk_main().

Definition at line 43 of file testgcucrystalviewer.c.

References gcu_crystal_viewer_new(), and gcu_element_load_databases().


Generated on Fri Sep 24 15:58:42 2010 for The Gnome Chemistry Utils by  doxygen 1.5.9