]> git.eshelyaron.com Git - emacs.git/commit
Implement `alpha-background' on PGTK
authorPo Lu <luangruo@yahoo.com>
Mon, 31 Jan 2022 12:21:04 +0000 (20:21 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 31 Jan 2022 12:21:04 +0000 (20:21 +0800)
commit46473a4eac2579b88ec843e1301eb2a89835e2ae
treef945e81e20b215f2f5cf2188b1ddf141415b75a9
parent790ad61fcf91c75811ed30d21518e1dac99be044
Implement `alpha-background' on PGTK

* src/ftcrfont.c (ftcrfont_draw): Respect alpha-background where
appropriate.
* src/gtkutil.c (xg_create_frame_widgets): Swap some
conditionals around to get the right visual and signal handlers
on PGTK.
(xg_widget_style_updated): Likewise.
* src/pgtkfns.c (pgtk_set_alpha_background): New function.
(pgtk_frame_parm_handlers): Add it instead of the generic param
handler.
(Fx_create_frame): Fix typo.
* src/pgtkterm.c (pgtk_fill_rectangle):
(pgtk_set_cr_source_with_gc_foreground):
(pgtk_set_cr_source_with_gc_background):
(pgtk_set_cr_source_with_color): New argument
`respect_alpha_backend'.  All callers changed.
* src/pgtkterm.h: Update function prototypes.
src/ftcrfont.c
src/gtkutil.c
src/pgtkfns.c
src/pgtkterm.c
src/pgtkterm.h