diff --git a/swad_changelog.h b/swad_changelog.h index 43bb975f..315348d7 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -156,13 +156,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.48.3 (2016-11-07)" +#define Log_PLATFORM_VERSION "SWAD 16.48.4 (2016-11-07)" #define CSS_FILE "swad16.32.1.css" #define JS_FILE "swad16.46.1.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1 /* + Version 16.48.4: Nov 07, 2016 Icon in preferences-theme to show figure (statistics). (206465 lines) Version 16.48.3: Nov 07, 2016 Icon in preferences-icons to show figure (statistics). (206449 lines) Version 16.48.2: Nov 07, 2016 Icon in preferences-first-day-of-week to show figure (statistics). (206433 lines) Version 16.48.1: Nov 07, 2016 Icon in preferences-language to show figure (statistics). (206429 lines) diff --git a/swad_theme.c b/swad_theme.c index 3e7cf641..266beda9 100644 --- a/swad_theme.c +++ b/swad_theme.c @@ -239,6 +239,12 @@ const char *The_ClassFormBold[The_NUM_THEMES] = "YELLOW_FORM_BOLD", }; +/*****************************************************************************/ +/****************************** Private prototypes ***************************/ +/*****************************************************************************/ + +static void The_PutIconsTheme (void); + /*****************************************************************************/ /************************ Put icons to select a theme ***********************/ /*****************************************************************************/ @@ -248,8 +254,9 @@ void The_PutIconsToSelectTheme (void) extern const char *Txt_Theme_SKIN; The_Theme_t Theme; - Lay_StartRoundFrameTable (NULL,0,Txt_Theme_SKIN); - fprintf (Gbl.F.Out,""); + Lay_StartRoundFrame (NULL,Txt_Theme_SKIN,The_PutIconsTheme); + fprintf (Gbl.F.Out,"" + ""); for (Theme = (The_Theme_t) 0; Theme < The_NUM_THEMES; Theme++) @@ -271,8 +278,20 @@ void The_PutIconsToSelectTheme (void) Act_FormEnd (); fprintf (Gbl.F.Out,""); } - fprintf (Gbl.F.Out,""); - Lay_EndRoundFrameTable (); + fprintf (Gbl.F.Out,"" + "
"); + Lay_EndRoundFrame (); + } + +/*****************************************************************************/ +/***************** Put contextual icons in theme preference ******************/ +/*****************************************************************************/ + +static void The_PutIconsTheme (void) + { + /***** Put icon to show a figure *****/ + Gbl.Stat.FigureType = Sta_THEMES; + Sta_PutIconToShowFigure (); } /*****************************************************************************/ diff --git a/swad_timetable.c b/swad_timetable.c index 7817a19b..1d0d21cf 100644 --- a/swad_timetable.c +++ b/swad_timetable.c @@ -276,8 +276,8 @@ void TT_ShowClassTimeTable (void) /***** Show form to change first day of week *****/ Cal_ShowFormToSelFirstDayOfWeek (Gbl.TimeTable.Type == TT_COURSE_TIMETABLE ? ActChgCrsTT1stDay : - ActChgMyTT1stDay, - "ICON25x25"); + ActChgMyTT1stDay, + "ICON25x25"); } /***** Show the time table *****/