From f3b7430de9cb60207abac121b5fc51ba915910d5 Mon Sep 17 00:00:00 2001 From: compudj Date: Thu, 19 Aug 2004 05:01:27 +0000 Subject: [PATCH] fix configure bug in cfv git-svn-id: http://ltt.polymtl.ca/svn@814 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c | 9 +++++++++ .../poly/lttv/modules/gui/controlflow/eventhooks.c | 4 ++-- .../poly/lttv/modules/gui/controlflow/processlist.c | 9 ++------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c index c6d331f9..9939a7ca 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c @@ -559,6 +559,15 @@ configure_event( GtkWidget *widget, GdkEventConfigure *event, widget->allocation.height != 1) && drawing->damage_begin < drawing->damage_end) { + + rectangle_pixmap (drawing->control_flow_data->process_list, + drawing->drawing_area->style->black_gc, + TRUE, + 0, 0, + drawing->alloc_width, // do not overlap + -1); + + drawing_data_request(drawing, drawing->damage_begin, 0, diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c index e3ce2646..e27ddf27 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c @@ -2895,9 +2895,10 @@ gint redraw_notify(void *hook_data, void *call_data) widget->style->black_gc, TRUE, 0, 0, - drawing->width+SAFETY, + drawing->alloc_width, -1); + gtk_widget_queue_draw(drawing->drawing_area); if(drawing->damage_begin < drawing->damage_end) { @@ -2908,7 +2909,6 @@ gint redraw_notify(void *hook_data, void *call_data) drawing->height); } - gtk_widget_queue_draw(drawing->drawing_area); //gtk_widget_queue_draw_area(drawing->drawing_area, // 0,0, // drawing->width, diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c index 55c82b6f..ba0ca45a 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c @@ -346,20 +346,15 @@ ProcessList *processlist_construct(void) process_list->process_list_widget = gtk_tree_view_new_with_model (GTK_TREE_MODEL (process_list->list_store)); + g_object_unref (G_OBJECT (process_list->list_store)); - gtk_tree_sortable_set_sort_func( + gtk_tree_sortable_set_default_sort_func( GTK_TREE_SORTABLE(process_list->list_store), - PID_COLUMN, process_sort_func, NULL, NULL); - gtk_tree_sortable_set_sort_column_id( - GTK_TREE_SORTABLE(process_list->list_store), - PID_COLUMN, - GTK_SORT_ASCENDING); - process_list->process_hash = g_hash_table_new_full( process_list_hash_fct, process_list_equ_fct, destroy_hash_key, destroy_hash_data -- 2.34.1