X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Fdrawing.c;h=10d23986bc51316be1e7063bee094e7d20c6e356;hb=97e879d29ae45a025945e2772c33365934543421;hp=8ed214a3ba3d422fa135cd916d2b55371116b190;hpb=88feb618dc79481733516a77f285bb6514bb1d17;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c index 8ed214a3..10d23986 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c @@ -1,3 +1,20 @@ +/* This file is part of the Linux Trace Toolkit viewer + * Copyright (C) 2003-2004 Mathieu Desnoyers + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License Version 2 as + * published by the Free Software Foundation; + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ #include #include @@ -188,7 +205,7 @@ configure_event( GtkWidget *widget, GdkEventConfigure *event, // Clear the image gdk_draw_rectangle (drawing->pixmap, - widget->style->white_gc, + widget->style->black_gc, TRUE, 0, 0, widget->allocation.width+SAFETY, @@ -223,7 +240,7 @@ configure_event( GtkWidget *widget, GdkEventConfigure *event, /* Copy old data to new pixmap */ gdk_draw_drawable (pixmap, - widget->style->white_gc, + widget->style->black_gc, drawing->pixmap, 0, 0, 0, 0, @@ -236,7 +253,7 @@ configure_event( GtkWidget *widget, GdkEventConfigure *event, // Clear the bottom part of the image (SAFETY) gdk_draw_rectangle (pixmap, - widget->style->white_gc, + widget->style->black_gc, TRUE, 0, drawing->height+SAFETY, drawing->width+SAFETY, // do not overlap @@ -244,7 +261,7 @@ configure_event( GtkWidget *widget, GdkEventConfigure *event, // Clear the right part of the image (SAFETY) gdk_draw_rectangle (pixmap, - widget->style->white_gc, + widget->style->black_gc, TRUE, drawing->width+SAFETY, 0, (widget->allocation.width) - drawing->width, // do not overlap @@ -252,7 +269,7 @@ configure_event( GtkWidget *widget, GdkEventConfigure *event, /* Clear the backgound for data request, but not SAFETY */ gdk_draw_rectangle (pixmap, - drawing->drawing_area->style->white_gc, + drawing->drawing_area->style->black_gc, TRUE, drawing->width + SAFETY, 0, widget->allocation.width - drawing->width, // do not overlap @@ -554,7 +571,7 @@ void drawing_insert_square(Drawing_t *drawing, /* add an empty square */ gdk_draw_rectangle (pixmap, - drawing->drawing_area->style->white_gc, + drawing->drawing_area->style->black_gc, TRUE, 0, y, drawing->width + SAFETY, // do not overlap