From d63c0310bd17e8a3edb3dc78edd6125b44e1b2ed Mon Sep 17 00:00:00 2001 From: Joao Paulo Fernandes Ventura Date: Wed, 21 Mar 2012 17:57:27 +0000 Subject: [PATCH] Fixing bugs in Elementary widgets documentation. Patch by: Joao Paulo Fernandes Ventura SVN revision: 69542 --- legacy/elementary/doc/examples.dox | 15 +++++++++------ legacy/elementary/src/lib/elm_button.h | 7 ++++--- legacy/elementary/src/lib/elm_calendar.h | 7 +++++++ 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/legacy/elementary/doc/examples.dox b/legacy/elementary/doc/examples.dox index 7b4e625b7e..3a45e0f924 100644 --- a/legacy/elementary/doc/examples.dox +++ b/legacy/elementary/doc/examples.dox @@ -1233,11 +1233,11 @@ * * To set weekday names, we should declare them as an array of strings: * @dontinclude calendar_example_02.c - * @skipline weekdays + * @skipline weekdays[] * @until } * * And finally set them to calendar: - * skipline weekdays_names_set + * @skipline weekdays_names_set * * Our example will look like this: * @@ -1289,11 +1289,14 @@ * * Also, regarding days selection, you could be interested to set a * date to be highlighted on calendar from your code, maybe when - * a specific event happens, or after calendar creation. Let's select - * two days from current day: + * a specific event happens, or after calendar creation. As @c time output is + * in seconds, we define the number of seconds contained within a day as a + * constant: * @dontinclude calendar_example_04.c * @skipline SECS_DAY - * @skipline current_time + * + * Now let's select two days from current day: + * @skipline time(NULL) * @until elm_calendar_selected_time_set * * Our example will look like this: @@ -1375,7 +1378,7 @@ * be read on @c ctime manpage. * If a date relative from current is required, this struct can be set * as: - * @skipline current_time + * @skipline time(NULL) * @until localtime_r * * Or if it's an absolute date, you can just declare the struct like: diff --git a/legacy/elementary/src/lib/elm_button.h b/legacy/elementary/src/lib/elm_button.h index feb5acb85f..e8254db044 100644 --- a/legacy/elementary/src/lib/elm_button.h +++ b/legacy/elementary/src/lib/elm_button.h @@ -46,9 +46,10 @@ * @li elm_object_signal_emit * @li elm_object_signal_callback_add * @li elm_object_signal_callback_del - * - * Follow through a complete example @ref button_example_01 "here". - * @{ + * + * Here is some sample code using it: + * @li @ref button_example_00 + * @li @ref button_example_01 */ /** diff --git a/legacy/elementary/src/lib/elm_calendar.h b/legacy/elementary/src/lib/elm_calendar.h index dc58f5a5db..cb8bb17869 100644 --- a/legacy/elementary/src/lib/elm_calendar.h +++ b/legacy/elementary/src/lib/elm_calendar.h @@ -19,6 +19,13 @@ * @li elm_object_signal_callback_add * @li elm_object_signal_callback_del * + * Here is some sample code using it: + * @li @ref calendar_example_01 + * @li @ref calendar_example_02 + * @li @ref calendar_example_03 + * @li @ref calendar_example_04 + * @li @ref calendar_example_05 + * @li @ref calendar_example_06 */ /**