Icon directory cannot be set by environment variable
Submitted by Szilárd Pfeiffer
Link to original bug (#506422)
Description
In spite of catalog and module directories the icon directory can not be set by environment variable, so in case of a custom widget the related icon must be given in the package's installed pixmap directory.
The following patch may solve the problem:
--- gladeui/glade-app.c (revision 1666) +++ gladeui/glade-app.c (working copy) @@ -425,9 +425,17 @@
if (!initialized)
{
-
const gchar *search_path;
-
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), pixmaps_dir);
-
if ((search_path = g_getenv (GLADE_ENV_ICON_PATH)) != NULL)
-
{
-
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
-
search_path);
-
}
-
glade_cursor_init (); initialized = TRUE;
Index: gladeui/glade-app.h
--- gladeui/glade-app.h (revision 1666) +++ gladeui/glade-app.h (working copy) @@ -40,6 +40,7 @@
#define GLADE_ENV_CATALOG_PATH "GLADE_CATALOG_PATH" #define GLADE_ENV_MODULE_PATH "GLADE_MODULE_PATH" +#define GLADE_ENV_ICON_PATH "GLADE_ICON_PATH"
typedef struct _GladeApp GladeApp; typedef struct _GladeAppPrivate GladeAppPrivate;