From: Yuuki Harano Date: Tue, 24 Mar 2020 15:23:42 +0000 (+0900) Subject: update redisplay_interface. X-Git-Tag: emacs-29.0.90~3819 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=992ef483006aad6c85138e901768fa9e1ef59784;p=emacs.git update redisplay_interface. * src/pgtkfns.c (Fx_create_frame, pgtk_default_font_parameter): * src/pgtkterm.c (pgtk_redisplay_interface): * src/pgtkterm.h: --- diff --git a/src/pgtkfns.c b/src/pgtkfns.c index 2525547c3f7..2c8f73ebcb6 100644 --- a/src/pgtkfns.c +++ b/src/pgtkfns.c @@ -991,8 +991,8 @@ x_decode_color (struct frame *f, Lisp_Object color_name, int mono_color) signal_error ("Undefined color", color_name); } -static void -x_default_font_parameter (struct frame *f, Lisp_Object parms) +void +pgtk_default_font_parameter (struct frame *f, Lisp_Object parms) { struct pgtk_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); Lisp_Object font_param = gui_display_get_arg (dpyinfo, parms, Qfont, NULL, NULL, @@ -1262,7 +1262,7 @@ This function is an internal primitive--use `make-frame' instead. */) /* Extract the window parameters from the supplied values that are needed to determine window geometry. */ - x_default_font_parameter (f, parms); + pgtk_default_font_parameter (f, parms); if (!FRAME_FONT (f)) { delete_frame (frame, Qnoelisp); diff --git a/src/pgtkterm.c b/src/pgtkterm.c index 92ad1bc6c8e..fbfc295534b 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -3328,7 +3328,8 @@ static struct redisplay_interface pgtk_redisplay_interface = pgtk_draw_window_divider, NULL, // pgtk_shift_glyphs_for_insert, pgtk_show_hourglass, - pgtk_hide_hourglass + pgtk_hide_hourglass, + pgtk_default_font_parameter, }; static void diff --git a/src/pgtkterm.h b/src/pgtkterm.h index d441e16106e..7bc0f0da080 100644 --- a/src/pgtkterm.h +++ b/src/pgtkterm.h @@ -615,6 +615,8 @@ extern void x_change_tab_bar_height (struct frame *, int); extern struct pgtk_display_info *check_pgtk_display_info (Lisp_Object object); +extern void pgtk_default_font_parameter (struct frame *f, Lisp_Object parms); + extern void pgtk_enqueue_string(struct frame *f, gchar *str); extern void pgtk_enqueue_preedit(struct frame *f, Lisp_Object image_data); extern void pgtk_im_focus_in(struct frame *f);