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
| 7432 | 1 | /** |
| 2 | * @file gtklog.h GTK+ Log viewer | |
|
16254
eeb2bba4dc94
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@pidgin.im>
parents:
15931
diff
changeset
|
3 | * @ingroup pidgin |
| 7432 | 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 |
| 7432 | 6 | * |
| 15572 | 7 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 8046 | 8 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 9 | * source distribution. | |
| 7432 | 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 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
25 | #ifndef _PIDGINLOG_H_ |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
26 | #define _PIDGINLOG_H_ |
| 7432 | 27 | |
| 15577 | 28 | #include "pidgin.h" |
| 7432 | 29 | #include "log.h" |
| 30 | ||
| 31 | #include "account.h" | |
| 32 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
33 | typedef struct _PidginLogViewer PidginLogViewer; |
|
14861
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
34 | |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
35 | /** |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
36 | * A GTK+ Log Viewer. You can look at logs with it. |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
37 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
38 | struct _PidginLogViewer { |
|
14861
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
39 | GList *logs; /**< The list of logs viewed in this viewer */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
40 | |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
41 | GtkWidget *window; /**< The viewer's window */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
42 | GtkTreeStore *treestore; /**< The treestore containing said logs */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
43 | GtkWidget *treeview; /**< The treeview representing said treestore */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
44 | GtkWidget *imhtml; /**< The imhtml to display said logs */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
45 | GtkWidget *entry; /**< The search entry, in which search terms |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
46 | * are entered */ |
| 15884 | 47 | PurpleLogReadFlags flags; /**< The most recently used log flags */ |
|
14861
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
48 | char *search; /**< The string currently being searched for */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
49 | GtkWidget *label; /**< The label at the top of the log viewer */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
50 | }; |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
51 | |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
52 | |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
53 | |
| 15884 | 54 | void pidgin_log_show(PurpleLogType type, const char *screenname, PurpleAccount *account); |
| 55 | void pidgin_log_show_contact(PurpleContact *contact); | |
|
8574
bb17814fbeb7
[gaim-migrate @ 9322]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
56 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
57 | void pidgin_syslog_show(void); |
| 12674 | 58 | |
|
12838
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
59 | /**************************************************************************/ |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
60 | /** @name GTK+ Log Subsystem */ |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
61 | /**************************************************************************/ |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
62 | /*@{*/ |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
63 | |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
64 | /** |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
65 | * Initializes the GTK+ log subsystem. |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
66 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
67 | void pidgin_log_init(void); |
|
12838
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
68 | |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
69 | /** |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
70 | * Returns the GTK+ log subsystem handle. |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
71 | * |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
72 | * @return The GTK+ log subsystem handle. |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
73 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
74 | void *pidgin_log_get_handle(void); |
|
12838
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
75 | |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
76 | /** |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
77 | * Uninitializes the GTK+ log subsystem. |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
78 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
79 | void pidgin_log_uninit(void); |
|
12838
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
80 | |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
81 | /*@}*/ |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
82 | |
| 12674 | 83 | #endif |