Gave ordering to all Picture Decorations magic tools

This commit is contained in:
Bill Kendrick 2024-01-16 22:48:41 -08:00
parent b1bc736f77
commit e3cb845426
3 changed files with 24 additions and 6 deletions

View file

@ -7,7 +7,7 @@
By Bill Kendrick
Based on `blind.c` by Pere Pujal Carabantes
Copyright (c) 2021-2023
Copyright (c) 2021-2024
https://tuxpaint.org/
This program is free software; you can redistribute it and/or modify
@ -25,7 +25,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: December 29, 2023
Last updated: January 16, 2024
*/
#include "tp_magic_api.h"
@ -46,6 +46,7 @@ int checkerboard_get_tool_count(magic_api * api);
SDL_Surface *checkerboard_get_icon(magic_api * api, int which);
char *checkerboard_get_name(magic_api * api, int which);
int checkerboard_get_group(magic_api * api, int which);
int checkerboard_get_order(int which);
char *checkerboard_get_description(magic_api * api, int which, int mode);
int checkerboard_requires_colors(magic_api * api, int which);
void checkerboard_release(magic_api * api, int which,
@ -119,6 +120,11 @@ int checkerboard_get_group(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE
return MAGIC_TYPE_PICTURE_DECORATIONS;
}
int checkerboard_get_order(int which ATTRIBUTE_UNUSED)
{
return 200;
}
char *checkerboard_get_description(magic_api * api ATTRIBUTE_UNUSED,
int which ATTRIBUTE_UNUSED, int mode ATTRIBUTE_UNUSED)
{