#include <lttv/module.h>
#include <lttv/processTrace.h>
#include <lttv/state.h>
+#include <lttv/stats.h>
#include <lttv/menu.h>
#include <lttv/toolbar.h>
/* global variable */
systemView * gSysView;
-LttvTracesetState * gTracesetContext = NULL;
+LttvTracesetStats * gTracesetContext = NULL;
static LttvTraceset * traceset;
/** Array containing instanced objects. */
* This function initializes the GUI.
*/
-typedef struct _WindowCreationData {
- int argc;
- char ** argv;
-} WindowCreationData;
-
static gboolean Window_Creation_Hook(void *hook_data, void *call_data)
{
int i;
GtkWidget *window1;
mainWindow * mw = g_new(mainWindow, 1);
gSysView = g_new(systemView, 1);
- WindowCreationData *Window_Creation_Data = (WindowCreationData*)call_data;
+ WindowCreationData *Window_Creation_Data = (WindowCreationData*)hook_data;
+
+ mw->winCreationData = Window_Creation_Data;
/* Add the object's information to the module's array */
Main_Window_List = g_slist_append(Main_Window_List, mw);
- g_critical("GUI init()");
+ g_critical("GUI Window_Creation_Hook()");
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
mw->CurrentTab = NULL;
mw->Attributes = LTTV_IATTRIBUTE(g_object_new(LTTV_ATTRIBUTE_TYPE, NULL));
if(!gTracesetContext){
- gTracesetContext = g_object_new(LTTV_TRACESET_STATE_TYPE, NULL);
+ gTracesetContext = g_object_new(LTTV_TRACESET_STATS_TYPE, NULL);
//FIXME: lttv_context_fini should be called some where.
lttv_context_init(LTTV_TRACESET_CONTEXT(gTracesetContext), traceset);
}
LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
+ g_critical("GUI init()");
+
lttv_option_add("trace", 't',
"add a trace to the trace set to analyse",
"pathname of the directory containing the trace",