osx: fix build

https://bugzilla.gnome.org/show_bug.cgi?id=734946
This commit is contained in:
Christoph Reiter 2017-03-14 21:00:37 +01:00 committed by Matthias Clasen
parent cc53017b3e
commit 30b961c84b
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@
#include <glib.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
#ifdef G_OS_UNIX
#if defined(HAVE_GIO_UNIX) && !defined(__APPLE__)
#include <gio/gdesktopappinfo.h>
#endif
#include <gtk.h>
@ -119,7 +119,7 @@ main (int argc, char *argv[])
gtk_init (&argc, &argv);
app_name = *args;
#ifdef G_OS_UNIX
#if defined(HAVE_GIO_UNIX) && !defined(__APPLE__)
bus_name = g_strdup (app_name);
if (g_str_has_suffix (app_name, ".desktop"))
{

View File

@ -30,7 +30,7 @@
#include "gtksettings.h"
#include "gtkshortcutswindowprivate.h"
#ifdef HAVE_GIO_UNIX
#if defined(HAVE_GIO_UNIX) && !defined(__APPLE__)
#include <gio/gdesktopappinfo.h>
#endif
@ -278,7 +278,7 @@ gtk_application_window_get_app_desktop_name (void)
{
gchar *retval = NULL;
#ifdef HAVE_GIO_UNIX
#if defined(HAVE_GIO_UNIX) && !defined(__APPLE__)
GDesktopAppInfo *app_info;
const gchar *app_name = NULL;
gchar *desktop_file;