[gtk+/gtk-3-22] osx: fix build



commit 30b961c84b7788d1079aae93665097c405695bb6
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Tue Mar 14 21:00:37 2017 +0100

    osx: fix build
    
    https://bugzilla.gnome.org/show_bug.cgi?id=734946

 gtk/gtk-launch.c           |    4 ++--
 gtk/gtkapplicationwindow.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtk-launch.c b/gtk/gtk-launch.c
index ab00500..ccf1bd8 100644
--- a/gtk/gtk-launch.c
+++ b/gtk/gtk-launch.c
@@ -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"))
     {
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index 3e1e969..20f2abd 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]