Mercurial > pidgin
annotate finch/gntui.c @ 27026:53294b47a4a6
Fix an issue with the server responding with jid/node items as first-level children and add a TODO.
That bug was revealed by ejabberd returning the ad-hoc commands
(with no way to identify them as such) as children of the domain.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Thu, 04 Jun 2009 01:51:41 +0000 |
parents | 49b7044be3de |
children | f7c5bb2f6623 |
rev | line source |
---|---|
15817 | 1 /** |
15870
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15822
diff
changeset
|
2 * finch |
15817 | 3 * |
15870
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15822
diff
changeset
|
4 * Finch is the legal property of its developers, whose names are too numerous |
15817 | 5 * to list here. Please refer to the COPYRIGHT file distributed with this |
6 * source distribution. | |
7 * | |
8 * This program is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this program; if not, write to the Free Software | |
19681
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19655
diff
changeset
|
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15817 | 21 */ |
22218
5152a14d06a3
Include finch.h from these files, instead of internal.h.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22024
diff
changeset
|
22 #include "finch.h" |
18210
b8572b937c09
#include reorganizations to allow compiling with glib < 2.8 using the
Stu Tomlinson <stu@nosnilmot.com>
parents:
15870
diff
changeset
|
23 |
26347
1c73d2ef9ddc
Remove some extra edits that snuck into Finch.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
24 #include "gntui.h" |
15817 | 25 |
26 #include "gntaccount.h" | |
27 #include "gntblist.h" | |
19516
e1751162ab1f
Add certificate UI in finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19117
diff
changeset
|
28 #include "gntcertmgr.h" |
15817 | 29 #include "gntconn.h" |
30 #include "gntconv.h" | |
31 #include "gntdebug.h" | |
32 #include "gntft.h" | |
22248
88796aff14d6
Add a finch log viewer. This is largely copied from Pidgin.
Richard Nelson <wabz@pidgin.im>
parents:
22218
diff
changeset
|
33 #include "gntlog.h" |
23789
128f6cb57829
Some media support in finch. This needs to be updated for the got-accept signal.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
23782
diff
changeset
|
34 #include "gntmedia.h" |
15817 | 35 #include "gntnotify.h" |
36 #include "gntplugin.h" | |
37 #include "gntpounce.h" | |
38 #include "gntprefs.h" | |
39 #include "gntrequest.h" | |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19681
diff
changeset
|
40 #include "gntroomlist.h" |
15817 | 41 #include "gntstatus.h" |
19100 | 42 #include "gntsound.h" |
15817 | 43 |
26347
1c73d2ef9ddc
Remove some extra edits that snuck into Finch.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
44 #include <prefs.h> |
15817 | 45 |
46 void gnt_ui_init() | |
47 { | |
48 #ifdef STANDALONE | |
49 gnt_init(); | |
50 #endif | |
51 | |
15822 | 52 purple_prefs_add_none("/purple/gnt"); |
15817 | 53 |
54 /* Accounts */ | |
55 finch_accounts_init(); | |
15822 | 56 purple_accounts_set_ui_ops(finch_accounts_get_ui_ops()); |
15817 | 57 |
58 /* Connections */ | |
59 finch_connections_init(); | |
15822 | 60 purple_connections_set_ui_ops(finch_connections_get_ui_ops()); |
15817 | 61 |
62 /* Initialize the buddy list */ | |
63 finch_blist_init(); | |
15822 | 64 purple_blist_set_ui_ops(finch_blist_get_ui_ops()); |
15817 | 65 |
19100 | 66 /* Initialize sound */ |
67 purple_sound_set_ui_ops(finch_sound_get_ui_ops()); | |
68 | |
15817 | 69 /* Now the conversations */ |
70 finch_conversation_init(); | |
15822 | 71 purple_conversations_set_ui_ops(finch_conv_get_ui_ops()); |
15817 | 72 |
73 /* Notify */ | |
74 finch_notify_init(); | |
15822 | 75 purple_notify_set_ui_ops(finch_notify_get_ui_ops()); |
15817 | 76 |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19681
diff
changeset
|
77 /* Request */ |
15817 | 78 finch_request_init(); |
15822 | 79 purple_request_set_ui_ops(finch_request_get_ui_ops()); |
15817 | 80 |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19681
diff
changeset
|
81 /* Pounce */ |
15817 | 82 finch_pounces_init(); |
83 | |
22248
88796aff14d6
Add a finch log viewer. This is largely copied from Pidgin.
Richard Nelson <wabz@pidgin.im>
parents:
22218
diff
changeset
|
84 /* Log */ |
88796aff14d6
Add a finch log viewer. This is largely copied from Pidgin.
Richard Nelson <wabz@pidgin.im>
parents:
22218
diff
changeset
|
85 finch_log_init(); |
88796aff14d6
Add a finch log viewer. This is largely copied from Pidgin.
Richard Nelson <wabz@pidgin.im>
parents:
22218
diff
changeset
|
86 |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19681
diff
changeset
|
87 /* File transfer */ |
15817 | 88 finch_xfers_init(); |
15822 | 89 purple_xfers_set_ui_ops(finch_xfers_get_ui_ops()); |
15817 | 90 |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19681
diff
changeset
|
91 /* Roomlist */ |
22024
57cac5dfda2a
Remember the size of the roomlist window. Handle the categories better.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22006
diff
changeset
|
92 finch_roomlist_init(); |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19681
diff
changeset
|
93 purple_roomlist_set_ui_ops(finch_roomlist_get_ui_ops()); |
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19681
diff
changeset
|
94 |
23789
128f6cb57829
Some media support in finch. This needs to be updated for the got-accept signal.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
23782
diff
changeset
|
95 /* Media */ |
128f6cb57829
Some media support in finch. This needs to be updated for the got-accept signal.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
23782
diff
changeset
|
96 finch_media_manager_init(); |
128f6cb57829
Some media support in finch. This needs to be updated for the got-accept signal.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
23782
diff
changeset
|
97 |
15817 | 98 gnt_register_action(_("Accounts"), finch_accounts_show_all); |
99 gnt_register_action(_("Buddy List"), finch_blist_show); | |
100 gnt_register_action(_("Buddy Pounces"), finch_pounces_manager_show); | |
19516
e1751162ab1f
Add certificate UI in finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19117
diff
changeset
|
101 gnt_register_action(_("Certificates"), finch_certmgr_show); |
15817 | 102 gnt_register_action(_("Debug Window"), finch_debug_window_show); |
103 gnt_register_action(_("File Transfers"), finch_xfer_dialog_show); | |
104 gnt_register_action(_("Plugins"), finch_plugins_show_all); | |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19681
diff
changeset
|
105 gnt_register_action(_("Room List"), finch_roomlist_show_all); |
19117
907c41608ada
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
19109
diff
changeset
|
106 gnt_register_action(_("Sounds"), finch_sounds_show_all); |
15817 | 107 gnt_register_action(_("Preferences"), finch_prefs_show_all); |
108 gnt_register_action(_("Statuses"), finch_savedstatus_show_all); | |
109 | |
110 #ifdef STANDALONE | |
111 } | |
112 | |
113 void gnt_ui_uninit() | |
114 { | |
15822 | 115 purple_accounts_set_ui_ops(NULL); |
15817 | 116 finch_accounts_uninit(); |
117 | |
15822 | 118 purple_connections_set_ui_ops(NULL); |
15817 | 119 finch_connections_uninit(); |
120 | |
15822 | 121 purple_blist_set_ui_ops(NULL); |
15817 | 122 finch_blist_uninit(); |
123 | |
15822 | 124 purple_conversations_set_ui_ops(NULL); |
15817 | 125 finch_conversation_uninit(); |
126 | |
15822 | 127 purple_notify_set_ui_ops(NULL); |
15817 | 128 finch_notify_uninit(); |
129 | |
15822 | 130 purple_request_set_ui_ops(NULL); |
15817 | 131 finch_request_uninit(); |
132 | |
133 finch_pounces_uninit(); | |
134 | |
22248
88796aff14d6
Add a finch log viewer. This is largely copied from Pidgin.
Richard Nelson <wabz@pidgin.im>
parents:
22218
diff
changeset
|
135 finch_log_uninit(); |
88796aff14d6
Add a finch log viewer. This is largely copied from Pidgin.
Richard Nelson <wabz@pidgin.im>
parents:
22218
diff
changeset
|
136 |
15817 | 137 finch_xfers_uninit(); |
15822 | 138 purple_xfers_set_ui_ops(NULL); |
15817 | 139 |
22024
57cac5dfda2a
Remember the size of the roomlist window. Handle the categories better.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22006
diff
changeset
|
140 finch_roomlist_uninit(); |
57cac5dfda2a
Remember the size of the roomlist window. Handle the categories better.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22006
diff
changeset
|
141 purple_roomlist_set_ui_ops(NULL); |
57cac5dfda2a
Remember the size of the roomlist window. Handle the categories better.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22006
diff
changeset
|
142 |
23804
cbe97caec684
Use USE_VV instead of USE_FARSIGHT.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23800
diff
changeset
|
143 #ifdef USE_VV |
23789
128f6cb57829
Some media support in finch. This needs to be updated for the got-accept signal.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
23782
diff
changeset
|
144 finch_media_manager_uninit(); |
23800
4b9b265a8100
Fix compiling with the --disable-vv switch.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23789
diff
changeset
|
145 #endif |
23789
128f6cb57829
Some media support in finch. This needs to be updated for the got-accept signal.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
23782
diff
changeset
|
146 |
15817 | 147 gnt_quit(); |
148 #endif | |
149 } | |
150 |