From e03288f173a3e9b58b68af348d69d9638c2b1690 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 1 Sep 2001 18:24:56 +0000 Subject: [PATCH] border colors on canvas svn: r375 --- gramps/src/gramps_main.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gramps/src/gramps_main.py b/gramps/src/gramps_main.py index f61d4cf8c..d180555a3 100755 --- a/gramps/src/gramps_main.py +++ b/gramps/src/gramps_main.py @@ -2468,7 +2468,7 @@ def add_box(root,x,y,bwidth,bheight,person,style): y1=0, x2=bwidth, y2=bheight, - outline_color_gdk=style.fg[STATE_NORMAL], + outline_color_gdk=style.bg[STATE_NORMAL], fill_color_gdk=style.white) canvas_items.append(item) item = group.add("text", @@ -2496,8 +2496,7 @@ def box_event(obj,event): obj.raise_to_top() box = obj.children()[1] x,y,w,h = box.get_bounds() - box.set(x1=x,y1=y,x2=w,y2=h*3, - outline_color_gdk=canvas['style'].black) + box.set(x1=x,y1=y,x2=w,y2=h*3) box2 = obj.children()[0] x,y,w,h1 = box2.get_bounds() box2.set(x1=x,y1=y,x2=w,y2=(3*h)+PAD) @@ -2520,8 +2519,7 @@ def box_event(obj,event): canvas = gtop.get_widget("canvas1") box = obj.children()[1] x,y,w,h = box.get_bounds() - box.set(x1=x,y1=y,x2=w,y2=h/3, - outline_color_gdk=canvas['style'].fg[STATE_NORMAL]) + box.set(x1=x,y1=y,x2=w,y2=h/3) box2 = obj.children()[0] x,y,w,h1 = box2.get_bounds() box2.set(x1=x,y1=y,x2=w,y2=(h/3)+PAD)