gtkscrollbook.h

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