Mercurial > pidgin
annotate finch/gntui.c @ 18754:66df5d93cdf4
When a new user starts Pidgin we hide the buddy list so that they only
see the account window to make it easier for them to create an account.
But then once they create an account the buddy list stays minimized,
which makes people think nothing is happening.
This changes makes it so we unhide the buddy list when gtkaccount.c
creates the first account.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 31 Jul 2007 06:09:45 +0000 |
parents | b8572b937c09 |
children | 1cb69ea47a6e |
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 | |
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:
15870
diff
changeset
|
22 #include "internal.h" |
b8572b937c09
#include reorganizations to allow compiling with glib < 2.8 using the
Stu Tomlinson <stu@nosnilmot.com>
parents:
15870
diff
changeset
|
23 |
15817 | 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" | |
38 | |
39 #include <prefs.h> | |
40 | |
41 void gnt_ui_init() | |
42 { | |
43 #ifdef STANDALONE | |
44 gnt_init(); | |
45 #endif | |
46 | |
15822 | 47 purple_prefs_add_none("/purple/gnt"); |
15817 | 48 |
49 /* Accounts */ | |
50 finch_accounts_init(); | |
15822 | 51 purple_accounts_set_ui_ops(finch_accounts_get_ui_ops()); |
15817 | 52 |
53 /* Connections */ | |
54 finch_connections_init(); | |
15822 | 55 purple_connections_set_ui_ops(finch_connections_get_ui_ops()); |
15817 | 56 |
57 /* Initialize the buddy list */ | |
58 finch_blist_init(); | |
15822 | 59 purple_blist_set_ui_ops(finch_blist_get_ui_ops()); |
15817 | 60 |
61 /* Now the conversations */ | |
62 finch_conversation_init(); | |
15822 | 63 purple_conversations_set_ui_ops(finch_conv_get_ui_ops()); |
15817 | 64 |
65 /* Notify */ | |
66 finch_notify_init(); | |
15822 | 67 purple_notify_set_ui_ops(finch_notify_get_ui_ops()); |
15817 | 68 |
69 finch_request_init(); | |
15822 | 70 purple_request_set_ui_ops(finch_request_get_ui_ops()); |
15817 | 71 |
72 finch_pounces_init(); | |
73 | |
74 finch_xfers_init(); | |
15822 | 75 purple_xfers_set_ui_ops(finch_xfers_get_ui_ops()); |
15817 | 76 |
77 gnt_register_action(_("Accounts"), finch_accounts_show_all); | |
78 gnt_register_action(_("Buddy List"), finch_blist_show); | |
79 gnt_register_action(_("Buddy Pounces"), finch_pounces_manager_show); | |
80 gnt_register_action(_("Debug Window"), finch_debug_window_show); | |
81 gnt_register_action(_("File Transfers"), finch_xfer_dialog_show); | |
82 gnt_register_action(_("Plugins"), finch_plugins_show_all); | |
83 gnt_register_action(_("Preferences"), finch_prefs_show_all); | |
84 gnt_register_action(_("Statuses"), finch_savedstatus_show_all); | |
85 | |
86 #ifdef STANDALONE | |
87 | |
88 finch_plugins_save_loaded(); | |
89 } | |
90 | |
91 void gnt_ui_uninit() | |
92 { | |
15822 | 93 purple_accounts_set_ui_ops(NULL); |
15817 | 94 finch_accounts_uninit(); |
95 | |
15822 | 96 purple_connections_set_ui_ops(NULL); |
15817 | 97 finch_connections_uninit(); |
98 | |
15822 | 99 purple_blist_set_ui_ops(NULL); |
15817 | 100 finch_blist_uninit(); |
101 | |
15822 | 102 purple_conversations_set_ui_ops(NULL); |
15817 | 103 finch_conversation_uninit(); |
104 | |
15822 | 105 purple_notify_set_ui_ops(NULL); |
15817 | 106 finch_notify_uninit(); |
107 | |
15822 | 108 purple_request_set_ui_ops(NULL); |
15817 | 109 finch_request_uninit(); |
110 | |
111 finch_pounces_uninit(); | |
112 | |
113 finch_xfers_uninit(); | |
15822 | 114 purple_xfers_set_ui_ops(NULL); |
15817 | 115 |
116 gnt_quit(); | |
117 #endif | |
118 } | |
119 |