2011-10-07 [colin] 3.7.10cvs23
[claws.git] / src / gtk / gtkshruler.h
1 /* GTKSHRuler
2  * Copyright (C) 2000-2011 Alfons Hoogervorst & The Claws Mail Team
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 3 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  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 #ifndef __GTK_SHRULER_H__
19 #define __GTK_SHRULER_H__
20
21
22 #include <gdk/gdk.h>
23 #include <gtk/gtk.h>
24
25 #if !GTK_CHECK_VERSION(2,24,0)
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30
31
32 #define GTK_SHRULER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), gtk_shruler_get_type (), GtkSHRuler))
33 #define GTK_SHRULER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), gtk_shruler_get_type (), GtkSHRulerClass))
34 #define GTK_IS_SHRULER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), gtk_shruler_get_type ()))
35
36
37 typedef struct _GtkSHRuler        GtkSHRuler;
38 typedef struct _GtkSHRulerClass   GtkSHRulerClass;
39
40 struct _GtkSHRuler
41 {
42         GtkHRuler ruler;
43 };
44
45 struct _GtkSHRulerClass
46 {
47         GtkHRulerClass parent_class;
48 };
49
50
51 GType      gtk_shruler_get_type (void);
52 GtkWidget* gtk_shruler_new      (void);
53
54 #ifdef __cplusplus
55 }
56 #endif /* __cplusplus */
57
58
59 #endif /* __GTK_SHRULER_H__ */
60 #endif