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