Mon, 09 Jun 2008 19:31:43 +0000
Do not disable default smileys with dupliate shortcuts if custom smileys
are not supported by the prpl. Also, show the text of the disabled smiley
in the tooltip.
And use _prepend and _reverse, instead of _append for GLists, since some
people apparently have hundreds of custom smileys.
Closes #6057.
committer: Sadrul Habib Chowdhury <sadrul@pidgin.im>
| 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 |
|
20890
c4253dc37ac0
ChangeLog by resiak@soc.pidgin.im:
Will Thompson <resiak@pidgin.im>
parents:
20147
diff
changeset
|
4 | * @see @ref gtklog-signals |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
5 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
6 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
7 | /* pidgin |
| 7432 | 8 | * |
| 15572 | 9 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 8046 | 10 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 11 | * source distribution. | |
| 7432 | 12 | * |
| 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. | |
| 17 | * | |
| 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. | |
| 22 | * | |
| 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 | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16254
diff
changeset
|
25 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 7432 | 26 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
27 | #ifndef _PIDGINLOG_H_ |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
28 | #define _PIDGINLOG_H_ |
| 7432 | 29 | |
| 15577 | 30 | #include "pidgin.h" |
| 7432 | 31 | #include "log.h" |
| 32 | ||
| 33 | #include "account.h" | |
| 34 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
35 | typedef struct _PidginLogViewer PidginLogViewer; |
|
14861
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
36 | |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
37 | /** |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
38 | * A GTK+ Log Viewer. You can look at logs with it. |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
39 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
40 | struct _PidginLogViewer { |
|
14861
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
41 | GList *logs; /**< The list of logs viewed in this viewer */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
42 | |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
43 | GtkWidget *window; /**< The viewer's window */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
44 | GtkTreeStore *treestore; /**< The treestore containing said logs */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
45 | GtkWidget *treeview; /**< The treeview representing said treestore */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
46 | GtkWidget *imhtml; /**< The imhtml to display said logs */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
47 | GtkWidget *entry; /**< The search entry, in which search terms |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
48 | * are entered */ |
| 15884 | 49 | PurpleLogReadFlags flags; /**< The most recently used log flags */ |
|
14861
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
50 | char *search; /**< The string currently being searched for */ |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
51 | GtkWidget *label; /**< The label at the top of the log viewer */ |
|
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 | |
|
343d4b6772c8
[gaim-migrate @ 17564]
Richard Laager <rlaager@pidgin.im>
parents:
14401
diff
changeset
|
54 | |
|
21653
621c47778132
merge of '73ae9aeda3c58fbf8437421da68d19d06f93e686'
Evan Schoenberg <evands@pidgin.im>
parents:
21223
diff
changeset
|
55 | |
|
20702
9548d4fb8c8e
Re-worked gtklog functions and perl bindings
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
56 | void pidgin_log_show(PurpleLogType type, const char *screenname, PurpleAccount *account); |
|
9548d4fb8c8e
Re-worked gtklog functions and perl bindings
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
57 | void pidgin_log_show_contact(PurpleContact *contact); |
|
21215
775a49fdc926
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents:
21169
diff
changeset
|
58 | |
|
20702
9548d4fb8c8e
Re-worked gtklog functions and perl bindings
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
59 | void pidgin_syslog_show(void); |
| 12674 | 60 | |
|
12838
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 | /** @name GTK+ Log Subsystem */ |
|
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 | |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
66 | /** |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
67 | * Initializes the GTK+ log subsystem. |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
68 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
69 | void pidgin_log_init(void); |
|
12838
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
70 | |
|
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 | * Returns the GTK+ log subsystem handle. |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
73 | * |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
74 | * @return The GTK+ log subsystem handle. |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
75 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
76 | void *pidgin_log_get_handle(void); |
|
12838
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
77 | |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
78 | /** |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
79 | * Uninitializes the GTK+ log subsystem. |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
80 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
81 | void pidgin_log_uninit(void); |
|
12838
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
82 | |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
83 | /*@}*/ |
|
5c6f36abeee8
[gaim-migrate @ 15186]
Richard Laager <rlaager@pidgin.im>
parents:
12674
diff
changeset
|
84 | |
| 12674 | 85 | #endif |