Mercurial > pidgin.yaz
annotate finch/gntui.c @ 19482:3b61b5279a56
Allow you to click on statusbox again and keep it open.
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 28 Aug 2007 22:40:51 +0000 |
parents | 907c41608ada |
children | e1751162ab1f 315151da0dc6 |
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 | |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
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" | |
28 #include "gntconn.h" | |
29 #include "gntconv.h" | |
30 #include "gntdebug.h" | |
31 #include "gntft.h" | |
32 #include "gntnotify.h" | |
33 #include "gntplugin.h" | |
34 #include "gntpounce.h" | |
35 #include "gntprefs.h" | |
36 #include "gntrequest.h" | |
37 #include "gntstatus.h" | |
19100 | 38 #include "gntsound.h" |
15818 | 39 |
40 #include <prefs.h> | |
41 | |
42 void gnt_ui_init() | |
43 { | |
44 #ifdef STANDALONE | |
45 gnt_init(); | |
46 #endif | |
47 | |
15823 | 48 purple_prefs_add_none("/purple/gnt"); |
15818 | 49 |
50 /* Accounts */ | |
51 finch_accounts_init(); | |
15823 | 52 purple_accounts_set_ui_ops(finch_accounts_get_ui_ops()); |
15818 | 53 |
54 /* Connections */ | |
55 finch_connections_init(); | |
15823 | 56 purple_connections_set_ui_ops(finch_connections_get_ui_ops()); |
15818 | 57 |
58 /* Initialize the buddy list */ | |
59 finch_blist_init(); | |
15823 | 60 purple_blist_set_ui_ops(finch_blist_get_ui_ops()); |
15818 | 61 |
19100 | 62 /* Initialize sound */ |
63 purple_sound_set_ui_ops(finch_sound_get_ui_ops()); | |
64 | |
15818 | 65 /* Now the conversations */ |
66 finch_conversation_init(); | |
15823 | 67 purple_conversations_set_ui_ops(finch_conv_get_ui_ops()); |
15818 | 68 |
69 /* Notify */ | |
70 finch_notify_init(); | |
15823 | 71 purple_notify_set_ui_ops(finch_notify_get_ui_ops()); |
15818 | 72 |
73 finch_request_init(); | |
15823 | 74 purple_request_set_ui_ops(finch_request_get_ui_ops()); |
15818 | 75 |
76 finch_pounces_init(); | |
77 | |
78 finch_xfers_init(); | |
15823 | 79 purple_xfers_set_ui_ops(finch_xfers_get_ui_ops()); |
15818 | 80 |
81 gnt_register_action(_("Accounts"), finch_accounts_show_all); | |
82 gnt_register_action(_("Buddy List"), finch_blist_show); | |
83 gnt_register_action(_("Buddy Pounces"), finch_pounces_manager_show); | |
84 gnt_register_action(_("Debug Window"), finch_debug_window_show); | |
85 gnt_register_action(_("File Transfers"), finch_xfer_dialog_show); | |
86 gnt_register_action(_("Plugins"), finch_plugins_show_all); | |
19117
907c41608ada
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
19109
diff
changeset
|
87 gnt_register_action(_("Sounds"), finch_sounds_show_all); |
15818 | 88 gnt_register_action(_("Preferences"), finch_prefs_show_all); |
89 gnt_register_action(_("Statuses"), finch_savedstatus_show_all); | |
90 | |
91 #ifdef STANDALONE | |
92 | |
93 finch_plugins_save_loaded(); | |
94 } | |
95 | |
96 void gnt_ui_uninit() | |
97 { | |
15823 | 98 purple_accounts_set_ui_ops(NULL); |
15818 | 99 finch_accounts_uninit(); |
100 | |
15823 | 101 purple_connections_set_ui_ops(NULL); |
15818 | 102 finch_connections_uninit(); |
103 | |
15823 | 104 purple_blist_set_ui_ops(NULL); |
15818 | 105 finch_blist_uninit(); |
106 | |
15823 | 107 purple_conversations_set_ui_ops(NULL); |
15818 | 108 finch_conversation_uninit(); |
109 | |
15823 | 110 purple_notify_set_ui_ops(NULL); |
15818 | 111 finch_notify_uninit(); |
112 | |
15823 | 113 purple_request_set_ui_ops(NULL); |
15818 | 114 finch_request_uninit(); |
115 | |
116 finch_pounces_uninit(); | |
117 | |
118 finch_xfers_uninit(); | |
15823 | 119 purple_xfers_set_ui_ops(NULL); |
15818 | 120 |
121 gnt_quit(); | |
122 #endif | |
123 } | |
124 |