diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2012-11-24 14:20:00 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2012-11-24 14:20:00 +0000 |
commit | 535a8887d77b46106ff7654837af49303238adb8 (patch) | |
tree | 631cb541f2fdee977dcaaf299b57ca0c210967c8 /ui | |
parent | 57cc0931b21c885e442baf57f6e47e13a68d5ecd (diff) |
From Jim Young:
- restore rendering TCP graph titles with black text (fixing bug 8016)
Plus a couple of updated comments.
svn path=/trunk/; revision=46164
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/tcp_graph.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/gtk/tcp_graph.c b/ui/gtk/tcp_graph.c index c9afd29b1b..880c79892e 100644 --- a/ui/gtk/tcp_graph.c +++ b/ui/gtk/tcp_graph.c @@ -736,6 +736,8 @@ static void create_drawing_area (struct graph *g) GtkWidget *hbox; #endif debug(DBS_FENTRY) puts ("create_drawing_area()"); + + /* Set title of window with file + conversation details */ display_name = cf_get_display_name(&cfile); g_snprintf (window_title, WINDOW_TITLE_LENGTH, "TCP Graph %d: %s %s:%d -> %s:%d", refnum, @@ -2159,9 +2161,10 @@ static void graph_title_pixmap_draw (struct graph *g) #else cr = gdk_cairo_create (g->title_pixmap); #endif - cairo_set_source_rgb (cr, 1, 1, 1); + cairo_set_source_rgb (cr, 1, 1, 1); /* set fill color */ cairo_rectangle (cr, 0, 0, g->x_axis->p.width, g->wp.y); cairo_fill (cr); + cairo_set_source_rgb (cr, 0, 0, 0); /* set text color */ for (i=0; g->title[i]; i++) { gint w, h; @@ -2273,7 +2276,7 @@ static void graph_pixmap_draw (struct graph *g) GdkColor *color_to_set = NULL; gboolean line_stroked = TRUE; - debug(DBS_FENTRY) puts ("graph_display()"); + debug(DBS_FENTRY) puts ("graph_pixmap_draw()"); not_disp = 1 ^ g->displayed; #if GTK_CHECK_VERSION(2,22,0) |