comparison src/gtkutil.h @ 109749:be18c3b67d66

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.
author Jan D <jan.h.d@swipnet.se>
date Wed, 11 Aug 2010 20:28:10 +0200
parents e2f8226efb99
children 417b1e4d63cd
comparison
equal deleted inserted replaced
109748:e2f8226efb99 109749:be18c3b67d66
154 extern void xg_free_frame_widgets (FRAME_PTR f); 154 extern void xg_free_frame_widgets (FRAME_PTR f);
155 extern void x_wm_set_size_hint (FRAME_PTR f, 155 extern void x_wm_set_size_hint (FRAME_PTR f,
156 long flags, 156 long flags,
157 int user_position); 157 int user_position);
158 extern void xg_set_background_color (FRAME_PTR f, unsigned long bg); 158 extern void xg_set_background_color (FRAME_PTR f, unsigned long bg);
159 extern int xg_check_special_colors (struct frame *f,
160 const char *color_name,
161 XColor *color);
159 162
160 extern void xg_set_frame_icon (FRAME_PTR f, 163 extern void xg_set_frame_icon (FRAME_PTR f,
161 Pixmap icon_pixmap, 164 Pixmap icon_pixmap,
162 Pixmap icon_mask); 165 Pixmap icon_mask);
163 166