
committed by
Matthias Clasen

parent
cc53017b3e
commit
30b961c84b
@ -28,7 +28,7 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <glib/gi18n.h>
|
#include <glib/gi18n.h>
|
||||||
#include <gio/gio.h>
|
#include <gio/gio.h>
|
||||||
#ifdef G_OS_UNIX
|
#if defined(HAVE_GIO_UNIX) && !defined(__APPLE__)
|
||||||
#include <gio/gdesktopappinfo.h>
|
#include <gio/gdesktopappinfo.h>
|
||||||
#endif
|
#endif
|
||||||
#include <gtk.h>
|
#include <gtk.h>
|
||||||
@ -119,7 +119,7 @@ main (int argc, char *argv[])
|
|||||||
gtk_init (&argc, &argv);
|
gtk_init (&argc, &argv);
|
||||||
|
|
||||||
app_name = *args;
|
app_name = *args;
|
||||||
#ifdef G_OS_UNIX
|
#if defined(HAVE_GIO_UNIX) && !defined(__APPLE__)
|
||||||
bus_name = g_strdup (app_name);
|
bus_name = g_strdup (app_name);
|
||||||
if (g_str_has_suffix (app_name, ".desktop"))
|
if (g_str_has_suffix (app_name, ".desktop"))
|
||||||
{
|
{
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "gtksettings.h"
|
#include "gtksettings.h"
|
||||||
#include "gtkshortcutswindowprivate.h"
|
#include "gtkshortcutswindowprivate.h"
|
||||||
|
|
||||||
#ifdef HAVE_GIO_UNIX
|
#if defined(HAVE_GIO_UNIX) && !defined(__APPLE__)
|
||||||
#include <gio/gdesktopappinfo.h>
|
#include <gio/gdesktopappinfo.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -278,7 +278,7 @@ gtk_application_window_get_app_desktop_name (void)
|
|||||||
{
|
{
|
||||||
gchar *retval = NULL;
|
gchar *retval = NULL;
|
||||||
|
|
||||||
#ifdef HAVE_GIO_UNIX
|
#if defined(HAVE_GIO_UNIX) && !defined(__APPLE__)
|
||||||
GDesktopAppInfo *app_info;
|
GDesktopAppInfo *app_info;
|
||||||
const gchar *app_name = NULL;
|
const gchar *app_name = NULL;
|
||||||
gchar *desktop_file;
|
gchar *desktop_file;
|
||||||
|
Reference in New Issue
Block a user