aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/xfns.c10
2 files changed, 6 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0c8d584f139..f727dc73f1f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12010-06-28 Jan Djärv <jan.h.d@swipnet.se> 12010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2 2
3 * xfns.c (x_default_font_parameter): Remove got_from_system
4 (Bug#6526).
5
3 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped) 6 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
4 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New 7 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
5 defines based on what configure finds. 8 defines based on what configure finds.
diff --git a/src/xfns.c b/src/xfns.c
index 516aaaffc93..ea592417d1f 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3067,13 +3067,12 @@ x_default_font_parameter (f, parms)
3067 Lisp_Object font_param = x_get_arg (dpyinfo, parms, Qfont, NULL, NULL, 3067 Lisp_Object font_param = x_get_arg (dpyinfo, parms, Qfont, NULL, NULL,
3068 RES_TYPE_STRING); 3068 RES_TYPE_STRING);
3069 Lisp_Object font = Qnil; 3069 Lisp_Object font = Qnil;
3070 int got_from_system = 0;
3071 if (EQ (font_param, Qunbound)) 3070 if (EQ (font_param, Qunbound))
3072 font_param = Qnil; 3071 font_param = Qnil;
3073 3072
3074 if (NILP (font_param)) 3073 if (NILP (font_param))
3075 { 3074 {
3076 /* System font takes precedendce over X resources. We must suggest this 3075 /* System font should take precedendce over X resources. We suggest this
3077 regardless of font-use-system-font because .emacs may not have been 3076 regardless of font-use-system-font because .emacs may not have been
3078 read yet. */ 3077 read yet. */
3079 const char *system_font = xsettings_get_system_font (); 3078 const char *system_font = xsettings_get_system_font ();
@@ -3081,7 +3080,6 @@ x_default_font_parameter (f, parms)
3081 { 3080 {
3082 char *name = xstrdup (system_font); 3081 char *name = xstrdup (system_font);
3083 font = font_open_by_name (f, name); 3082 font = font_open_by_name (f, name);
3084 got_from_system = ! NILP (font);
3085 free (name); 3083 free (name);
3086 } 3084 }
3087 } 3085 }
@@ -3127,10 +3125,8 @@ x_default_font_parameter (f, parms)
3127 x_set_frame_parameters (f, Fcons (Fcons (Qfont_param, font_param), Qnil)); 3125 x_set_frame_parameters (f, Fcons (Fcons (Qfont_param, font_param), Qnil));
3128 } 3126 }
3129 3127
3130 x_default_parameter (f, parms, Qfont, font, 3128 /* This call will make X resources override any system font setting. */
3131 got_from_system ? NULL : "font", 3129 x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING);
3132 got_from_system ? NULL : "Font",
3133 RES_TYPE_STRING);
3134} 3130}
3135 3131
3136 3132