]> Pileus Git - ~andy/gtk/blob - gtk/gtkcompat.h.in
applied patch from Andreas Persenius <ndap@swipnet.se> that updates the
[~andy/gtk] / gtk / gtkcompat.h.in
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 /*
21  * Modified by the GTK+ Team and others 1997-1999.  See the AUTHORS
22  * file for a list of people on the GTK+ Team.  See the ChangeLog
23  * files for a list of changes.  These files are distributed with
24  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
25  */
26
27 #ifndef __GTK_COMPAT_H__
28 #define __GTK_COMPAT_H__
29
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif /* __cplusplus */
34
35
36 /* compile time version
37  */
38 #define GTK_MAJOR_VERSION                               (@GTK_MAJOR_VERSION@)
39 #define GTK_MINOR_VERSION                               (@GTK_MINOR_VERSION@)
40 #define GTK_MICRO_VERSION                               (@GTK_MICRO_VERSION@)
41 #define GTK_BINARY_AGE                                  (@GTK_BINARY_AGE@)
42 #define GTK_INTERFACE_AGE                               (@GTK_INTERFACE_AGE@)
43
44 /* check whether a Gtk+ version equal to or greater than
45  * major.minor.micro is present.
46  */
47 #define GTK_CHECK_VERSION(major,minor,micro)    \
48     (GTK_MAJOR_VERSION > (major) || \
49      (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION > (minor)) || \
50      (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION == (minor) && \
51       GTK_MICRO_VERSION >= (micro)))
52
53
54 /* use -DGTK_DISABLE_COMPAT_H to compile your code and asure that it
55  * works with future Gtk+ versions as well.
56  */
57 #ifndef GTK_DISABLE_COMPAT_H
58
59 /* the following are aliases that have to be kept for historical
60  * reasons, because a wide code base depends on them. it is not
61  * recommended to actually make use of these definitions.
62  */
63 #define gtk_accel_label_accelerator_width       gtk_accel_label_get_accel_width
64 #define gtk_container_border_width              gtk_container_set_border_width
65 #define gtk_notebook_current_page               gtk_notebook_get_current_page
66 #define gtk_packer_configure                    gtk_packer_set_child_packing
67 #define gtk_paned_gutter_size(p,s)              (void) 0
68 #define gtk_paned_set_gutter_size(p,s)          (void) 0
69 #define gtk_paned_handle_size                   gtk_paned_set_handle_size
70 #define gtk_scale_value_width                   gtk_scale_get_value_width
71 #define gtk_window_position                     gtk_window_set_position
72 #define gtk_toggle_button_set_state             gtk_toggle_button_set_active
73 #define gtk_check_menu_item_set_state           gtk_check_menu_item_set_active
74
75
76 /* strongly deprecated, very likely to be removed in the future:
77  */
78 #define gtk_ctree_set_reorderable(t,r)                    gtk_clist_set_reorderable((GtkCList*) (t),(r))
79 #define gtk_style_apply_default_pixmap(s,gw,st,a,x,y,w,h) gtk_style_apply_default_background (s,gw,1,st,a,x,y,w,h)
80 #define GTK_HAVE_CONTAINER_FOCUS_ADJUSTMENTS            1-0-1
81 #define GTK_HAVE_SIGNAL_INIT                            1-0-2
82 #define GTK_HAVE_FEATURES_1_1_0                         1-1-0
83 #define GTK_HAVE_FEATURES_1_1_2                         1-1-2
84 #define GTK_HAVE_FEATURES_1_1_4                         1-1-4
85 #define GTK_HAVE_FEATURES_1_1_5                         1-1-5
86 #define GTK_HAVE_FEATURES_1_1_6                         1-1-6
87 #define GTK_HAVE_FEATURES_1_1_7                         1-1-7
88 #define GTK_HAVE_FEATURES_1_1_8                         1-1-8
89 #define GTK_HAVE_FEATURES_1_1_9                         1-1-9
90 #define GTK_HAVE_FEATURES_1_1_10                        1-1-10
91 #define GTK_HAVE_FEATURES_1_1_11                        1-1-11
92 #define GTK_HAVE_FEATURES_1_1_12                        1-1-12
93 #define GTK_HAVE_FEATURES_1_1_13                        1-1-13
94 #define GTK_HAVE_FEATURES_1_1_14                        1-1-14
95
96
97 #endif  /* GTK_DISABLE_COMPAT_H */
98
99
100
101 #ifdef __cplusplus
102 }
103 #endif /* __cplusplus */
104
105
106 #endif /* __GTK_COMPAT_H__ */