mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 15:00:34 -08:00
Synchronize tool bar position code with X
* src/androidfns.c (android_set_tool_bar_position): New function. (android_frame_parm_handlers): Add new frame param handler.
This commit is contained in:
parent
8f3fee7dff
commit
c8aca918f7
1 changed files with 17 additions and 1 deletions
|
|
@ -249,6 +249,22 @@ android_set_tool_bar_lines (struct frame *f, Lisp_Object value,
|
|||
android_change_tool_bar_height (f, nlines * FRAME_LINE_HEIGHT (f));
|
||||
}
|
||||
|
||||
static void
|
||||
android_set_tool_bar_position (struct frame *f,
|
||||
Lisp_Object new_value,
|
||||
Lisp_Object old_value)
|
||||
{
|
||||
Lisp_Object choice = list4 (Qleft, Qright, Qtop, Qbottom);
|
||||
|
||||
if (!NILP (Fmemq (new_value, choice)))
|
||||
{
|
||||
if (!EQ (new_value, Qtop))
|
||||
error ("The only supported tool bar position is top");
|
||||
}
|
||||
else
|
||||
wrong_choice (choice, new_value);
|
||||
}
|
||||
|
||||
void
|
||||
android_change_tool_bar_height (struct frame *f, int height)
|
||||
{
|
||||
|
|
@ -2931,7 +2947,7 @@ frame_parm_handler android_frame_parm_handlers[] =
|
|||
gui_set_visibility,
|
||||
android_set_tab_bar_lines,
|
||||
android_set_tool_bar_lines,
|
||||
NULL,
|
||||
android_set_tool_bar_position,
|
||||
NULL,
|
||||
gui_set_screen_gamma,
|
||||
gui_set_line_spacing,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue