mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-01 13:10:35 +00:00
Fix compilation with older gtk+
gtk_widget_get_mapped is only available in gtk+ 2.20, so we need a compat definition for older releases.
This commit is contained in:
parent
0f737b4e9d
commit
a5180d34e7
@ -24,10 +24,15 @@
|
||||
#ifndef _VIRT_GTK_COMPAT
|
||||
# define _VIRT_GTK_COMPAT
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdk.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#if !GTK_CHECK_VERSION(2, 20, 0)
|
||||
#define gtk_widget_get_mapped(w) GTK_WIDGET_MAPPED(w)
|
||||
#endif
|
||||
|
||||
#if GTK_CHECK_VERSION(3, 0, 0)
|
||||
#define GDK_Control_L GDK_KEY_Control_L
|
||||
#define GDK_Alt_L GDK_KEY_Alt_L
|
||||
|
||||
@ -27,6 +27,7 @@
|
||||
#include <locale.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "virt-gtk-compat.h"
|
||||
#include "virt-viewer-session.h"
|
||||
#include "virt-viewer-display.h"
|
||||
#include "virt-viewer-util.h"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user