gtk: fix frame for text-field%' and other
canvas%'es
This commit is contained in:
parent
099a0eebed
commit
8264e77585
|
@ -35,10 +35,12 @@
|
|||
[gray #x8000])
|
||||
(when gc
|
||||
(gdk_gc_set_rgb_fg_color gc (make-GdkColor 0 gray gray gray))
|
||||
(let ([a (widget-allocation gtk)])
|
||||
(let ([a (widget-allocation gtk)]
|
||||
[no-window? (not (zero? (bitwise-and (get-gtk-object-flags gtk)
|
||||
GTK_NO_WINDOW)))])
|
||||
(gdk_draw_rectangle win gc #f
|
||||
0
|
||||
0
|
||||
(if no-window? (GtkAllocation-x a) 0)
|
||||
(if no-window? (GtkAllocation-y a) 0)
|
||||
(sub1 (GtkAllocation-width a))
|
||||
(sub1 (GtkAllocation-height a))))
|
||||
(gdk_gc_unref gc)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user