From 643e35af22dc98cbce904916447d36b0e8fd5189 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 5 Apr 2016 02:27:21 -0400 Subject: [PATCH] tag: Use the new property ldoc syntax --- objects/tag.c | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/objects/tag.c b/objects/tag.c index 590413d4..c0431499 100644 --- a/objects/tag.c +++ b/objects/tag.c @@ -40,12 +40,37 @@ #include "ewmh.h" #include "luaa.h" -/** Tag object. +/** + * Tag name. * - * @field name Tag name. - * @field selected True if the tag is selected to be viewed. - * @field activated True if the tag is active and can be used. - * @table tag + * **Signal:** + * + * * *property::name* + * + * @property name + * @param string + */ + +/** + * True if the tag is selected to be viewed + * + * **Signal:** + * + * * *property::selected* + * + * @property selected + * @param boolean + */ + +/** + * True if the tag is active and can be used. + * + * **Signal:** + * + * * *property::activated* + * + * @property activated + * @param boolean */ /** Get the number of instances. @@ -389,17 +414,8 @@ tag_class_setup(lua_State *L) (lua_class_propfunc_t) luaA_tag_get_activated, (lua_class_propfunc_t) luaA_tag_set_activated); - /** - * @signal property::name - */ signal_add(&tag_class.signals, "property::name"); - /** - * @signal property::selected - */ signal_add(&tag_class.signals, "property::selected"); - /** - * @signal property::activated - */ signal_add(&tag_class.signals, "property::activated"); /** * @signal request::select