[gnumeric] Icons: don't add icon path if we don't have a gui.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Icons: don't add icon path if we don't have a gui.
- Date: Sat, 27 Dec 2014 23:25:38 +0000 (UTC)
commit 276bffcc6776df9343a4f4b99b52cadb023764b5
Author: Morten Welinder <terra gnome org>
Date: Sat Dec 27 18:24:41 2014 -0500
Icons: don't add icon path if we don't have a gui.
src/libgnumeric.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/libgnumeric.c b/src/libgnumeric.c
index e8e8955..9941710 100644
--- a/src/libgnumeric.c
+++ b/src/libgnumeric.c
@@ -298,8 +298,11 @@ gnm_init (void)
libgoffice_init ();
_gnm_register_resource ();
- gtk_icon_theme_add_resource_path (gtk_icon_theme_get_default (),
- "/org/gnumeric/gnumeric/icons");
+ if (gdk_screen_get_default ()) {
+ /* Only when we have a gui. */
+ gtk_icon_theme_add_resource_path (gtk_icon_theme_get_default (),
+ "/org/gnumeric/gnumeric/icons");
+ }
gnm_register_ui_files ();
gnm_register_imgs_files ();
go_plugin_service_define ("function_group",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]