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 G_BEGIN_DECLS
00033 
00034 #define PIDGIN_TYPE_SCROLL_BOOK             (pidgin_scroll_book_get_type ())
00035 #define PIDGIN_SCROLL_BOOK(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIDGIN_TYPE_SCROLL_BOOK, PidginScrollBook))
00036 #define PIDGIN_SCROLL_BOOK_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), PIDGIN_TYPE_SCROLL_BOOK, PidginScrollBookClass))
00037 #define PIDGIN_IS_SCROLL_BOOK(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_SCROLL_BOOK))
00038 #define PIDGIN_IS_SCROLL_BOOK_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), PIDGIN_TYPE_SCROLL_BOOK))
00039 #define PIDGIN_SCROLL_BOOK_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), PIDGIN_TYPE_SCROLL_BOOK, PidginScrollBookClass))
00040 
00041 typedef struct _PidginScrollBook      PidginScrollBook;
00042 typedef struct _PidginScrollBookClass PidginScrollBookClass;
00043 
00044 struct _PidginScrollBook
00045 {
00046     GtkVBox parent_instance;
00047 
00048     GtkWidget *notebook;
00049     GtkWidget *hbox;
00050     GtkWidget *label;
00051     GtkWidget *left_arrow;
00052     GtkWidget *right_arrow;
00053     GList *children;
00054     
00055     /* Padding for future expansion */
00056     void (*_gtk_reserved1) (void);
00057     void (*_gtk_reserved2) (void);
00058     void (*_gtk_reserved3) (void);
00059 
00060 };
00061 
00062 
00063 struct _PidginScrollBookClass
00064 {
00065     GtkContainerClass parent_class;
00066 
00067     /* Padding for future expansion */
00068     void (*_gtk_reserved0) (void);
00069     void (*_gtk_reserved1) (void);
00070     void (*_gtk_reserved2) (void);
00071     void (*_gtk_reserved3) (void);
00072 };
00073 
00074 
00075 GType         pidgin_scroll_book_get_type         (void) G_GNUC_CONST;
00076 GtkWidget    *pidgin_scroll_book_new              (void);
00077 
00078 G_END_DECLS
00079 
00080 #endif  /* __PIDGIN_SCROLL_BOOK_H__ */