~lubuntu-dev/lxde/lxpanel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * Copyright (C) 2014-2016 Andriy Grytsenko <andrej@rep.kiev.ua>
 *
 * This file is a part of LXPanel project.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef __GTK_COMPAT_H__
#define __GTK_COMPAT_H__ 1

/* compatibility things */
#if !GTK_CHECK_VERSION(2, 20, 0)
#  define  gtk_widget_get_realized      GTK_WIDGET_REALIZED
#  define  gtk_widget_get_mapped        GTK_WIDGET_MAPPED
#endif

#if !GTK_CHECK_VERSION(2, 21, 0)
#  define  GDK_KEY_Tab                  GDK_Tab
#  define  GDK_KEY_space                GDK_space
#  define  GDK_KEY_Return               GDK_Return
#  define  GDK_KEY_KP_Enter             GDK_KP_Enter
#  define  GDK_KEY_BackSpace            GDK_BackSpace
#endif

#if !GTK_CHECK_VERSION(2, 22, 0)
#  define  gtk_button_get_event_window(a)  a->event_window
#  define  gdk_visual_get_depth(a)      a->depth
#endif

#if !GTK_CHECK_VERSION(2, 24, 0)
#  define  gdk_window_get_screen        gdk_drawable_get_screen
#endif

#if GTK_CHECK_VERSION(3, 0, 0)
#  define  GTK_DIALOG_NO_SEPARATOR      0
#endif

#endif