Removed silencing of gtk warning logs from gtk3.22-client.
[freeciv.git] / client / gui-xaw / themes.c
blob0ed5ac00c1e67084f60528a1ae1f848feadfa3b1
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 /* client/include */
24 #include "themes_g.h"
26 /*****************************************************************************
27 Loads a gtk theme directory/theme_name
28 *****************************************************************************/
29 void gui_load_theme(const char *directory, const char *theme_name)
31 /* Nothing */
34 /*****************************************************************************
35 Clears a theme (sets default system theme)
36 *****************************************************************************/
37 void gui_clear_theme(void)
39 /* Nothing */
42 /*****************************************************************************
43 Each gui has its own themes directories.
45 Returns an array containing these strings and sets array size in count.
46 The caller is responsible for freeing the array and the paths.
47 *****************************************************************************/
48 char **get_gui_specific_themes_directories(int *count)
50 *count = 0;
52 return fc_malloc(sizeof(char*) * 0);
55 /*****************************************************************************
56 Return an array of names of usable themes in the given directory.
57 Array size is stored in count.
58 Useable theme for gtk+ is a directory which contains file gtk-2.0/gtkrc.
59 The caller is responsible for freeing the array and the names
60 *****************************************************************************/
61 char **get_useable_themes_in_directory(const char *directory, int *count)
63 *count = 0;
64 return fc_malloc(sizeof(char*) * 0);