The Gnome Chemistry Utils  0.14.0
Functions
testgcrcrystalviewer.c File Reference
#include <gcr/gcrcrystalviewer.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 testgcrcrystalviewer.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 testgcrcrystalviewer.c.

References gcr_crystal_viewer_new(), and gcu_element_load_databases().