* Initial checkin.
[scdataviz] / scdataviz.c
1 /*
2 ** scdataviz.c
3 ** 
4 ** Made by (Johnny Q. Hacker)
5 ** Login   <solarion@johnathan>
6 ** 
7 ** Holds the SC graphing widget.
8
9 Copyright (C) 2008 Joseph Pingenot
10
11 This program is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program.  If not, see <http://www.gnu.org/licenses/>.
23
24 ** Started on  Thu Jul 17 11:03:27 2008 Johnny Q. Hacker
25 ** Last update Sun May 12 01:17:25 2002 Speed Blue
26 */
27
28 #include <gtk/gtk.h>
29 #include <graphwidget.h>
30
31 int main(int   argc, char *argv[]) 
32 {
33     GtkWidget *window;
34     GtkWidget *button;
35     GtkWidget *graph;
36     
37     gtk_init (&argc, &argv);
38     
39     window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
40     graph = graph_widget_new();
41     
42
43     //Connect signals
44     g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), NULL);
45
46     gtk_container_add(GTK_CONTAINER(window), graph);
47     
48     gtk_widget_show_all  (window);
49     
50     gtk_main ();
51     
52     return 0;
53 }