2 * @file gtklog.h GTK+ Log viewer
4 * @see @ref gtklog-signals
9 * Pidgin is the legal property of its developers, whose names are too numerous
10 * to list here. Please refer to the COPYRIGHT file distributed with this
11 * source distribution.
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
35 typedef struct _PidginLogViewer PidginLogViewer
;
38 * A GTK+ Log Viewer. You can look at logs with it.
40 struct _PidginLogViewer
{
41 GList
*logs
; /**< The list of logs viewed in this viewer */
43 GtkWidget
*window
; /**< The viewer's window */
44 GtkTreeStore
*treestore
; /**< The treestore containing said logs */
45 GtkWidget
*treeview
; /**< The treeview representing said treestore */
46 GtkWidget
*imhtml
; /**< The imhtml to display said logs */
47 GtkWidget
*entry
; /**< The search entry, in which search terms
49 PurpleLogReadFlags flags
; /**< The most recently used log flags */
50 char *search
; /**< The string currently being searched for */
51 GtkWidget
*label
; /**< The label at the top of the log viewer */
56 void pidgin_log_show(PurpleLogType type
, const char *buddyname
, PurpleAccount
*account
);
57 void pidgin_log_show_contact(PurpleContact
*contact
);
59 void pidgin_syslog_show(void);
61 /**************************************************************************/
62 /** @name GTK+ Log Subsystem */
63 /**************************************************************************/
67 * Initializes the GTK+ log subsystem.
69 void pidgin_log_init(void);
72 * Returns the GTK+ log subsystem handle.
74 * @return The GTK+ log subsystem handle.
76 void *pidgin_log_get_handle(void);
79 * Uninitializes the GTK+ log subsystem.
81 void pidgin_log_uninit(void);