X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Fcfv.c;h=47ad080bfb46f9cc91ce2ccc92ddaebe3ae9bf3d;hb=6cec4cd266bde25f87dad0a059fd98c7381eb8c2;hp=8d4a339ec2b47ff25bc3fd2045f0fb3ac6cada1b;hpb=6550d71135aed5d81a76d7d5625757570bcf0819;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c index 8d4a339e..47ad080b 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c @@ -16,16 +16,20 @@ * MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include +#include +#include #include "cfv.h" #include "drawing.h" #include "processlist.h" #include "eventhooks.h" -#include "cfv-private.h" -#include extern GSList *g_control_flow_data_list; @@ -44,7 +48,6 @@ header_size_allocate(GtkWidget *widget, } - /***************************************************************************** * Control Flow Viewer class implementation * *****************************************************************************/ @@ -57,12 +60,14 @@ header_size_allocate(GtkWidget *widget, * @return The widget created. */ ControlFlowData * -guicontrolflow(void) +guicontrolflow(Tab *tab) { GtkWidget *process_list_widget, *drawing_widget, *drawing_area; ControlFlowData* control_flow_data = g_new(ControlFlowData,1) ; + control_flow_data->tab = tab; + control_flow_data->v_adjust = GTK_ADJUSTMENT(gtk_adjustment_new( 0.0, /* Value */ 0.0, /* Lower */ @@ -116,7 +121,9 @@ guicontrolflow(void) process_list_widget, FALSE, TRUE); gtk_paned_pack2(GTK_PANED(control_flow_data->h_paned), drawing_widget, TRUE, TRUE); - + + gtk_container_set_border_width(GTK_CONTAINER(control_flow_data->box), 1); + /* Set the size of the drawing area */ //drawing_Resize(drawing, h, w); @@ -147,7 +154,6 @@ guicontrolflow(void) //inserted in the main window before the drawing area //can be configured (and this must happend bedore sending //data) - return control_flow_data;