Ardour
9.0-pre0-582-g084a23a80d
base.h
Go to the documentation of this file.
1
// -*- c++ -*-
2
#ifndef _GTKMM_BASE_H
3
#define _GTKMM_BASE_H
4
5
/* $Id$ */
6
7
/* base.h
8
*
9
* Copyright (C) 1998-2002 The gtkmm Development Team
10
*
11
* This library is free software; you can redistribute it and/or
12
* modify it under the terms of the GNU Lesser General Public
13
* License as published by the Free Software Foundation; either
14
* version 2.1 of the License, or (at your option) any later version.
15
*
16
* This library is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* Lesser General Public License for more details.
20
*
21
* You should have received a copy of the GNU Lesser General Public
22
* License along with this library; if not, write to the Free
23
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24
*/
25
26
#include <glibmm/utility.h>
27
#include <glibmm/ustring.h>
28
29
namespace
Gtk
30
{
31
using
Glib::unconst;
32
33
}
34
35
/* This aint pretty, but I don't know a better way to make
36
sure things work when the stl classes are defined in a namespace */
37
38
// Gtk-- Base and other utility classes
39
#define GTK_VERSION_GT(major,minor) ((GTK_MAJOR_VERSION>major)||(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION>minor))
40
#define GTK_VERSION_GE(major,minor) ((GTK_MAJOR_VERSION>major)||(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION>=minor))
41
#define GTK_VERSION_EQ(major,minor) ((GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION==minor))
42
#define GTK_VERSION_NE(major,minor) ((GTK_MAJOR_VERSION!=major)||(GTK_MINOR_VERSION!=minor))
43
#define GTK_VERSION_LE(major,minor) ((GTK_MAJOR_VERSION<major)||(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION<=minor))
44
#define GTK_VERSION_LT(major,minor) ((GTK_MAJOR_VERSION<major)||(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION<minor))
45
46
#define GTK_VERSION_GT_MICRO(major,minor,micro) \
47
((GTK_MAJOR_VERSION>major)|| \
48
(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION>minor)||\
49
(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION==minor)&&(GTK_MICRO_VERSION>minor))
50
51
52
#endif
/* _GTKMM_BASE_H */
53
Gtk
Definition:
ardour_ui.h:188
libs
tk
ytkmm
ytkmm
gtkmm
base.h
Generated on Tue Dec 24 2024 06:07:48 for Ardour by
1.9.1