aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-13 13:17:33 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-13 13:17:33 +0000
commitbefb57c4c9f5bb5cd3662b74c755a29dc161885a (patch)
tree7cc4fe910387ef29a103d3ca5b30331c90a83aed
parent6f380397eeea72b724ad70b78319f49458dc916d (diff)
downloadgnunet-gtk-befb57c4c9f5bb5cd3662b74c755a29dc161885a.tar.gz
gnunet-gtk-befb57c4c9f5bb5cd3662b74c755a29dc161885a.zip
-fixes for gtk 2.x
-rw-r--r--src/statistics/gtk_statistics.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/statistics/gtk_statistics.c b/src/statistics/gtk_statistics.c
index 29d0b342..adac737f 100644
--- a/src/statistics/gtk_statistics.c
+++ b/src/statistics/gtk_statistics.c
@@ -132,6 +132,12 @@ statistics_expose (GtkWidget *statistics,
132 cairo_t *cr; 132 cairo_t *cr;
133 133
134 cr = gdk_cairo_create (statistics->window); 134 cr = gdk_cairo_create (statistics->window);
135 cairo_translate (cr, event->area.x, event->area.y);
136 cairo_rectangle (cr,
137 0, 0,
138 event->area.width, event->area.height);
139 cairo_clip (cr);
140
135 gtk_statistics_draw (statistics, cr); 141 gtk_statistics_draw (statistics, cr);
136 cairo_destroy (cr); 142 cairo_destroy (cr);
137 return FALSE; 143 return FALSE;