[gnome-panel] menu: don't use XDG_MENU_PREFIX if empty
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] menu: don't use XDG_MENU_PREFIX if empty
- Date: Fri, 31 Oct 2014 18:31:41 +0000 (UTC)
commit 2c2279a4b0e20eb818e451c930cb01b11156257e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Oct 31 20:31:21 2014 +0200
menu: don't use XDG_MENU_PREFIX if empty
gnome-panel/menu.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/menu.c b/gnome-panel/menu.c
index 9c5b67b..f6318dd 100644
--- a/gnome-panel/menu.c
+++ b/gnome-panel/menu.c
@@ -28,6 +28,7 @@
#include <gio/gio.h>
#include <gdk/gdkkeysyms.h>
+#include <libpanel-util/panel-glib.h>
#include <libpanel-util/panel-keyfile.h>
#include <libpanel-util/panel-xdg.h>
@@ -1496,5 +1497,5 @@ get_applications_menu (void)
{
const gchar *xdg_menu_prefx = g_getenv ("XDG_MENU_PREFIX");
return g_strdup_printf ("%sapplications.menu",
- xdg_menu_prefx ? xdg_menu_prefx : "gnome-");
+ !PANEL_GLIB_STR_EMPTY (xdg_menu_prefx) ? xdg_menu_prefx : "gnome-");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]