Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ZenWalker
Glade
Commits
3d7f30d6
Commit
3d7f30d6
authored
Oct 01, 2017
by
Juan Pablo Ugarte
Browse files
GladeApp: add GLADE_ENV_ICON_THEME_PATH
Add env variable to append extra icon theme search paths
parent
8cfd3c7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
gladeui/glade-app.c
View file @
3d7f30d6
...
...
@@ -371,8 +371,22 @@ glade_app_init (GladeApp *app)
if
(
!
initialized
)
{
gtk_icon_theme_append_search_path
(
gtk_icon_theme_get_default
(),
pixmaps_dir
);
GtkIconTheme
*
default_icon_theme
=
gtk_icon_theme_get_default
();
const
gchar
*
path
;
gtk_icon_theme_append_search_path
(
default_icon_theme
,
pixmaps_dir
);
/* Handle extra icon theme paths. Needed for tests to work */
if
((
path
=
g_getenv
(
GLADE_ENV_ICON_THEME_PATH
)))
{
gchar
**
tokens
=
g_strsplit
(
path
,
":"
,
-
1
);
gint
i
;
for
(
i
=
0
;
tokens
[
i
];
i
++
)
gtk_icon_theme_append_search_path
(
default_icon_theme
,
tokens
[
i
]);
g_strfreev
(
tokens
);
}
glade_cursor_init
();
...
...
gladeui/glade-app.h
View file @
3d7f30d6
...
...
@@ -40,6 +40,7 @@ G_BEGIN_DECLS
#define GLADE_ENV_MODULE_PATH "GLADE_MODULE_SEARCH_PATH"
#define GLADE_ENV_TESTING "GLADE_TESTING"
#define GLADE_ENV_PIXMAP_DIR "GLADE_PIXMAP_DIR"
#define GLADE_ENV_ICON_THEME_PATH "GLADE_ICON_THEME_PATH"
#define GLADE_ENV_BUNDLED "GLADE_BUNDLED"
typedef
struct
_GladeApp
GladeApp
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment