Sun, 01 Aug 2004 17:12:13 +0000
[gaim-migrate @ 10477]
[ gaim-Bugs-847795 ] HTML log files not closed properly on exit
The fix is twofold. First, make gaim_conversations_uninit, destroy conversation
windows. Second, reorder things in core_quit, to keep plugins loaded until the
end and to keep the gtk main loop from quitting until after everything else
is uninitialized.
|
6208
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
1 | /* |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
2 | * System tray icon (aka docklet) plugin for Gaim |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
3 | * |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
4 | * Copyright (C) 2002-3 Robert McQueen <robot101@debian.org> |
| 6077 | 5 | * Copyright (C) 2003 Herman Bloggs <hermanator12002@yahoo.com> |
| 6 | * Inspired by a similar plugin by: | |
| 7 | * John (J5) Palmieri <johnp@martianrock.com> | |
| 8 | * | |
| 9 | * This program is free software; you can redistribute it and/or | |
| 10 | * modify it under the terms of the GNU General Public License as | |
| 11 | * published by the Free Software Foundation; either version 2 of the | |
| 12 | * License, or (at your option) any later version. | |
| 13 | * | |
| 14 | * This program is distributed in the hope that it will be useful, but | |
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 17 | * General Public License for more details. | |
| 18 | * | |
| 19 | * You should have received a copy of the GNU General Public License | |
| 20 | * along with this program; if not, write to the Free Software | |
| 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
| 22 | * 02111-1307, USA. | |
| 23 | */ | |
|
6208
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
24 | |
| 6077 | 25 | #ifndef _DOCKLET_H_ |
| 26 | #define _DOCKLET_H_ | |
| 27 | ||
|
6208
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
28 | enum docklet_status |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
29 | { |
| 6077 | 30 | offline, |
| 31 | offline_connecting, | |
| 32 | online, | |
| 33 | online_connecting, | |
| 34 | online_pending, | |
| 35 | away, | |
| 36 | away_pending | |
| 37 | }; | |
| 38 | ||
|
6208
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
39 | struct docklet_ui_ops |
| 6077 | 40 | { |
| 41 | void (*create)(); | |
| 42 | void (*destroy)(); | |
| 43 | void (*update_icon)(enum docklet_status); | |
|
6894
8c6e286b079d
[gaim-migrate @ 7441]
Herman Bloggs <herman@bluedigits.com>
parents:
6208
diff
changeset
|
44 | void (*blank_icon)(); |
| 6077 | 45 | }; |
| 46 | ||
|
6208
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
47 | /* useful for setting idle callbacks that will be cleaned up */ |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
48 | extern GaimPlugin *handle; |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
49 | |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
50 | /* functions in docklet.c */ |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
51 | extern void docklet_clicked(int); |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
52 | extern void docklet_embedded(); |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
53 | extern void docklet_remove(gboolean); |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
54 | extern void docklet_set_ui_ops(struct docklet_ui_ops *); |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
55 | |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
56 | /* function in docklet-{x11,win32}.c */ |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
57 | extern void docklet_ui_init(); |
| 6077 | 58 | |
| 59 | #endif /* _DOCKLET_H_ */ |