diff options
author | John Stebbins <[email protected]> | 2016-08-30 09:51:05 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2016-08-30 09:51:05 -0700 |
commit | a464833a790f44f061f9de42a88f64e49156d422 (patch) | |
tree | 4ae1aeeb0d1e98640efe55c5f9db94a329f0de9f /gtk/src/callbacks.c | |
parent | aed230d055ce0e64dfc0a41e401a7a3e7e7fd7bb (diff) |
LinGui: Add flatpak support (#231)
* LinGui: add --flatpak configure option
For building a linux flatpak bundle
* LinGui: add rules to build flatpak repo and bundles
* LinGui: add flatpak compatible icon
* LinGui: add flatpak compatible desktop file
* LinGui: add flatpak appdata xml
* pkg: disable building LinGui when creating cli flatpak
* pkg: clean flatpak build cache when updating source package
* pkg: fix source package build dependencies
Fixes errors when the git ref being packaged changes and you have not
manually deleted stage and pkg build directories.
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index fb43db137..e70d57f15 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -40,7 +40,7 @@ #if !defined(_WIN32) #include <poll.h> #define G_UDEV_API_IS_SUBJECT_TO_CHANGE 1 -#if defined(__linux__) +#if defined(__linux__) && defined(_HAVE_GUDEV) #include <gudev/gudev.h> #endif #include <dbus/dbus-glib.h> @@ -4406,14 +4406,14 @@ dvd_device_list() return dvd_devices; } -#if defined(__linux__) +#if defined(__linux__) && defined(_HAVE_GUDEV) static GUdevClient *udev_ctx = NULL; #endif gboolean ghb_is_cd(GDrive *gd) { -#if defined(__linux__) +#if defined(__linux__) && defined(_HAVE_GUDEV) gchar *device; GUdevDevice *udd; @@ -4448,7 +4448,7 @@ ghb_is_cd(GDrive *gd) void ghb_udev_init() { -#if defined(__linux__) +#if defined(__linux__) && defined(_HAVE_GUDEV) udev_ctx = g_udev_client_new(NULL); #endif } |