From bd63d8d003e64f12276790a58e3684d763007f62 Mon Sep 17 00:00:00 2001 From: Luis Ontanon Date: Tue, 21 Feb 2006 23:35:13 +0000 Subject: I commented out this a while ago as they caused a crash in GTK2.8/cairo on my box. I checked it in by mistake with a lot of more files, even worst I did not pay attention to an e-mail on the list regarding the damage caused. Luckily Alejandro Vaquero contacted me directly. svn path=/trunk/; revision=17363 --- gtk/graph_analysis.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gtk/graph_analysis.c b/gtk/graph_analysis.c index 02a16ca80f..80fbc6fb8e 100644 --- a/gtk/graph_analysis.c +++ b/gtk/graph_analysis.c @@ -922,7 +922,6 @@ static void dialog_graph_draw(graph_analysis_data_t* user_data) top_y_border+current_item*ITEM_HEIGHT+ITEM_HEIGHT/2+label_height/4, label_string); #else - /* pango_layout_set_text(small_layout, label_string, -1); pango_layout_get_pixel_size(small_layout, &label_width, &label_height); if (GDK_IS_DRAWABLE(user_data->dlg.pixmap_comments)) { @@ -932,7 +931,6 @@ static void dialog_graph_draw(graph_analysis_data_t* user_data) top_y_border+current_item*ITEM_HEIGHT+ITEM_HEIGHT/2-label_height/2, small_layout); } - */ #endif /* select colors */ if ( current_item+first_item == user_data->dlg.selected_item ){ @@ -975,10 +973,8 @@ static void dialog_graph_draw(graph_analysis_data_t* user_data) label_width=gdk_string_width(big_font, label_string); label_height=gdk_string_height(big_font, label_string); #else - /* pango_layout_set_text(big_layout, label_string, -1); pango_layout_get_pixel_size(big_layout, &label_width, &label_height); - */ label_width = label_height = 0; #endif @@ -1004,7 +1000,6 @@ static void dialog_graph_draw(graph_analysis_data_t* user_data) top_y_border+current_item*ITEM_HEIGHT+ITEM_HEIGHT/2+label_height/4-3, label_string); #else - /* if (GDK_IS_DRAWABLE(user_data->dlg.pixmap)) { gdk_draw_layout(user_data->dlg.pixmap, frame_fg_color, @@ -1012,7 +1007,6 @@ static void dialog_graph_draw(graph_analysis_data_t* user_data) top_y_border+current_item*ITEM_HEIGHT+ITEM_HEIGHT/2-label_height/2-3, big_layout); } - */ #endif @@ -1022,10 +1016,8 @@ static void dialog_graph_draw(graph_analysis_data_t* user_data) label_width=gdk_string_width(small_font, label_string); label_height=gdk_string_height(small_font, label_string); #else - /* pango_layout_set_text(small_layout, label_string, -1); pango_layout_get_pixel_size(small_layout, &label_width, &label_height); - */ #endif if (start_arrowdlg.pixmap)) { gdk_draw_layout(user_data->dlg.pixmap, div_line_color, @@ -1049,7 +1040,6 @@ static void dialog_graph_draw(graph_analysis_data_t* user_data) top_y_border+current_item*ITEM_HEIGHT+ITEM_HEIGHT-2-label_height/2-2, small_layout); } - */ #endif /* draw the destination port number */ @@ -1058,10 +1048,8 @@ static void dialog_graph_draw(graph_analysis_data_t* user_data) label_width=gdk_string_width(small_font, label_string); label_height=gdk_string_height(small_font, label_string); #else - /* pango_layout_set_text(small_layout, label_string, -1); pango_layout_get_pixel_size(small_layout, &label_width, &label_height); - */ #endif if (start_arrow