From 6a9ba166a13b341fbbc10d37c8d2f244c2d47c9b Mon Sep 17 00:00:00 2001 From: compudj Date: Tue, 27 Jul 2004 18:37:19 +0000 Subject: [PATCH] put hpaned inside a box, makes it work. git-svn-id: http://ltt.polymtl.ca/svn@636 04897980-b3bd-0310-b5e0-8ef037075253 --- .../poly/lttv/modules/gui/controlflow/cfv-private.h | 1 + ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv-private.h b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv-private.h index ee3f6e4e..d9b1596c 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv-private.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv-private.h @@ -25,6 +25,7 @@ struct _ControlFlowData { GtkWidget *top_widget; Tab *tab; + GtkWidget *box; /* box that contains the hpaned. necessary for it to work */ GtkWidget *h_paned; ProcessList *process_list; diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c index 75fec21e..fefe0a0b 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c @@ -87,10 +87,12 @@ guicontrolflow(void) control_flow_data->v_adjust)); - //control_flow_data->Inside_HBox_V = gtk_hbox_new(0, 0); - control_flow_data->top_widget = control_flow_data->h_paned = - gtk_hpaned_new(); - + control_flow_data->h_paned = gtk_hpaned_new(); + control_flow_data->box = gtk_event_box_new(); + control_flow_data->top_widget = control_flow_data->box; + gtk_container_add(GTK_CONTAINER(control_flow_data->box), + control_flow_data->h_paned); + gtk_paned_pack1(GTK_PANED(control_flow_data->h_paned), process_list_widget, FALSE, TRUE); gtk_paned_pack2(GTK_PANED(control_flow_data->h_paned), @@ -105,6 +107,7 @@ guicontrolflow(void) gtk_widget_show(drawing_widget); gtk_widget_show(process_list_widget); gtk_widget_show(control_flow_data->h_paned); + gtk_widget_show(control_flow_data->box); g_object_set_data_full( G_OBJECT(control_flow_data->top_widget), -- 2.34.1