1 /* -*- Mode: C; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 3 -*- */
2 
3 /*
4  * GImageView
5  * Copyright (C) 2001 Takuro Ashie
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20  *
21  * $Id: gimv_vpaned.h,v 1.3 2004/03/07 11:53:31 makeinu Exp $
22  */
23 
24 /*
25  * These codes are taken from gThumb.
26  * gThumb code Copyright (C) 2001 The Free Software Foundation, Inc.
27  * gThumb author: Paolo Bacchilega
28  */
29 
30 #ifndef __GIMV_VPANED_H__
31 #define __GIMV_VPANED_H__
32 
33 #ifdef HAVE_CONFIG_H
34 #  include "config.h"
35 #endif
36 
37 #include <gdk/gdk.h>
38 #include "gimv_paned.h"
39 
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif /* __cplusplus */
44 
45 
46 #ifndef USE_NORMAL_PANED
47 
48 #define GIMV_VPANED(obj)          GTK_CHECK_CAST (obj, gimv_vpaned_get_type (), GimvVPaned)
49 #define GIMV_VPANED_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, gimv_vpaned_get_type (), GimvVPanedClass)
50 #define GIMV_IS_VPANED(obj)       GTK_CHECK_TYPE (obj, gimv_vpaned_get_type ())
51 
52 
53 typedef struct _GimvVPaned       GimvVPaned;
54 typedef struct _GimvVPanedClass  GimvVPanedClass;
55 
56 struct _GimvVPaned
57 {
58    GimvPaned paned;
59 };
60 
61 struct _GimvVPanedClass
62 {
63    GimvPanedClass parent_class;
64 };
65 
66 
67 GtkType    gimv_vpaned_get_type (void);
68 GtkWidget* gimv_vpaned_new      (void);
69 
70 #else /* USE_NORMAL_PANED */
71 
72 #include <gtk/gtkvpaned.h>
73 
74 #define GimvVPaned GtkVPaned
75 #define gimv_vpaned_new() gtk_vpaned_new()
76 
77 #endif /* USE_NORMAL_PANED */
78 
79 
80 #ifdef __cplusplus
81 }
82 #endif /* __cplusplus */
83 
84 
85 #endif /* __GIMV_VPANED_H__ */
86