ProcessList *Process_List;
Drawing_t *Drawing;
- GtkWidget *HBox_V;
+ //GtkWidget *HBox_V;
GtkWidget *Inside_HBox_V;
GtkAdjustment *VAdjust_C ;
0.0, /* Page inc. */
0.0)); /* page size */
-
Control_Flow_Data->Scrolled_Window_VC =
gtk_scrolled_window_new (NULL,
Control_Flow_Data->VAdjust_C);
//Control_Flow_Data->Trace_Statistics = get_trace_statistics(Trace);
- gtk_widget_show(Control_Flow_Data->Drawing_Area_V);
- gtk_widget_show(Process_List_Widget);
+ //gtk_widget_show(Control_Flow_Data->Drawing_Area_V);
+ //gtk_widget_show(Process_List_Widget);
gtk_widget_show(Control_Flow_Data->Inside_HBox_V);
gtk_widget_show(Control_Flow_Data->Scrolled_Window_VC);
-
+
g_object_set_data_full(
- G_OBJECT(Control_Flow_Data->HBox_V),
+ G_OBJECT(Control_Flow_Data->Scrolled_Window_VC),
"Control_Flow_Data",
Control_Flow_Data,
(GDestroyNotify)GuiControlFlow_Destructor);
guint index;
/* May already been done by GTK window closing */
- if(GTK_IS_WIDGET(Control_Flow_Data->HBox_V))
- gtk_widget_destroy(Control_Flow_Data->HBox_V);
+ if(GTK_IS_WIDGET(Control_Flow_Data->Scrolled_Window_VC))
+ gtk_widget_destroy(Control_Flow_Data->Scrolled_Window_VC);
- ProcessList_destroy(Control_Flow_Data->Process_List);
+ //ProcessList_destroy(Control_Flow_Data->Process_List);
g_slist_remove(gControl_Flow_Data_List,Control_Flow_Data);
}
GtkWidget *GuiControlFlow_get_Widget(ControlFlowData *Control_Flow_Data)
{
- return Control_Flow_Data->HBox_V ;
+ return Control_Flow_Data->Scrolled_Window_VC ;
}
#ifndef _CFV_H
#define _CFV_H
+#include <gtk/gtk.h>
+
typedef struct _ControlFlowData ControlFlowData;
/* Control Flow Data constructor */
void
GuiControlFlow_Destructor(ControlFlowData *Control_Flow_Data);
GtkWidget *GuiControlFlow_get_Widget(ControlFlowData *Control_Flow_Data);
+
#endif // _CFV_H
#include <lttv/hook.h>
#include <lttv/common.h>
+#include "Event_Hooks.h"
#include "CFV.h"
/**
GtkWidget *
hGuiControlFlow(mainWindow *pmParentWindow)
{
- ControlFlowData* Control_Flow_Data = GuiControlFlow() ;
+ g_critical("hGuiControlFlow");
+ ControlFlowData *Control_Flow_Data = GuiControlFlow() ;
return GuiControlFlow_get_Widget(Control_Flow_Data) ;
#ifndef _EVENT_HOOKS_H
#define _EVENT_HOOKS_H
+#include <gtk/gtk.h>
+#include <lttv/mainWindow.h>
+
GtkWidget *hGuiControlFlow(mainWindow *pmParentWindow);
int Event_Selected_Hook(void *hook_data, void *call_data);
lib_LTLIBRARIES = libguiControlFlow.la
libguiControlFlow_la_LDFLAGS = -module
-libguiControlFlow_la_SOURCES = module.c
-# CFV.c Event_Hooks.c
+libguiControlFlow_la_SOURCES = module.c Event_Hooks.c CFV.c
#libguiControlFlow_la_DEPENDENCIES = CFV.h \
# Event_Hooks.h
#include <glib.h>
#include <gmodule.h>
#include <lttv/module.h>
-//#include <lttv/gtkTraceSet.h>
+#include <lttv/gtkTraceSet.h>
-//#include "CFV.h"
-//#include "Event_Hooks.h"
+#include "CFV.h"
+#include "Event_Hooks.h"
-// #include "../icons/hGuiControlFlowInsert.xpm"
+ #include "../icons/hGuiControlFlowInsert.xpm"
static LttvModule *Main_Win_Module;
/** Array containing instanced objects. Used when module is unloaded */
-//GSList *gControl_Flow_Data_List = NULL ;
+GSList *gControl_Flow_Data_List = NULL ;
g_critical("GUI ControlFlow Viewer init()");
/* Register the toolbar insert button */
- //ToolbarItemReg(hGuiControlFlowInsert_xpm, "Insert Control Flow Viewer",
- // hGuiControlFlow);
+ ToolbarItemReg(hGuiControlFlowInsert_xpm, "Insert Control Flow Viewer",
+ hGuiControlFlow);
/* Register the menu item insert entry */
- //MenuItemReg("/", "Insert Control Flow Viewer", hGuiControlFlow);
+ MenuItemReg("/", "Insert Control Flow Viewer", hGuiControlFlow);
}
void destroy_walk(gpointer data, gpointer user_data)
{
-// GuiControlFlow_Destructor((ControlFlowData*)data);
+ GuiControlFlow_Destructor((ControlFlowData*)data);
+ g_critical("Walk destroy GUI Control Flow Viewer");
}
g_critical("GUI Control Flow Viewer destroy()");
int i;
-// ControlFlowData *Control_Flow_Data;
+ ControlFlowData *Control_Flow_Data;
- g_critical("GUI Event Viewer destroy()");
-
-// g_slist_foreach(gControl_Flow_Data_List, destroy_walk, NULL );
+ g_slist_foreach(gControl_Flow_Data_List, destroy_walk, NULL );
/* Unregister the toolbar insert button */
- //ToolbarItemUnreg(hGuiControlFlow);
+ ToolbarItemUnreg(hGuiControlFlow);
/* Unregister the menu item insert entry */
- //MenuItemUnreg(hGuiControlFlow);
+ MenuItemUnreg(hGuiControlFlow);
}