gtkscrollbook.h

00001 /*
00002  * @file gtkscrollbook  GTK+ Scrolling notebook Widget
00003  * @ingroup pidgin
00004  */
00005 
00006 /* pidgin
00007  *
00008  * Pidgin is the legal property of its developers, whose names are too numerous
00009  * to list here.  Please refer to the COPYRIGHT file distributed with this
00010  * source distribution.
00011  *
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 2 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00025  */
00026 
00027 #ifndef __PIDGIN_SCROLL_BOOK_H__
00028 #define __PIDGIN_SCROLL_BOOK_H__
00029 
00030 #include <gtk/gtk.h>
00031 
00032 #if !GTK_CHECK_VERSION(2,4,0)
00033 #include "pidgincombobox.h"
00034 #endif
00035 
00036 G_BEGIN_DECLS
00037 
00038 #define PIDGIN_TYPE_SCROLL_BOOK             (pidgin_scroll_book_get_type ())
00039 #define PIDGIN_SCROLL_BOOK(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIDGIN_TYPE_SCROLL_BOOK, PidginScrollBook))
00040 #define PIDGIN_SCROLL_BOOK_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), PIDGIN_TYPE_SCROLL_BOOK, PidginScrollBookClass))
00041 #define PIDGIN_IS_SCROLL_BOOK(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_SCROLL_BOOK))
00042 #define PIDGIN_IS_SCROLL_BOOK_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), PIDGIN_TYPE_SCROLL_BOOK))
00043 #define PIDGIN_SCROLL_BOOK_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), PIDGIN_TYPE_SCROLL_BOOK, PidginScrollBookClass))
00044 
00045 typedef struct _PidginScrollBook      PidginScrollBook;
00046 typedef struct _PidginScrollBookClass PidginScrollBookClass;
00047 
00048 struct _PidginScrollBook
00049 {
00050     GtkVBox parent_instance;
00051 
00052     GtkWidget *notebook;
00053     GtkWidget *hbox;
00054     GtkWidget *label;
00055     GtkWidget *left_arrow;
00056     GtkWidget *right_arrow;
00057     
00058     /* Padding for future expansion */
00059     void (*_gtk_reserved0) (void);
00060     void (*_gtk_reserved1) (void);
00061     void (*_gtk_reserved2) (void);
00062     void (*_gtk_reserved3) (void);
00063 
00064 };
00065 
00066 
00067 struct _PidginScrollBookClass
00068 {
00069     GtkComboBoxClass parent_class;
00070 
00071     /* Padding for future expansion */
00072     void (*_gtk_reserved0) (void);
00073     void (*_gtk_reserved1) (void);
00074     void (*_gtk_reserved2) (void);
00075     void (*_gtk_reserved3) (void);
00076 };
00077 
00078 
00079 GType         pidgin_scroll_book_get_type         (void) G_GNUC_CONST;
00080 GtkWidget    *pidgin_scroll_book_new              (void);
00081 
00082 G_END_DECLS
00083 
00084 #endif  /* __PIDGIN_SCROLL_BOOK_H__ */