Sun, 22 Jul 2007 08:14:16 +0000
revert 'no visible tabs when only one conversation' as it proved unpopular. Made tabs only fill the entire width of the notebook when there's only one tab to avoid http://pidgin.im/~deryni/that_just_looks_dumb.png
| 15094 | 1 | /* |
| 2 | * @file gtkscrollbook GTK+ Scrolling notebook Widget | |
|
16254
eeb2bba4dc94
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@pidgin.im>
parents:
15931
diff
changeset
|
3 | * @ingroup pidgin |
| 15094 | 4 | * |
|
15931
716b5fac1895
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
5 | * pidgin |
| 15094 | 6 | * |
| 15572 | 7 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 15094 | 8 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 9 | * source distribution. | |
| 10 | * | |
| 11 | * This program is free software; you can redistribute it and/or modify | |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 24 | */ | |
| 25 | ||
| 15577 | 26 | #ifndef __PIDGIN_SCROLL_BOOK_H__ |
| 27 | #define __PIDGIN_SCROLL_BOOK_H__ | |
| 15094 | 28 | |
| 29 | #include <gtk/gtk.h> | |
| 30 | ||
|
15320
c4eea0409712
[gaim-migrate @ 18048]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15094
diff
changeset
|
31 | #if !GTK_CHECK_VERSION(2,4,0) |
|
16289
d882d31ebe42
A couple of missed s/purple/pidgin/'s
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16254
diff
changeset
|
32 | #include "pidgincombobox.h" |
|
15320
c4eea0409712
[gaim-migrate @ 18048]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15094
diff
changeset
|
33 | #endif |
| 15094 | 34 | |
| 35 | G_BEGIN_DECLS | |
| 36 | ||
| 15577 | 37 | #define PIDGIN_TYPE_SCROLL_BOOK (pidgin_scroll_book_get_type ()) |
| 38 | #define PIDGIN_SCROLL_BOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIDGIN_TYPE_SCROLL_BOOK, PidginScrollBook)) | |
| 39 | #define PIDGIN_SCROLL_BOOK_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), PIDGIN_TYPE_SCROLL_BOOK, PidginScrollBookClass)) | |
| 40 | #define PIDGIN_IS_SCROLL_BOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_SCROLL_BOOK)) | |
| 41 | #define PIDGIN_IS_SCROLL_BOOK_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), PIDGIN_TYPE_SCROLL_BOOK)) | |
| 42 | #define PIDGIN_SCROLL_BOOK_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), PIDGIN_TYPE_SCROLL_BOOK, PidginScrollBookClass)) | |
| 15094 | 43 | |
| 15577 | 44 | typedef struct _PidginScrollBook PidginScrollBook; |
| 45 | typedef struct _PidginScrollBookClass PidginScrollBookClass; | |
| 15094 | 46 | |
| 15577 | 47 | struct _PidginScrollBook |
| 15094 | 48 | { |
| 49 | GtkVBox parent_instance; | |
| 50 | ||
| 51 | GtkWidget *notebook; | |
| 52 | GtkWidget *hbox; | |
| 53 | GtkWidget *label; | |
| 54 | GtkWidget *left_arrow; | |
| 55 | GtkWidget *right_arrow; | |
| 56 | ||
| 57 | /* Padding for future expansion */ | |
| 58 | void (*_gtk_reserved0) (void); | |
| 59 | void (*_gtk_reserved1) (void); | |
| 60 | void (*_gtk_reserved2) (void); | |
| 61 | void (*_gtk_reserved3) (void); | |
| 62 | ||
| 63 | }; | |
| 64 | ||
| 65 | ||
| 15577 | 66 | struct _PidginScrollBookClass |
| 15094 | 67 | { |
| 68 | GtkComboBoxClass parent_class; | |
| 69 | ||
| 70 | /* Padding for future expansion */ | |
| 71 | void (*_gtk_reserved0) (void); | |
| 72 | void (*_gtk_reserved1) (void); | |
| 73 | void (*_gtk_reserved2) (void); | |
| 74 | void (*_gtk_reserved3) (void); | |
| 75 | }; | |
| 76 | ||
| 77 | ||
| 15577 | 78 | GType pidgin_scroll_book_get_type (void) G_GNUC_CONST; |
| 79 | GtkWidget *pidgin_scroll_book_new (void); | |
| 15094 | 80 | |
| 81 | G_END_DECLS | |
| 82 | ||
| 15577 | 83 | #endif /* __PIDGIN_SCROLL_BOOK_H__ */ |