Commit 30b961c8 authored by Christoph Reiter's avatar Christoph Reiter 🐍 Committed by Matthias Clasen
parent cc53017b
......@@ -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"))
{
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment