File: gseal-gtk-compat.h

package info (click to toggle)
pcmanfm 1.2.3-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,732 kB
  • ctags: 1,024
  • sloc: ansic: 12,335; sh: 1,254; makefile: 104
file content (78 lines) | stat: -rw-r--r-- 3,175 bytes parent folder | download | duplicates (5)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
/*
 *  Copyright © 2009 Thomas H.P. Andersen <phomes@gmail.com>,
 *              2009 Javier Jardón <jjardon@gnome.org>
 *
 *  This runtime is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation; either version 2.1, or (at your option)
 *  any later version.
 *
 *  This runtime is distributed in the hope runtime 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 Lesser General Public License
 *  along with this runtime; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef GSEAL_GTK_COMPAT_H
#define GSEAL_GTK_COMPAT_H

G_BEGIN_DECLS

#if !GTK_CHECK_VERSION(2, 22, 0)
#  define gdk_drag_context_get_actions(drag_context) \
        drag_context->actions
#  define gtk_accessible_get_widget(accessible) accessible->widget
#endif /* GTK < 2.22.0 */

#if !GTK_CHECK_VERSION(2, 21, 0)
#define GDK_KEY_BackSpace                       GDK_BackSpace
#define GDK_KEY_Tab                             GDK_Tab
#define GDK_KEY_ISO_Left_Tab                    GDK_ISO_Left_Tab
#define GDK_KEY_Page_Down                       GDK_Page_Down
#define GDK_KEY_Page_Up                         GDK_Page_Up
#define GDK_KEY_Escape                          GDK_Escape
#define GDK_KEY_Left                            GDK_Left
#define GDK_KEY_Right                           GDK_Right
#define GDK_KEY_Up                              GDK_Up
#define GDK_KEY_KP_Up                           GDK_KP_Up
#define GDK_KEY_Down                            GDK_Down
#define GDK_KEY_KP_Down                         GDK_KP_Down
#define GDK_KEY_space                           GDK_space
#define GDK_KEY_F2                              GDK_F2
#define GDK_KEY_Return                          GDK_Return
#define GDK_KEY_ISO_Enter                       GDK_ISO_Enter
#define GDK_KEY_KP_Enter                        GDK_KP_Enter
#define GDK_KEY_G                               GDK_G
#define GDK_KEY_g                               GDK_g
#define GDK_KEY_F                               GDK_F
#define GDK_KEY_f                               GDK_f
#endif

#if !GTK_CHECK_VERSION (2, 20, 0)
#define gtk_widget_get_mapped(widget)           GTK_WIDGET_MAPPED(widget)
#define gtk_widget_get_realized(widget)         GTK_WIDGET_REALIZED(widget)
#endif /* GTK < 2.20.0 */

#if !GTK_CHECK_VERSION (2, 18, 0)
#define gtk_widget_has_focus(widget)            GTK_WIDGET_HAS_FOCUS(widget)
#define gtk_widget_get_visible(widget)          GTK_WIDGET_VISIBLE(widget)
#endif /* GTK+ < 2.18.0 */

#if !GLIB_CHECK_VERSION(2, 28, 0)
/* This API was added in glib 2.28 */
#define g_list_free_full(list, free_func)       \
{ \
g_list_foreach(list, (GFunc)free_func, NULL); \
g_list_free(list); \
}
#endif

G_END_DECLS

#endif /* GSEAL_GTK_COMPAT_H */
/* ex:ts=8:noet: */