gnome-control-center/panels/common/gnome-settings-bus.h
Georges Basile Stavracas Neto 59bdf81028 common: Port to GTK4
This is only the bare minimum to make everything under panels/common
build. Since these widgets are used by the main window, port them
first.

CcTimeEntry was particularly hard to port. That's because GtkEntry
is a final class now. Overall, though, I'm happy with how it turned
out to be - much cleaner, less code, more obvious.
2021-12-14 22:34:21 -03:00

14 lines
291 B
C

/* Stub to replace gnome-settings-daemon's
* gnome-settings-bus.h helpers */
#include <gdk/x11/gdkx.h>
#ifdef GDK_WINDOWING_WAYLAND
static inline gboolean
gnome_settings_is_wayland (void)
{
return !GDK_IS_X11_DISPLAY (gdk_display_get_default ());
}
#endif /* GDK_WINDOWING_WAYLAND */