Fri, 19 Aug 2022 00:27:38 -0500
Implement notifications in Finch
This includes an Notifications item in the action list that opens the
notifcations list. The notifications list shows the title of each notification
and allows the user to open the notification and interact with it.
Testing Done:
Created some accounts that couldn't connect to make their connection errors show up as notifications.
Reviewed at https://reviews.imfreedom.org/r/1602/
|
39887
9c8f874c74a0
Clean up all of the license headers
Gary Kramlich <grim@reaperworld.com>
parents:
39693
diff
changeset
|
1 | /* |
|
15931
716b5fac1895
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@pidgin.im>
parents:
15906
diff
changeset
|
2 | * finch |
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
3 | * |
|
15931
716b5fac1895
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@pidgin.im>
parents:
15906
diff
changeset
|
4 | * Finch is the legal property of its developers, whose names are too numerous |
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
5 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
6 | * source distribution. |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
7 | * |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
8 | * This program is free software; you can redistribute it and/or modify |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
9 | * it under the terms of the GNU General Public License as published by |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
10 | * the Free Software Foundation; either version 2 of the License, or |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
11 | * (at your option) any later version. |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
12 | * |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
13 | * This program is distributed in the hope that it will be useful, |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
16 | * GNU General Public License for more details. |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
17 | * |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
19 | * along with this program; if not, write to the Free Software |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19836
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14467
diff
changeset
|
21 | */ |
|
39887
9c8f874c74a0
Clean up all of the license headers
Gary Kramlich <grim@reaperworld.com>
parents:
39693
diff
changeset
|
22 | |
|
40441
f23c7e772667
Make sure we're not including the gettext macros in header files and deal with the repercussions of that.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
23 | #include <config.h> |
|
40439
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
24 | |
|
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
25 | #include <glib/gi18n-lib.h> |
|
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
26 | |
|
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
27 | #include <purple.h> |
|
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
28 | |
|
26477
245d9650bb2b
Remove some extra edits that snuck into Finch.
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
29 | #include "gntui.h" |
|
13969
0541f389442e
[gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13949
diff
changeset
|
30 | |
|
41510
630da93b9984
Implement notifications in Finch
Gary Kramlich <grim@reaperworld.com>
parents:
41490
diff
changeset
|
31 | #include "finchnotifications.h" |
|
13969
0541f389442e
[gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13949
diff
changeset
|
32 | #include "gntaccount.h" |
|
34708
dd67596485ca
Undo renames of UI blist headers back to gntblist.h and gtkblist.h
Ankit Vani <a@nevitus.org>
parents:
34706
diff
changeset
|
33 | #include "gntblist.h" |
|
14014
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13969
diff
changeset
|
34 | #include "gntconn.h" |
|
13949
632a9dbc1d6a
[gaim-migrate @ 16368]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13947
diff
changeset
|
35 | #include "gntconv.h" |
|
14467
359d9aad0f01
[gaim-migrate @ 17113]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14072
diff
changeset
|
36 | #include "gntdebug.h" |
|
34910
60502558e400
Replacements for the GObject Xfer API
Ankit Vani <a@nevitus.org>
parents:
34708
diff
changeset
|
37 | #include "gntxfer.h" |
|
22650
3ed9cc16bf2a
Some media support in finch. This needs to be updated for the got-accept signal.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22398
diff
changeset
|
38 | #include "gntmedia.h" |
|
14014
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13969
diff
changeset
|
39 | #include "gntnotify.h" |
|
14072
4e64a4f18686
[gaim-migrate @ 16602]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
40 | #include "gntplugin.h" |
|
14467
359d9aad0f01
[gaim-migrate @ 17113]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14072
diff
changeset
|
41 | #include "gntprefs.h" |
|
14045
12b8c2bfd3fb
[gaim-migrate @ 16552]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14028
diff
changeset
|
42 | #include "gntrequest.h" |
|
22136
9db77fc00a0e
Implementation of the roomlist API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
43 | #include "gntroomlist.h" |
|
14467
359d9aad0f01
[gaim-migrate @ 17113]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14072
diff
changeset
|
44 | #include "gntstatus.h" |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
45 | |
|
41109
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
46 | static gboolean |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
47 | finch_history_init(GError **error) { |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
48 | PurpleHistoryManager *manager = NULL; |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
49 | PurpleHistoryAdapter *adapter = NULL; |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
50 | gchar *filename = NULL; |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
51 | const gchar *id = NULL; |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
52 | |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
53 | manager = purple_history_manager_get_default(); |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
54 | |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
55 | /* Attempt to create the config directory. */ |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
56 | g_mkdir_with_parents(purple_config_dir(), 0700); |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
57 | |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
58 | filename = g_build_filename(purple_config_dir(), "history.db", NULL); |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
59 | adapter = purple_sqlite_history_adapter_new(filename); |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
60 | g_free(filename); |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
61 | |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
62 | id = purple_history_adapter_get_id(adapter); |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
63 | if(!purple_history_manager_register(manager, adapter, error)) { |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
64 | g_clear_object(&adapter); |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
65 | |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
66 | return FALSE; |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
67 | } |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
68 | |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
69 | /* The manager adds a ref to the adapter on registration, so we can remove |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
70 | * our reference. |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
71 | */ |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
72 | g_clear_object(&adapter); |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
73 | |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
74 | return purple_history_manager_set_active(manager, id, error); |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
75 | } |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
76 | |
|
35494
e631108a5464
Fix namespace issues in libgnt and finch.
Ankit Vani <a@nevitus.org>
parents:
34910
diff
changeset
|
77 | void finch_ui_init() |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
78 | { |
|
41109
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
79 | GError *error = NULL; |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
80 | |
|
41118
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41109
diff
changeset
|
81 | finch_debug_init(); |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41109
diff
changeset
|
82 | |
|
14028
eefce1b0c4e3
[gaim-migrate @ 16522]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
83 | #ifdef STANDALONE |
|
35883
44327a195f54
cross-win32: finch: keep your files in config dir
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35494
diff
changeset
|
84 | #ifdef _WIN32 /* TODO: don't change it when using FHS under win32 */ |
|
44327a195f54
cross-win32: finch: keep your files in config dir
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35494
diff
changeset
|
85 | gnt_set_config_dir(purple_user_dir()); |
|
44327a195f54
cross-win32: finch: keep your files in config dir
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35494
diff
changeset
|
86 | #endif /* _WIN32 */ |
|
44327a195f54
cross-win32: finch: keep your files in config dir
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35494
diff
changeset
|
87 | |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
88 | gnt_init(); |
|
35883
44327a195f54
cross-win32: finch: keep your files in config dir
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35494
diff
changeset
|
89 | #endif /* STANDALONE */ |
|
14072
4e64a4f18686
[gaim-migrate @ 16602]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
90 | |
|
41109
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
91 | if(!finch_history_init(&error)) { |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
92 | g_critical("failed to initialize the history api: %s", |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
93 | error != NULL ? error->message : "unknown"); |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
94 | g_clear_error(&error); |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
95 | } |
|
755e1554051c
Make user interfaces setup the default history adapter.
Gary Kramlich <grim@reaperworld.com>
parents:
41104
diff
changeset
|
96 | |
| 15884 | 97 | purple_prefs_add_none("/purple/gnt"); |
|
31294
73607ab89c6f
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
27829
diff
changeset
|
98 | |
|
13969
0541f389442e
[gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13949
diff
changeset
|
99 | /* Accounts */ |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
100 | finch_accounts_init(); |
| 15884 | 101 | purple_accounts_set_ui_ops(finch_accounts_get_ui_ops()); |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
102 | |
|
14014
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13969
diff
changeset
|
103 | /* Connections */ |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
104 | finch_connections_init(); |
| 15884 | 105 | purple_connections_set_ui_ops(finch_connections_get_ui_ops()); |
|
14014
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13969
diff
changeset
|
106 | |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
107 | /* Initialize the buddy list */ |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
108 | finch_blist_init(); |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39309
diff
changeset
|
109 | purple_blist_set_ui(FINCH_TYPE_BUDDY_LIST); |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
110 | |
|
13946
c895c1eeb4d7
[gaim-migrate @ 16364]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13919
diff
changeset
|
111 | /* Now the conversations */ |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
112 | finch_conversation_init(); |
| 15884 | 113 | purple_conversations_set_ui_ops(finch_conv_get_ui_ops()); |
|
13946
c895c1eeb4d7
[gaim-migrate @ 16364]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13919
diff
changeset
|
114 | |
|
14014
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13969
diff
changeset
|
115 | /* Notify */ |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
116 | finch_notify_init(); |
| 15884 | 117 | purple_notify_set_ui_ops(finch_notify_get_ui_ops()); |
|
14014
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13969
diff
changeset
|
118 | |
|
22136
9db77fc00a0e
Implementation of the roomlist API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
119 | /* Request */ |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
120 | finch_request_init(); |
| 15884 | 121 | purple_request_set_ui_ops(finch_request_get_ui_ops()); |
|
14045
12b8c2bfd3fb
[gaim-migrate @ 16552]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14028
diff
changeset
|
122 | |
|
22136
9db77fc00a0e
Implementation of the roomlist API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
123 | /* File transfer */ |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
124 | finch_xfers_init(); |
| 15884 | 125 | purple_xfers_set_ui_ops(finch_xfers_get_ui_ops()); |
|
15702
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15564
diff
changeset
|
126 | |
|
22136
9db77fc00a0e
Implementation of the roomlist API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
127 | /* Roomlist */ |
|
22147
08e54b0f86a3
Remember the size of the roomlist window. Handle the categories better.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22136
diff
changeset
|
128 | finch_roomlist_init(); |
|
22136
9db77fc00a0e
Implementation of the roomlist API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
129 | purple_roomlist_set_ui_ops(finch_roomlist_get_ui_ops()); |
|
9db77fc00a0e
Implementation of the roomlist API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
130 | |
|
22650
3ed9cc16bf2a
Some media support in finch. This needs to be updated for the got-accept signal.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22398
diff
changeset
|
131 | /* Media */ |
|
3ed9cc16bf2a
Some media support in finch. This needs to be updated for the got-accept signal.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22398
diff
changeset
|
132 | finch_media_manager_init(); |
|
3ed9cc16bf2a
Some media support in finch. This needs to be updated for the got-accept signal.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22398
diff
changeset
|
133 | |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
134 | gnt_register_action(_("Accounts"), finch_accounts_show_all); |
|
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
135 | gnt_register_action(_("Buddy List"), finch_blist_show); |
|
41510
630da93b9984
Implement notifications in Finch
Gary Kramlich <grim@reaperworld.com>
parents:
41490
diff
changeset
|
136 | gnt_register_action(_("Notifications"), finch_notifications_window_show); |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
137 | gnt_register_action(_("Debug Window"), finch_debug_window_show); |
|
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
138 | gnt_register_action(_("File Transfers"), finch_xfer_dialog_show); |
|
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
139 | gnt_register_action(_("Plugins"), finch_plugins_show_all); |
|
22136
9db77fc00a0e
Implementation of the roomlist API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
140 | gnt_register_action(_("Room List"), finch_roomlist_show_all); |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
141 | gnt_register_action(_("Preferences"), finch_prefs_show_all); |
|
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
142 | gnt_register_action(_("Statuses"), finch_savedstatus_show_all); |
|
14072
4e64a4f18686
[gaim-migrate @ 16602]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
143 | |
|
14028
eefce1b0c4e3
[gaim-migrate @ 16522]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
144 | #ifdef STANDALONE |
|
14909
d72792eb7575
[gaim-migrate @ 17616]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14620
diff
changeset
|
145 | } |
|
14072
4e64a4f18686
[gaim-migrate @ 16602]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
146 | |
|
35494
e631108a5464
Fix namespace issues in libgnt and finch.
Ankit Vani <a@nevitus.org>
parents:
34910
diff
changeset
|
147 | void finch_ui_uninit() |
|
14909
d72792eb7575
[gaim-migrate @ 17616]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14620
diff
changeset
|
148 | { |
| 15884 | 149 | purple_accounts_set_ui_ops(NULL); |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
150 | finch_accounts_uninit(); |
|
13969
0541f389442e
[gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13949
diff
changeset
|
151 | |
| 15884 | 152 | purple_connections_set_ui_ops(NULL); |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
153 | finch_connections_uninit(); |
|
14014
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13969
diff
changeset
|
154 | |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39309
diff
changeset
|
155 | purple_blist_set_ui(G_TYPE_INVALID); |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
156 | finch_blist_uninit(); |
|
13969
0541f389442e
[gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13949
diff
changeset
|
157 | |
| 15884 | 158 | purple_conversations_set_ui_ops(NULL); |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
159 | finch_conversation_uninit(); |
|
13969
0541f389442e
[gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13949
diff
changeset
|
160 | |
| 15884 | 161 | purple_notify_set_ui_ops(NULL); |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
162 | finch_notify_uninit(); |
|
14014
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13969
diff
changeset
|
163 | |
| 15884 | 164 | purple_request_set_ui_ops(NULL); |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
165 | finch_request_uninit(); |
|
14045
12b8c2bfd3fb
[gaim-migrate @ 16552]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14028
diff
changeset
|
166 | |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15702
diff
changeset
|
167 | finch_xfers_uninit(); |
| 15884 | 168 | purple_xfers_set_ui_ops(NULL); |
|
15702
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15564
diff
changeset
|
169 | |
|
22147
08e54b0f86a3
Remember the size of the roomlist window. Handle the categories better.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22136
diff
changeset
|
170 | finch_roomlist_uninit(); |
|
08e54b0f86a3
Remember the size of the roomlist window. Handle the categories better.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22136
diff
changeset
|
171 | purple_roomlist_set_ui_ops(NULL); |
|
08e54b0f86a3
Remember the size of the roomlist window. Handle the categories better.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22136
diff
changeset
|
172 | |
|
22650
3ed9cc16bf2a
Some media support in finch. This needs to be updated for the got-accept signal.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22398
diff
changeset
|
173 | finch_media_manager_uninit(); |
|
3ed9cc16bf2a
Some media support in finch. This needs to be updated for the got-accept signal.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22398
diff
changeset
|
174 | |
|
13969
0541f389442e
[gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13949
diff
changeset
|
175 | gnt_quit(); |
|
35883
44327a195f54
cross-win32: finch: keep your files in config dir
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35494
diff
changeset
|
176 | |
|
41118
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41109
diff
changeset
|
177 | finch_debug_uninit(); |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41109
diff
changeset
|
178 | |
|
35883
44327a195f54
cross-win32: finch: keep your files in config dir
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35494
diff
changeset
|
179 | #ifdef _WIN32 |
|
44327a195f54
cross-win32: finch: keep your files in config dir
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35494
diff
changeset
|
180 | gnt_set_config_dir(NULL); |
|
44327a195f54
cross-win32: finch: keep your files in config dir
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35494
diff
changeset
|
181 | #endif /* _WIN32 */ |
|
44327a195f54
cross-win32: finch: keep your files in config dir
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35494
diff
changeset
|
182 | #endif /* STANDALONE */ |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
183 | } |