Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/gui-stub/themes.c File Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Functions
themes.c File Reference
`#include "mem.h"`
`#include "themes_common.h"`
`#include "gui_stub.h"`
`#include "themes_g.h"`

Go to the source code of this file.

## Functions

void | gui_gui_load_theme (const char *directory, const char *theme_name)
void | gui_gui_clear_theme (void)
char ** | gui_get_gui_specific_themes_directories (int *count)
char ** | gui_get_usable_themes_in_directory (const char *directory, int *count)

## Function Documentation

## ◆ gui_get_gui_specific_themes_directories()

char ** gui_get_gui_specific_themes_directories | ( | int * | count | ) |

Each gui has its own themes directories.

Returns an array containing these strings and sets array size in count. The caller is responsible for freeing the array and the paths.

Definition at line 51 of file themes.c.

Referenced by setup_gui_funcs().

## ◆ gui_get_usable_themes_in_directory()

char ** gui_get_usable_themes_in_directory | ( | const char * | directory,
|  | int * | count
| ) |  |

Return an array of names of usable themes in the given directory. Array size is stored in count. The caller is responsible for freeing the array and the names

Definition at line 63 of file themes.c.

Referenced by setup_gui_funcs().

## ◆ gui_gui_clear_theme()

void gui_gui_clear_theme | ( | void |  | ) |

Clears a theme (sets default system theme)

Definition at line 40 of file themes.c.

Referenced by setup_gui_funcs().

## ◆ gui_gui_load_theme()

void gui_gui_load_theme | ( | const char * | directory,
|  | const char * | theme_name
| ) |  |

Loads a gtk theme directory/theme_name

Definition at line 32 of file themes.c.

Referenced by setup_gui_funcs().