aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.h
diff options
context:
space:
mode:
authorPo Lu2022-03-11 20:07:52 +0800
committerPo Lu2022-03-11 20:10:23 +0800
commit7ad1df5e1684532efeec435be4ac7fc76affc814 (patch)
treee1fa68133b3802e1810440358f1327b3c115e608 /src/xterm.h
parent92ebfe7da4af5c60d33538d3526ef06d2a0142c4 (diff)
downloademacs-7ad1df5e1684532efeec435be4ac7fc76affc814.tar.gz
emacs-7ad1df5e1684532efeec435be4ac7fc76affc814.zip
Implement customization of scroll bar colors on GTK 3
* src/gtkutil.c (xg_create_frame_widgets): Create CSS providers for scroll bars. (xg_finish_scroll_bar_creation): Attach created CSS providers. * src/xfns.c (x_set_scroll_bar_foreground): (x_set_scroll_bar_background): Put appropriate content into CSS providers. * src/xterm.c (x_free_frame_resources): Free CSS providers. * src/xterm.h (struct x_output): New fields for scroll bar stylesheet providers.
Diffstat (limited to 'src/xterm.h')
-rw-r--r--src/xterm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h
index 4875eabafe6..5b199cab6b6 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -758,6 +758,13 @@ struct x_output
758 GtkWindow *ttip_window; 758 GtkWindow *ttip_window;
759 759
760 GtkIMContext *im_context; 760 GtkIMContext *im_context;
761
762#ifdef HAVE_GTK3
763 /* The CSS providers used for scroll bar foreground and background
764 colors. */
765 GtkCssProvider *scrollbar_foreground_css_provider;
766 GtkCssProvider *scrollbar_background_css_provider;
767#endif
761#endif /* USE_GTK */ 768#endif /* USE_GTK */
762 769
763 /* If >=0, a bitmap index. The indicated bitmap is used for the 770 /* If >=0, a bitmap index. The indicated bitmap is used for the