#include "rox-clib.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <glib.h>
#include <gtk/gtk.h>
#include "rox.h"
#include "rox_debug.h"
#include "choices.h"
#include "rox_resources.h"
Functions | |
gchar * | rox_resources_find (const gchar *app_name, const gchar *leaf, const gchar *lang) |
gchar * | rox_resources_find_with_domain (const gchar *app_name, const gchar *leaf, const gchar *lang, const gchar *domain) |
gchar* rox_resources_find | ( | const gchar * | app_name, | |
const gchar * | leaf, | |||
const gchar * | lang | |||
) |
Search choices directories, then APP_DIR for a directory called Resources which contains the file leaf, whether in a sub-directory lang or directly.
[in] | app_name | application name, for seaching choices. |
[in] | leaf | name of file to seach for. |
[in] | lang | language code, may be ROX_RESOURCES_NO_LANG to not search for sub-directories, or ROX_RESOURCES_DEFAULT_LANG for the sub-directory appropriate for the selected language |
NULL
gchar* rox_resources_find_with_domain | ( | const gchar * | app_name, | |
const gchar * | leaf, | |||
const gchar * | lang, | |||
const gchar * | domain | |||
) |
Search XDG_CONFIG_DIRS, then APP_DIR for a directory called Resources which contains the file leaf, whether in a sub-directory lang or directly.
[in] | app_name | application name, for seaching choices. |
[in] | leaf | name of file to seach for. |
[in] | lang | language code, may be ROX_RESOURCES_NO_LANG to not search for sub-directories, or ROX_RESOURCES_DEFAULT_LANG for the sub-directory appropriate for the selected language |
[in] | domain | name of domain, or NULL (see rox_choices_list_dirs()) |
NULL