gtdc/gtdc.c

34 lines
981 B
C
Raw Normal View History

2008-03-15 23:18:09 +01:00
#include <stdio.h>
#include <gtk/gtk.h>
2008-03-18 19:30:21 +01:00
#include "gui_variable_tab.h"
2008-03-17 18:36:41 +01:00
2008-03-18 19:30:21 +01:00
gint gui_ctrltab_init(GtkNotebook *notebook);
gint gui_graphtab_init(GtkNotebook *notebook);
2008-03-15 23:18:09 +01:00
int main(int argc, char *argv[])
{
gtk_init (&argc, &argv);
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(window), " gTDC v0.1 ");
gtk_window_set_default_size(GTK_WINDOW(window), 800, 600);
gtk_container_set_border_width(GTK_CONTAINER(window), 10);
g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), NULL);
g_signal_connect(G_OBJECT(window), "delete_event", G_CALLBACK(gtk_main_quit), NULL);
GtkWidget *notebook = gtk_notebook_new();
gtk_notebook_set_tab_pos(GTK_NOTEBOOK(notebook), GTK_POS_TOP);
gtk_container_add(GTK_CONTAINER(window), notebook);
2008-03-18 19:30:21 +01:00
gui_ctrltab_init(GTK_NOTEBOOK(notebook));
gui_vartab_init(GTK_NOTEBOOK(notebook));
gui_graphtab_init(GTK_NOTEBOOK(notebook));
2008-03-15 23:18:09 +01:00
gtk_widget_show_all(window);
gtk_main();
return 0;
}