diff options
author | Danny Baumann <dannybaumann@web.de> | 2007-10-17 09:12:47 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2007-10-17 09:12:47 +0200 |
commit | bed702ee42c721b82564abd447917036119a13c4 (patch) | |
tree | 2bac7a44baf6441170b073ac8aa2c39c0e1a63d0 | |
parent | 4e265b65982bacae5cb61f821f8ae42ba0d8eb05 (diff) |
Added clear button option.
-rw-r--r-- | metadata/annotate.xml.in | 4 | ||||
-rw-r--r-- | plugins/annotate.c | 12 |
2 files changed, 11 insertions, 5 deletions
diff --git a/metadata/annotate.xml.in b/metadata/annotate.xml.in index 75d1c190..6223bb0f 100644 --- a/metadata/annotate.xml.in +++ b/metadata/annotate.xml.in @@ -22,6 +22,10 @@ <_long>Clear</_long> <default><Super><Alt>k</default> </option> + <option name="clear_button" type="button"> + <_short>Clear</_short> + <_long>Clear</_long> + </option> <option name="fill_color" type="color"> <_short>Annotate Fill Color</_short> <_long>Fill color for annotations</_long> diff --git a/plugins/annotate.c b/plugins/annotate.c index 9d042b70..9505f75d 100644 --- a/plugins/annotate.c +++ b/plugins/annotate.c @@ -41,11 +41,12 @@ static int annoLastPointerY = 0; #define ANNO_DISPLAY_OPTION_DRAW_BUTTON 1 #define ANNO_DISPLAY_OPTION_ERASE_BUTTON 2 #define ANNO_DISPLAY_OPTION_CLEAR_KEY 3 -#define ANNO_DISPLAY_OPTION_FILL_COLOR 4 -#define ANNO_DISPLAY_OPTION_STROKE_COLOR 5 -#define ANNO_DISPLAY_OPTION_LINE_WIDTH 6 -#define ANNO_DISPLAY_OPTION_STROKE_WIDTH 7 -#define ANNO_DISPLAY_OPTION_NUM 8 +#define ANNO_DISPLAY_OPTION_CLEAR_BUTTON 4 +#define ANNO_DISPLAY_OPTION_FILL_COLOR 5 +#define ANNO_DISPLAY_OPTION_STROKE_COLOR 6 +#define ANNO_DISPLAY_OPTION_LINE_WIDTH 7 +#define ANNO_DISPLAY_OPTION_STROKE_WIDTH 8 +#define ANNO_DISPLAY_OPTION_NUM 9 typedef struct _AnnoDisplay { int screenPrivateIndex; @@ -743,6 +744,7 @@ static const CompMetadataOptionInfo annoDisplayOptionInfo[] = { { "draw_button", "button", 0, annoDraw, 0 }, { "erase_button", "button", 0, annoEraseInitiate, 0 }, { "clear_key", "key", 0, annoClear, 0 }, + { "clear_button", "button", 0, annoClear, 0 }, { "fill_color", "color", 0, 0, 0 }, { "stroke_color", "color", 0, 0, 0 }, { "line_width", "float", 0, 0, 0 }, |