diff options
author | Jan D <jan.h.d@swipnet.se> | 2010-08-11 20:28:10 +0200 |
---|---|---|
committer | Jan D <jan.h.d@swipnet.se> | 2010-08-11 20:28:10 +0200 |
commit | 3a46642b081c504b6e25c65d81999fcc0dff5fb2 (patch) | |
tree | a7f42c1836467e6c8539cef167977a48c182ad97 /src/gtkutil.h | |
parent | 42ca463309fdb17f04a72dad92696312bf242328 (diff) | |
download | emacs-3a46642b081c504b6e25c65d81999fcc0dff5fb2.tar.gz |
Take colors for region face (selected text) from the Gtk+ theme.
* lisp/dynamic-setting.el (dynamic-setting-handle-config-changed-event):
Handle theme-name change.
* lisp/faces.el (region): Add type gtk that uses gtk colors.
* src/gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
(xg_create_frame_widgets): Connect theme name changes to
style_changed_cb.
* src/gtkutil.h (xg_check_special_colors): Declare.
* src/xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
first.
Diffstat (limited to 'src/gtkutil.h')
-rw-r--r-- | src/gtkutil.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gtkutil.h b/src/gtkutil.h index 6e86425fb74..9b796e1138c 100644 --- a/src/gtkutil.h +++ b/src/gtkutil.h @@ -156,6 +156,9 @@ extern void x_wm_set_size_hint (FRAME_PTR f, long flags, int user_position); extern void xg_set_background_color (FRAME_PTR f, unsigned long bg); +extern int xg_check_special_colors (struct frame *f, + const char *color_name, + XColor *color); extern void xg_set_frame_icon (FRAME_PTR f, Pixmap icon_pixmap, |