webperimental: killstack decides stack protects.
[freeciv.git] / client / gui-stub / themes.c
blobcfb6b7432b8cc4bc9113c00a750fe9dca57a29f4
1 /**********************************************************************
2 Freeciv - Copyright (C) 2005 The Freeciv Team
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
13 #ifdef HAVE_CONFIG_H
14 #include <fc_config.h>
15 #endif
17 /* utility */
18 #include "mem.h"
20 /* client */
21 #include "themes_common.h"
23 /* gui main header */
24 #include "gui_stub.h"
26 /* client/include */
27 #include "themes_g.h"
29 /*****************************************************************************
30 Loads a gtk theme directory/theme_name
31 *****************************************************************************/
32 void gui_gui_load_theme(const char *directory, const char *theme_name)
34 /* Nothing */
37 /*****************************************************************************
38 Clears a theme (sets default system theme)
39 *****************************************************************************/
40 void gui_gui_clear_theme(void)
42 /* Nothing */
45 /*****************************************************************************
46 Each gui has its own themes directories.
48 Returns an array containing these strings and sets array size in count.
49 The caller is responsible for freeing the array and the paths.
50 *****************************************************************************/
51 char **gui_get_gui_specific_themes_directories(int *count)
53 *count = 0;
55 return fc_malloc(sizeof(char*) * 0);
58 /*****************************************************************************
59 Return an array of names of usable themes in the given directory.
60 Array size is stored in count.
61 Useable theme for gtk+ is a directory which contains file gtk-2.0/gtkrc.
62 The caller is responsible for freeing the array and the names
63 *****************************************************************************/
64 char **gui_get_useable_themes_in_directory(const char *directory, int *count)
66 *count = 0;
67 return fc_malloc(sizeof(char*) * 0);