Mercurial > pidgin.yaz
annotate finch/gntui.c @ 22144:c85ee90ed861
merge of '43413f6662ecd55ea083fbbacb3f16c01843e655'
and 'a00c23cb7c851de1701db02d50c4f35bdf540595'
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 17 Jan 2008 08:10:50 +0000 |
parents | 57cac5dfda2a |
children | 5152a14d06a3 |
rev | line source |
---|---|
15818 | 1 /** |
15871
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15823
diff
changeset
|
2 * finch |
15818 | 3 * |
15871
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15823
diff
changeset
|
4 * Finch is the legal property of its developers, whose names are too numerous |
15818 | 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 | |
19680
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19654
diff
changeset
|
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15818 | 21 */ |
18210
b8572b937c09
#include reorganizations to allow compiling with glib < 2.8 using the
Stu Tomlinson <stu@nosnilmot.com>
parents:
15871
diff
changeset
|
22 #include "internal.h" |
b8572b937c09
#include reorganizations to allow compiling with glib < 2.8 using the
Stu Tomlinson <stu@nosnilmot.com>
parents:
15871
diff
changeset
|
23 |
15818 | 24 #include "gntui.h" |
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" |
15818 | 29 #include "gntconn.h" |
30 #include "gntconv.h" | |
31 #include "gntdebug.h" | |
32 #include "gntft.h" | |
33 #include "gntnotify.h" | |
34 #include "gntplugin.h" | |
35 #include "gntpounce.h" | |
36 #include "gntprefs.h" | |
37 #include "gntrequest.h" | |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19680
diff
changeset
|
38 #include "gntroomlist.h" |
15818 | 39 #include "gntstatus.h" |
19100 | 40 #include "gntsound.h" |
15818 | 41 |
42 #include <prefs.h> | |
43 | |
44 void gnt_ui_init() | |
45 { | |
46 #ifdef STANDALONE | |
47 gnt_init(); | |
48 #endif | |
49 | |
15823 | 50 purple_prefs_add_none("/purple/gnt"); |
15818 | 51 |
52 /* Accounts */ | |
53 finch_accounts_init(); | |
15823 | 54 purple_accounts_set_ui_ops(finch_accounts_get_ui_ops()); |
15818 | 55 |
56 /* Connections */ | |
57 finch_connections_init(); | |
15823 | 58 purple_connections_set_ui_ops(finch_connections_get_ui_ops()); |
15818 | 59 |
60 /* Initialize the buddy list */ | |
61 finch_blist_init(); | |
15823 | 62 purple_blist_set_ui_ops(finch_blist_get_ui_ops()); |
15818 | 63 |
19100 | 64 /* Initialize sound */ |
65 purple_sound_set_ui_ops(finch_sound_get_ui_ops()); | |
66 | |
15818 | 67 /* Now the conversations */ |
68 finch_conversation_init(); | |
15823 | 69 purple_conversations_set_ui_ops(finch_conv_get_ui_ops()); |
15818 | 70 |
71 /* Notify */ | |
72 finch_notify_init(); | |
15823 | 73 purple_notify_set_ui_ops(finch_notify_get_ui_ops()); |
15818 | 74 |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19680
diff
changeset
|
75 /* Request */ |
15818 | 76 finch_request_init(); |
15823 | 77 purple_request_set_ui_ops(finch_request_get_ui_ops()); |
15818 | 78 |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19680
diff
changeset
|
79 /* Pounce */ |
15818 | 80 finch_pounces_init(); |
81 | |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19680
diff
changeset
|
82 /* File transfer */ |
15818 | 83 finch_xfers_init(); |
15823 | 84 purple_xfers_set_ui_ops(finch_xfers_get_ui_ops()); |
15818 | 85 |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19680
diff
changeset
|
86 /* Roomlist */ |
22024
57cac5dfda2a
Remember the size of the roomlist window. Handle the categories better.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22006
diff
changeset
|
87 finch_roomlist_init(); |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19680
diff
changeset
|
88 purple_roomlist_set_ui_ops(finch_roomlist_get_ui_ops()); |
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19680
diff
changeset
|
89 |
15818 | 90 gnt_register_action(_("Accounts"), finch_accounts_show_all); |
91 gnt_register_action(_("Buddy List"), finch_blist_show); | |
92 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
|
93 gnt_register_action(_("Certificates"), finch_certmgr_show); |
15818 | 94 gnt_register_action(_("Debug Window"), finch_debug_window_show); |
95 gnt_register_action(_("File Transfers"), finch_xfer_dialog_show); | |
96 gnt_register_action(_("Plugins"), finch_plugins_show_all); | |
22006
1278280fa0b6
Implementation of the roomlist API.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19680
diff
changeset
|
97 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
|
98 gnt_register_action(_("Sounds"), finch_sounds_show_all); |
15818 | 99 gnt_register_action(_("Preferences"), finch_prefs_show_all); |
100 gnt_register_action(_("Statuses"), finch_savedstatus_show_all); | |
101 | |
102 #ifdef STANDALONE | |
103 } | |
104 | |
105 void gnt_ui_uninit() | |
106 { | |
15823 | 107 purple_accounts_set_ui_ops(NULL); |
15818 | 108 finch_accounts_uninit(); |
109 | |
15823 | 110 purple_connections_set_ui_ops(NULL); |
15818 | 111 finch_connections_uninit(); |
112 | |
15823 | 113 purple_blist_set_ui_ops(NULL); |
15818 | 114 finch_blist_uninit(); |
115 | |
15823 | 116 purple_conversations_set_ui_ops(NULL); |
15818 | 117 finch_conversation_uninit(); |
118 | |
15823 | 119 purple_notify_set_ui_ops(NULL); |
15818 | 120 finch_notify_uninit(); |
121 | |
15823 | 122 purple_request_set_ui_ops(NULL); |
15818 | 123 finch_request_uninit(); |
124 | |
125 finch_pounces_uninit(); | |
126 | |
127 finch_xfers_uninit(); | |
15823 | 128 purple_xfers_set_ui_ops(NULL); |
15818 | 129 |
22024
57cac5dfda2a
Remember the size of the roomlist window. Handle the categories better.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22006
diff
changeset
|
130 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
|
131 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
|
132 |
15818 | 133 gnt_quit(); |
134 #endif | |
135 } | |
136 |