pidgin/gtkdialogs.c

Tue, 03 May 2016 14:04:15 -0400

author
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
date
Tue, 03 May 2016 14:04:15 -0400
changeset 37759
35e8677c6ce5
parent 37488
88afe246144e
child 37901
41e45e18f3b2
permissions
-rw-r--r--

oscar: Prepend server option instead of appending it

This allows server/port to be together and appear on top of the
advanced settings instead of having port on top and server at the bottom

20147
66f05a854eee applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents: 20137
diff changeset
1 /* pidgin
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
2 *
15931
716b5fac1895 Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@pidgin.im>
parents: 15906
diff changeset
3 * Pidgin is the legal property of its developers, whose names are too numerous
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
4 * to list here. Please refer to the COPYRIGHT file distributed with this
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
5 * source distribution.
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
6 *
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
10 * (at your option) any later version.
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
11 *
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
15 * GNU General Public License for more details.
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
16 *
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
18 * 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: 19693
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
20 */
24569
5dbd0617a27d Build everything with the *_DISABLE_DEPRECATED flags set. This allows us
Richard Laager <rlaager@pidgin.im>
parents: 24541
diff changeset
21 #define _PIDGIN_GTKDIALOGS_C_
5dbd0617a27d Build everything with the *_DISABLE_DEPRECATED flags set. This allows us
Richard Laager <rlaager@pidgin.im>
parents: 24541
diff changeset
22
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents: 9778
diff changeset
23 #include "internal.h"
15577
b8129373f65e More pidgin changes
Sean Egan <seanegan@pidgin.im>
parents: 15571
diff changeset
24 #include "pidgin.h"
27945
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 27941
diff changeset
25 #include "package_revision.h"
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
26
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
27 #include "debug.h"
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
28 #include "notify.h"
36367
891eea799578 Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents: 36361
diff changeset
29 #include "plugins.h"
36543
a8c3fecee2d3 Renamed prpl.[ch] to protocol.[ch]
Ankit Vani <a@nevitus.org>
parents: 36516
diff changeset
30 #include "protocol.h"
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
31 #include "request.h"
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
32 #include "util.h"
25702
41a5336bc2d6 applied changes from 20269e8849976ad6a0996f79ccbc0a12a311484f
Ethan Blanton <elb@pidgin.im>
parents: 25685
diff changeset
33 #include "core.h"
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
34
12232
857f087ec86b [gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents: 12122
diff changeset
35 #include "gtkblist.h"
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
36 #include "gtkdialogs.h"
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
37 #include "gtklog.h"
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
38 #include "gtkutils.h"
32439
2c681e5daeeb Webkit Message views.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents: 27941
diff changeset
39 #include "gtkwebview.h"
15883
969b74a3e27a According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@pidgin.im>
parents: 15882
diff changeset
40 #include "pidginstock.h"
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
41
33836
9555c8a2cd8b Show GTK and GStreamer version in Build Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33599
diff changeset
42 #ifdef USE_GSTREAMER
9555c8a2cd8b Show GTK and GStreamer version in Build Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33599
diff changeset
43 #include <gst/gst.h>
9555c8a2cd8b Show GTK and GStreamer version in Build Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33599
diff changeset
44 #endif
9555c8a2cd8b Show GTK and GStreamer version in Build Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33599
diff changeset
45
33170
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33160
diff changeset
46 #include "gtk3compat.h"
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33160
diff changeset
47
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
48 static GList *dialogwindows = NULL;
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
49
15882
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15860
diff changeset
50 struct _PidginGroupMergeObject {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
51 PurpleGroup* parent;
14526
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
52 char *new_name;
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
53 };
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
54
9758
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
55 struct developer {
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
56 char *name;
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
57 char *role;
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
58 char *email;
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
59 };
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
60
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
61 struct translator {
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
62 char *language;
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
63 char *abbr;
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
64 char *name;
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
65 char *email;
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
66 };
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
67
15449
6749d48e48c0 Credit for icons
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
68 struct artist {
6749d48e48c0 Credit for icons
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
69 char *name;
6749d48e48c0 Credit for icons
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
70 char *email;
6749d48e48c0 Credit for icons
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
71 };
6749d48e48c0 Credit for icons
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
72
23324
7b269d9db7b3 Sync up the developer and CPW lists. This also sorts Sean Egan in with
Richard Laager <rlaager@pidgin.im>
parents: 23323
diff changeset
73 /* Order: Alphabetical by Last Name */
21091
07fe1a99c47b Patch from Andrew Gaul to constify a bunch of static variables to reduce
Ka-Hing Cheung <khc@pidgin.im>
parents: 20257
diff changeset
74 static const struct developer developers[] = {
28615
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
75 {"Daniel 'datallah' Atallah", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
76 {"Paul 'darkrain42' Aurich", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
77 {"Ethan 'Paco-Paco' Blanton", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
78 {"Hylke Bons", N_("artist"), "hylkebons@gmail.com"},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
79 {"Sadrul Habib Chowdhury", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
80 {"Mark 'KingAnt' Doliner", NULL, "mark@kingant.net"},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
81 {"Gary 'grim' Kramlich", NULL, "grim@pidgin.im"},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
82 {"Richard 'rlaager' Laager", NULL, "rlaager@pidgin.im"},
30846
b0cbc7188152 Can I take some liberties?
Mark Doliner <markdoliner@pidgin.im>
parents: 30843
diff changeset
83 {"Marcus 'malu' Lundblad", NULL, NULL},
28615
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
84 {"Sulabh 'sulabh_m' Mahajan", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
85 {"Richard 'wabz' Nelson", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
86 {"Etan 'deryni' Reisner", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
87 {"Michael 'Maiku' Ruprecht", N_("voice and video"), NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
88 {"Elliott 'QuLogic' Sales de Andrade", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
89 {"Luke 'LSchiere' Schierer", N_("support"), "lschiere@users.sf.net"},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
90 {"Evan Schoenberg", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
91 {"Kevin 'SimGuy' Stange", N_("webmaster"), NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
92 {"Will 'resiak' Thompson", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
93 {"Stu 'nosnilmot' Tomlinson", NULL, NULL},
30846
b0cbc7188152 Can I take some liberties?
Mark Doliner <markdoliner@pidgin.im>
parents: 30843
diff changeset
94 {"Jorge 'Masca' Villaseñor", NULL, NULL},
34518
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
95 {"Tomasz Wasilczyk", NULL, "https://www.wasilczyk.pl"},
9758
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
96 {NULL, NULL, NULL}
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
97 };
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
98
12065
7b429166d302 [gaim-migrate @ 14360]
Richard Laager <rlaager@pidgin.im>
parents: 12062
diff changeset
99 /* Order: Alphabetical by Last Name */
21091
07fe1a99c47b Patch from Andrew Gaul to constify a bunch of static variables to reduce
Ka-Hing Cheung <khc@pidgin.im>
parents: 20257
diff changeset
100 static const struct developer patch_writers[] = {
31622
a2df881cd383 Add Jakub Adam as a Crazy Patch Writer. He's contributed more than enough to
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31607
diff changeset
101 {"Jakub 'haakon' Adam", NULL, NULL},
31667
3dd7c4b5a45d Induct two new CPW's to our list.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31629
diff changeset
102 {"Krzysztof Klinikowski", NULL, NULL},
32134
e5da7785a265 There really isn't a good section to stuff Eion's name in, so this should do.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 32101
diff changeset
103 {"Eion Robb", NULL, NULL},
35151
2473eb4df60d List Ankit as a CPW. Seems fair.
Mark Doliner <mark@kingant.net>
parents: 35150
diff changeset
104 {"Ankit Vani", NULL, NULL},
10372
3b28959779fa [gaim-migrate @ 11595]
Kevin Stange <kstange@pidgin.im>
parents: 10371
diff changeset
105 {NULL, NULL, NULL}
3b28959779fa [gaim-migrate @ 11595]
Kevin Stange <kstange@pidgin.im>
parents: 10371
diff changeset
106 };
3b28959779fa [gaim-migrate @ 11595]
Kevin Stange <kstange@pidgin.im>
parents: 10371
diff changeset
107
12065
7b429166d302 [gaim-migrate @ 14360]
Richard Laager <rlaager@pidgin.im>
parents: 12062
diff changeset
108 /* Order: Alphabetical by Last Name */
21091
07fe1a99c47b Patch from Andrew Gaul to constify a bunch of static variables to reduce
Ka-Hing Cheung <khc@pidgin.im>
parents: 20257
diff changeset
109 static const struct developer retired_developers[] = {
34518
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
110 {"John 'rekkanoryo' Bailey", NULL, NULL},
28615
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
111 {"Herman Bloggs", N_("win32 port"), "herman@bluedigits.com"},
29861
bd942f02d71d Move some cats to the retired list because I haven't seen them around
Mark Doliner <markdoliner@pidgin.im>
parents: 29698
diff changeset
112 {"Thomas Butter", NULL, NULL},
34518
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
113 /* Translators: This is a person's name. For most languages we recommend
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
114 not translating it. */
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
115 {N_("Ka-Hing Cheung"), NULL, NULL},
28615
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
116 {"Jim Duchek", N_("maintainer"), "jim@linuxpimps.com"},
30846
b0cbc7188152 Can I take some liberties?
Mark Doliner <markdoliner@pidgin.im>
parents: 30843
diff changeset
117 {"Sean Egan", NULL, "sean.egan@gmail.com"},
28615
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
118 {"Rob Flynn", N_("maintainer"), NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
119 {"Adam Fritzler", N_("libfaim maintainer"), NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
120 {"Christian 'ChipX86' Hammond", N_("webmaster"), NULL},
34518
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
121 {"Casey Harkins", NULL, NULL},
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
122 {"Ivan Komarov", NULL, "ivan.komarov@pidgin.im"},
13702
35310965f38a [gaim-migrate @ 16103]
Richard Laager <rlaager@pidgin.im>
parents: 13698
diff changeset
123 /* If "lazy bum" translates literally into a serious insult, use something else or omit it. */
28615
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
124 {"Syd Logan", N_("hacker and designated driver [lazy bum]"), NULL},
29861
bd942f02d71d Move some cats to the retired list because I haven't seen them around
Mark Doliner <markdoliner@pidgin.im>
parents: 29698
diff changeset
125 {"Christopher 'siege' O'Brien", NULL, "taliesein@users.sf.net"},
bd942f02d71d Move some cats to the retired list because I haven't seen them around
Mark Doliner <markdoliner@pidgin.im>
parents: 29698
diff changeset
126 {"Bartosz Oler", NULL, NULL},
30846
b0cbc7188152 Can I take some liberties?
Mark Doliner <markdoliner@pidgin.im>
parents: 30843
diff changeset
127 {"Tim 'marv' Ringenbach", NULL, NULL},
28615
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
128 {"Megan 'Cae' Schneider", N_("support/QA"), NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
129 {"Jim Seymour", N_("XMPP"), NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
130 {"Mark Spencer", N_("original author"), "markster@marko.net"},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
131 {"Nathan 'faceprint' Walp", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
132 {"Eric Warmenhoven", N_("lead developer"), "warmenhoven@yahoo.com"},
9758
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
133 {NULL, NULL, NULL}
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
134 };
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
135
18998
075149534705 Patch from John Bailey to bring the about window back to the present...
Gary Kramlich <grim@reaperworld.com>
parents: 18972
diff changeset
136 /* Order: Alphabetical by Last Name */
21091
07fe1a99c47b Patch from Andrew Gaul to constify a bunch of static variables to reduce
Ka-Hing Cheung <khc@pidgin.im>
parents: 20257
diff changeset
137 static const struct developer retired_patch_writers[] = {
28615
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
138 {"Felipe 'shx' Contreras", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
139 {"Decklin Foster", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
140 {"Peter 'Bleeter' Lawler", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
141 {"Robert 'Robot101' McQueen", NULL, NULL},
0759267334b3 Add Sulabh as a developer, as we were supposed to do once the Summer of Code
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
142 {"Benjamin Miller", NULL, NULL},
34518
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
143 {"Dennis 'EvilDennisR' Ristuccia", N_("Senior Contributor/QA"), NULL},
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
144 {"Peter 'Fmoo' Ruibal", NULL, NULL},
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
145 {"Gabriel 'Nix' Schulhof", NULL, NULL},
18998
075149534705 Patch from John Bailey to bring the about window back to the present...
Gary Kramlich <grim@reaperworld.com>
parents: 18972
diff changeset
146 {NULL, NULL, NULL}
075149534705 Patch from John Bailey to bring the about window back to the present...
Gary Kramlich <grim@reaperworld.com>
parents: 18972
diff changeset
147 };
075149534705 Patch from John Bailey to bring the about window back to the present...
Gary Kramlich <grim@reaperworld.com>
parents: 18972
diff changeset
148
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
149 /* Order: Code, then Alphabetical by Last Name
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
150 Use NULL language and code for secondary translators. */
24523
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
151 static const struct translator translators[] = {
23136
2e66d36b9405 Afrikaans translation updated (Samuel Murray)
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23113
diff changeset
152 {N_("Afrikaans"), "af", "Samuel Murray", "afrikaans@gmail.com"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
153 {NULL, NULL, "Friedel Wolff", "friedel@translate.org.za"},
20160
4cc4159743ae Plucked translation changes:
Richard Laager <rlaager@pidgin.im>
parents: 20147
diff changeset
154 {N_("Arabic"), "ar", "Khaled Hosny", "khaledhosny@eglug.org"},
30197
5e4ef59cde46 Updated translations.
Ethan Blanton <elb@pidgin.im>
parents: 29976
diff changeset
155 {N_("Assamese"), "as", "Amitakhya Phukan", "aphukan@fedoraproject.org"},
35290
5010e6877abc Add ast translation. Hopefully this doesn't break Windows :-/
Mark Doliner <mark@kingant.net>
parents: 34518
diff changeset
156 {N_("Asturian"), "ast", "Llumex03", "l.lumex03.tornes@gmail.com"},
19944
1d7ac60417b2 fixes #2743
Luke Schierer <lschiere@pidgin.im>
parents: 19939
diff changeset
157 {N_("Belarusian Latin"), "be@latin", "Ihar Hrachyshka", "ihar.hrachyshka@gmail.com"},
10852
acf09a205b3f [gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents: 10851
diff changeset
158 {N_("Bulgarian"), "bg", "Vladimira Girginova", "missing@here.is"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
159 {NULL, NULL, "Vladimir (Kaladan) Petkov", "kaladan@gmail.com"},
33081
2527a9bdb5d2 Re-sort translator lists.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33059
diff changeset
160 {N_("Bengali"), "bn", "Jamil Ahmed", "jamil@bengalinux.org"},
33082
cd284b4ca152 Merge with release-2.x.y.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33075 33081
diff changeset
161 {NULL, NULL, "Israt Jahan", "israt@ankur.org.bd"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
162 {NULL, NULL, "Samia Nimatullah", "mailsamia2001@yahoo.com"},
30880
7edf413efe1c I just noticed I didn't differentiate bn_IN from bn when I added this translation.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 30869
diff changeset
163 {N_("Bengali-India"), "bn_IN", "Runa Bhattacharjee", "runab@fedoraproject.org"},
36334
3eaa9ecc46d7 Add (empty) Breton translation
Richard Laager <rlaager@pidgin.im>
parents: 36217
diff changeset
164 {N_("Breton"), "br", "Gwenn Meynier", "tornoz@laposte.net"},
36096
6f13159fa4fd Add Chandrakant Dhutadmal for three languages
Richard Laager <rlaager@pidgin.im>
parents: 36095
diff changeset
165 {N_("Bodo"), "brx", "Chandrakant Dhutadmal", "cpdhutadmal@yahoo.com"},
11868
de112db7c33c [gaim-migrate @ 14159]
Luke Schierer <lschiere@pidgin.im>
parents: 11863
diff changeset
166 {N_("Bosnian"), "bs", "Lejla Hadzialic", "lejlah@gmail.com"},
15860
91fc3b830d63 lots of translation updates. Some of these I neglected for way too long.
Luke Schierer <lschiere@pidgin.im>
parents: 15670
diff changeset
167 {N_("Catalan"), "ca", "Josep Puigdemont", "josep.puigdemont@gmail.com"},
13738
79763a014fa1 [gaim-migrate @ 16147]
Luke Schierer <lschiere@pidgin.im>
parents: 13737
diff changeset
168 {N_("Valencian-Catalan"), "ca@valencia", "Toni Hermoso", "toniher@softcatala.org"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
169 {NULL, NULL, "Josep Puigdemont", "tradgnome@softcatala.org"},
22722
2b11acb49054 Czech translation updated (David Vachulka)
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22525
diff changeset
170 {N_("Czech"), "cs", "David Vachulka", "david@konstrukce-cad.com"},
35370
ec66c1d980ee Updated Danish translator.
Mark Doliner <mark@kingant.net>
parents: 35346
diff changeset
171 {N_("Danish"), "da", "Nicky Thomassen", "nicky@aptget.dk"},
34470
060470b23c48 I changed my Email address in translator's information
Bjoern Voigt <bjoern@cs.tu-berlin.de>
parents: 33778
diff changeset
172 {N_("German"), "de", "Björn Voigt", "bjoernv@arcor.de"},
15342
1b259c524a49 [gaim-migrate @ 18070]
Luke Schierer <lschiere@pidgin.im>
parents: 15108
diff changeset
173 {N_("Dzongkha"), "dz", "Norbu", "nor_den@hotmail.com"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
174 {NULL, NULL, "Jurmey Rabgay", "jur_gay@yahoo.com"},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
175 {NULL, NULL, "Wangmo Sherpa", "rinwanshe@yahoo.com"},
12062
2562ff52c825 [gaim-migrate @ 14357]
Ka-Hing Cheung <khc@pidgin.im>
parents: 12061
diff changeset
176 {N_("Greek"), "el", "Katsaloulis Panayotis", "panayotis@panayotis.com"},
33760
66611fba7197 Merge the release-2.x.y branch to main.
Mark Doliner <mark@kingant.net>
parents: 33599 33740
diff changeset
177 {NULL, NULL, "Panos Bouklis", "panos@echidna-band.com"},
35669
d90854f1bb0f Update the en_AU translator
Richard Laager <rlaager@pidgin.im>
parents: 35644
diff changeset
178 {N_("Australian English"), "en_AU", "Michael Findlay", "keltoiboy@gmail.com"},
31253
8fef564f7818 Updated British English translation by new translator. Fixes #13014.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31252
diff changeset
179 {N_("British English"), "en_GB", "Phil Hannent", "phil@hannent.co.uk"},
12062
2562ff52c825 [gaim-migrate @ 14357]
Ka-Hing Cheung <khc@pidgin.im>
parents: 12061
diff changeset
180 {N_("Canadian English"), "en_CA", "Adam Weinberger", "adamw@gnome.org"},
14873
2f8bd1b9261b [gaim-migrate @ 17577]
Luke Schierer <lschiere@pidgin.im>
parents: 14769
diff changeset
181 {N_("Esperanto"), "eo", "Stéphane Fillod", "fillods@users.sourceforge.net"},
10852
acf09a205b3f [gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents: 10851
diff changeset
182 {N_("Spanish"), "es", "Javier Fernández-Sanguino Peña", "jfs@debian.org"},
36097
385126da0582 Add KNTRO for Argentine Spanish
Richard Laager <rlaager@pidgin.im>
parents: 36096
diff changeset
183 {N_("Argentine Spanish"), "es_AR", "KNTRO", "tskuhn@gmail.com"},
19398
5ad393f0c59f 15 translation updates. Our translators rock!
Mark Doliner <markdoliner@pidgin.im>
parents: 19396
diff changeset
184 {N_("Estonian"), "et", "Ivar Smolin", "okul@linux.ee"},
28268
7d3179b279c5 Rename Euskera(Basque) (sic.) to Basque per translator. Closes #9838.
Paul Aurich <darkrain42@pidgin.im>
parents: 28081
diff changeset
185 {N_("Basque"), "eu", "Mikel Pascual Aldabaldetreku", "mikel.paskual@gmail.com"},
13380
7808b52120bc [gaim-migrate @ 15752]
Luke Schierer <lschiere@pidgin.im>
parents: 13320
diff changeset
186 {N_("Persian"), "fa", "Elnaz Sarbar", "elnaz@farsiweb.info"},
33082
cd284b4ca152 Merge with release-2.x.y.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33075 33081
diff changeset
187 {NULL, NULL, "Roozbeh Pournader", "roozbeh@farsiweb.info"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
188 {NULL, NULL, "Meelad Zakaria", "meelad@farsiweb.info"},
12494
e17696e1ecb2 [gaim-migrate @ 14806]
Luke Schierer <lschiere@pidgin.im>
parents: 12406
diff changeset
189 {N_("Finnish"), "fi", "Timo Jyrinki", "timo.jyrinki@iki.fi"},
24210
5e6d6f56294a Added Irish translation from Aaron Kearns. This technically addes a string ("Irish"), but I'm going to do it anyway. Fixes #6836.
Daniel Atallah <datallah@pidgin.im>
parents: 24079
diff changeset
190 {N_("Irish"), "ga", "Aaron Kearns", "ajkearns6@gmail.com"},
35370
ec66c1d980ee Updated Danish translator.
Mark Doliner <mark@kingant.net>
parents: 35346
diff changeset
191 {N_("Irish"), "ga", "Kevin Scannell", NULL},
18726
fa645710f82f fixes #2005
Mar Castro <mariamarcp@gmail.com>
parents: 18389
diff changeset
192 {N_("Galician"), "gl", "Mar Castro", "mariamarcp@gmail.com"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
193 {NULL, NULL, "Frco. Javier Rial", "fjrial@cesga.es"},
14123
7ae9b90ecf6f [gaim-migrate @ 16679]
Luke Schierer <lschiere@pidgin.im>
parents: 14105
diff changeset
194 {N_("Gujarati"), "gu", "Ankit Patel", "ankit_patel@users.sf.net"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
195 {NULL, NULL, N_("Gujarati Language Team"), "indianoss-gujarati@lists.sourceforge.net"},
13698
c8af27a6e76f [gaim-migrate @ 16099]
Mark Doliner <markdoliner@pidgin.im>
parents: 13648
diff changeset
196 {N_("Hebrew"), "he", "Shalom Craimer", "scraimer@gmail.com"},
31607
60b95a8d7cac Sangeeta Kumari & Rajesh Ranjan translate Hindi & Maithili
Richard Laager <rlaager@pidgin.im>
parents: 31506
diff changeset
197 {N_("Hindi"), "hi", "Sangeeta Kumari", "sangeeta_0975@yahoo.com"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
198 {NULL, NULL, "Rajesh Ranjan", "rajeshkajha@yahoo.com"},
31808
40248c682723 Added Croatian translation from Sabina Drempetić. Closes #13595
Paul Aurich <darkrain42@pidgin.im>
parents: 31667
diff changeset
199 {N_("Croatian"), "hr", "Sabina Drempetić", "bina91991@googlemail.com"},
19939
d3aa2056dcb3 Update the Hungarian translator in the about dialog. Fixes #3030.
Daniel Atallah <datallah@pidgin.im>
parents: 19869
diff changeset
200 {N_("Hungarian"), "hu", "Kelemen Gábor", "kelemeng@gnome.hu"},
15860
91fc3b830d63 lots of translation updates. Some of these I neglected for way too long.
Luke Schierer <lschiere@pidgin.im>
parents: 15670
diff changeset
201 {N_("Indonesian"), "id", "Rai S. Regawa", "raireg@yahoo.com"},
31629
df2688a99a87 Claudio asked that his e-mail address be updated. We missed this for 2.7.11.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31622
diff changeset
202 {N_("Italian"), "it", "Claudio Satriano", "satriano@gmail.com"},
31849
caf978a30ba0 Updated Japanese translation! I think the might not have been updated
Mark Doliner <markdoliner@pidgin.im>
parents: 31811
diff changeset
203 {N_("Japanese"), "ja", "Takayuki Kusano", "AE5T-KSN@asahi-net.or.jp"},
17204
32eac5324941 mark all translation teams as translatable. fixes #528
Luke Schierer <lschiere@pidgin.im>
parents: 17021
diff changeset
204 {N_("Georgian"), "ka", N_("Ubuntu Georgian Translators"), "alexander.didebulidze@stusta.mhn.de"},
35346
d6c77b70ab1c Add Baurzhan Muftakhidinov as Kazakh translator
Richard Laager <rlaager@pidgin.im>
parents: 35290
diff changeset
205 {N_("Kazakh"), "kk", "Baurzhan Muftakhidinov", "baurthefirst@gmail.com"},
26395
35dc600a5582 Mark "Khmer" as translatable since we're not in string freeze
Paul Aurich <darkrain42@pidgin.im>
parents: 26380
diff changeset
206 {N_("Khmer"), "km", "Khoem Sokhem", "khoemsokhem@khmeros.info"},
17204
32eac5324941 mark all translation teams as translatable. fixes #528
Luke Schierer <lschiere@pidgin.im>
parents: 17021
diff changeset
207 {N_("Kannada"), "kn", N_("Kannada Translation team"), "translation@sampada.info"},
18389
71e0a03f900e Credit the current Korean translator
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 18185
diff changeset
208 {N_("Korean"), "ko", "Sushizang", "sushizang@empal.com"},
36096
6f13159fa4fd Add Chandrakant Dhutadmal for three languages
Richard Laager <rlaager@pidgin.im>
parents: 36095
diff changeset
209 {N_("Kashmiri"), "kas", "Chandrakant Dhutadmal", "cpdhutadmal@yahoo.com"},
33081
2527a9bdb5d2 Re-sort translator lists.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33059
diff changeset
210 {N_("Kurdish"), "ku", "Amed Ç. Jiyan", "amedcj@hotmail.com"},
33082
cd284b4ca152 Merge with release-2.x.y.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33075 33081
diff changeset
211 {NULL, NULL, "Erdal Ronahi", "erdal.ronahi@gmail.com"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
212 {NULL, NULL, "Rizoyê Xerzî", "rizoxerzi@hotmail.com"},
36216
d49c53487db2 Add a(n empty) Kurdish (Sorani) translation
Richard Laager <rlaager@pidgin.im>
parents: 36118
diff changeset
213 {N_("Kurdish (Sorani)"), "ku_IQ", "Haval A. Ahmed", "haval.abdulkarim@gmail.com"},
33737
2ecfc558a382 11 translation updates from Transifex
Mark Doliner <mark@kingant.net>
parents: 33730
diff changeset
214 {N_("Lithuanian"), "lt", "Algimantas Margevičius", "margevicius.algimantas@gmail.com"},
35640
2bbaed527d93 Add an empty Latvian translation
Richard Laager <rlaager@pidgin.im>
parents: 35375
diff changeset
215 {N_("Latvian"), "lv", "Rudolfs Mazurs", "rudolfs.mazurs@gmail.com"},
30869
d25f5e40849a Mark this string as translatable now that we're out of freeze.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 30847
diff changeset
216 {N_("Maithili"), "mai", "Sangeeta Kumari", "sangeeta_0975@yahoo.com"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
217 {NULL, NULL, "Rajesh Ranjan", "rajeshkajha@yahoo.com"},
31339
7f75ceb36793 I think we can translate this now.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31253
diff changeset
218 {N_("Meadow Mari"), "mhr", "David Preece", "davidpreece1@gmail.com"},
17311
8b8bc06548a4 fixes #1200
Arangel Angov <arangel@linux.net.mk>
parents: 17304
diff changeset
219 {N_("Macedonian"), "mk", "Arangel Angov ", "arangel@linux.net.mk"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
220 {NULL, NULL, "Ivana Kirkovska", "ivana.kirkovska@gmail.com"},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
221 {NULL, NULL, "Jovan Naumovski", "jovan@lugola.net"},
30197
5e4ef59cde46 Updated translations.
Ethan Blanton <elb@pidgin.im>
parents: 29976
diff changeset
222 {N_("Malayalam"), "ml", "Ani Peter", "apeter@redhat.com"},
25560
e5b8d2a10cba Mark the string "Mongolian" as translatable
Mark Doliner <markdoliner@pidgin.im>
parents: 25412
diff changeset
223 {N_("Mongolian"), "mn", "gooyo", NULL},
29204
f78145febea1 Add Marathi translation from Sandeep Shedmake. Closes #11080.
Paul Aurich <darkrain42@pidgin.im>
parents: 29143
diff changeset
224 {N_("Marathi"), "mr", "Sandeep Shedmake", "sandeep.shedmake@gmail.com"},
36346
f4c32aca3f1f Merge the release-2.x.y branch into master.
Mark Doliner <mark@kingant.net>
parents: 36225 36345
diff changeset
225 {N_("Malay"), "ms_MY", "abuyop", "abuyop@gmail.com"},
33081
2527a9bdb5d2 Re-sort translator lists.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33059
diff changeset
226 {N_("Burmese"), "my_MM", "Thura Hlaing", "trhura@gmail.com"},
36070
d9bdf2de2504 Allan Nordhøy is taking over the Bokmål Norwegian translation
Richard Laager <rlaager@pidgin.im>
parents: 35669
diff changeset
227 {N_("Bokmål Norwegian"), "nb", "Allan Nordhøy", "epost@anotheragency.no"},
36337
bc480f3150cb Update the Nepali translator
Richard Laager <rlaager@pidgin.im>
parents: 36334
diff changeset
228 {N_("Nepali"), "ne", "Saroj Dhakal", "lotusnagarkot@gmail.com"},
30555
1254d19d4449 Updated Dutch translation from new maintainer Gideon van Melle. Fixes #12314.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 30552
diff changeset
229 {N_("Dutch, Flemish"), "nl", "Gideon van Melle", "translations@gvmelle.com"},
30557
d44157ecc9e3 Updated Norwegian Nynorsk translation and translator's e-mail address. Fixes #12348
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 30555
diff changeset
230 {N_("Norwegian Nynorsk"), "nn", "Yngve Spjeld Landro", "l10n@landro.net"},
35642
95c2903f8a73 Update the Occitan translator
Richard Laager <rlaager@pidgin.im>
parents: 35641
diff changeset
231 {N_("Occitan"), "oc", "Cédric Valmary", "cvalmary@yahoo.fr"},
29311
f9074cdafbff Updated translations. Closes #11280, #11266, #11254.
Paul Aurich <darkrain42@pidgin.im>
parents: 29204
diff changeset
232 {N_("Oriya"), "or", "Manoj Kumar Giri", "giri.manojkr@gmail.com"},
21564
c27904984697 credit due
Luke Schierer <lschiere@pidgin.im>
parents: 21453
diff changeset
233 {N_("Punjabi"), "pa", "Amanpreet Singh Alam", "aalam@users.sf.net"},
29346
30805ebadce0 Updated Marathi, Polish, and Ukranian translations. Closes #11328, #11329, #11332.
Paul Aurich <darkrain42@pidgin.im>
parents: 29319
diff changeset
234 {N_("Polish"), "pl", "Piotr Drąg", "piotrdrag@gmail.com"},
33778
28e546e29689 Add Paulo's email address.
Mark Doliner <mark@kingant.net>
parents: 33740
diff changeset
235 {N_("Portuguese"), "pt", "Paulo Ribeiro", "paulo@diffraction.pt"},
33730
80549b06cf11 pt_BR translation update. Fixes #15029
Daniel Atallah <datallah@pidgin.im>
parents: 33401
diff changeset
236 {N_("Portuguese-Brazil"), "pt_BR", "Renato Silva", "br.renatosilva@gmail.com"},
15860
91fc3b830d63 lots of translation updates. Some of these I neglected for way too long.
Luke Schierer <lschiere@pidgin.im>
parents: 15670
diff changeset
237 {N_("Pashto"), "ps", "Kashif Masood", "masudmails@yahoo.com"},
30197
5e4ef59cde46 Updated translations.
Ethan Blanton <elb@pidgin.im>
parents: 29976
diff changeset
238 {N_("Romanian"), "ro", "Mișu Moldovan", "dumol@gnome.org"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
239 {NULL, NULL, "Andrei Popescu", "andreimpopescu@gmail.com"},
25412
b6963853fd2c Russian translation updated by new translator Антон Самохвалов. Fixes #7946.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25410
diff changeset
240 {N_("Russian"), "ru", "Антон Самохвалов", "samant.ua@mail.ru"},
36096
6f13159fa4fd Add Chandrakant Dhutadmal for three languages
Richard Laager <rlaager@pidgin.im>
parents: 36095
diff changeset
241 {N_("Sindhi"), "sd", "Chandrakant Dhutadmal", "cpdhutadmal@yahoo.com"},
16016
38a4aed4924c translation updates. I would see if they compile, but I can't compile at all right now.
Luke Schierer <lschiere@pidgin.im>
parents: 15946
diff changeset
242 {N_("Slovak"), "sk", "Jozef Káčer", "quickparser@gmail.com"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
243 {NULL, NULL, "loptosko", "loptosko@gmail.com"},
16098
df4116d88f17 Remove some extraneous spaces from an e-mail address. If we're going to be linkifying these in the UI, they should work.
Richard Laager <rlaager@pidgin.im>
parents: 16071
diff changeset
244 {N_("Slovenian"), "sl", "Martin Srebotnjak", "miles@filmsi.net"},
16016
38a4aed4924c translation updates. I would see if they compile, but I can't compile at all right now.
Luke Schierer <lschiere@pidgin.im>
parents: 15946
diff changeset
245 {N_("Albanian"), "sq", "Besnik Bleta", "besnik@programeshqip.org"},
20137
59194466899c applied changes from 4788a5d2117e007ef1d389bdd939afdd70da53ca
Richard Laager <rlaager@pidgin.im>
parents: 20109
diff changeset
246 {N_("Serbian"), "sr", "Miloš Popović", "gpopac@gmail.com"},
34518
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
247 {N_("Serbian Latin"), "sr@latin", "Miloš Popović", "gpopac@gmail.com"},
33081
2527a9bdb5d2 Re-sort translator lists.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33059
diff changeset
248 {N_("Sinhala"), "si", "Yajith Ajantha Dayarathna", "yajith@gmail.com"},
33082
cd284b4ca152 Merge with release-2.x.y.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33075 33081
diff changeset
249 {NULL, NULL, "Danishka Navin", "snavin@redhat.com"},
36215
a7ec400d350e Josef Andersson is taking over the Swedish translation.
Richard Laager <rlaager@pidgin.im>
parents: 36214
diff changeset
250 {N_("Swedish"), "sv", "Josef Andersson", "josef.andersson@gmail.com"},
27179
8ae4c5293156 Further research leads me to believe this should be 'sw.po'. Correct me if I'm wrong. References #9057.
Paul Aurich <darkrain42@pidgin.im>
parents: 27178
diff changeset
251 {N_("Swahili"), "sw", "Paul Msegeya", "msegeya@gmail.com"},
29319
b5caa55d24db Updated Tamil translation. Closes #11085.
Paul Aurich <darkrain42@pidgin.im>
parents: 29311
diff changeset
252 {N_("Tamil"), "ta", "I. Felix", "ifelix25@gmail.com"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
253 {NULL, NULL, "Viveka Nathan K", "vivekanathan@users.sourceforge.net"},
35644
3bce877e1722 Revert to the old Telugu maintainer
Richard Laager <rlaager@pidgin.im>
parents: 35643
diff changeset
254 {N_("Telugu"), "te", "Krishnababu Krottapalli", "krottapalli@ymail.com"},
13736
af9e19324e74 [gaim-migrate @ 16145]
Luke Schierer <lschiere@pidgin.im>
parents: 13722
diff changeset
255 {N_("Thai"), "th", "Isriya Paireepairit", "markpeak@gmail.com"},
35641
fa4ee5636852 Add an empty Tatar translation
Richard Laager <rlaager@pidgin.im>
parents: 35640
diff changeset
256 {N_("Tatar"), "tt", "ILDAR Valeev", "v_ildar@bk.ru"},
28968
97f91c6a2410 Updated Ukranian translation. Closes #10239.
Paul Aurich <darkrain42@pidgin.im>
parents: 28621
diff changeset
257 {N_("Ukranian"), "uk", "Oleksandr Kovalenko", "alx.kovalenko@gmail.com"},
21592
81ee42f9d318 1)give credit
Luke Schierer <lschiere@pidgin.im>
parents: 21564
diff changeset
258 {N_("Urdu"), "ur", "RKVS Raman", "rkvsraman@gmail.com"},
36214
9ad79bb177e9 Mark the Uzbek translator's name for translation
Richard Laager <rlaager@pidgin.im>
parents: 36118
diff changeset
259 {N_("Uzbek"), "uz",
9ad79bb177e9 Mark the Uzbek translator's name for translation
Richard Laager <rlaager@pidgin.im>
parents: 36118
diff changeset
260 /* Translators: This is a person's name. For most languages we recommend
9ad79bb177e9 Mark the Uzbek translator's name for translation
Richard Laager <rlaager@pidgin.im>
parents: 36118
diff changeset
261 not translating it. */
9ad79bb177e9 Mark the Uzbek translator's name for translation
Richard Laager <rlaager@pidgin.im>
parents: 36118
diff changeset
262 N_("Akmal Khushvakov"), "uzbadmin@gmail.com"},
32101
fbe2ce8d288f Updated Vietnamese translation from a new translator
Mark Doliner <markdoliner@pidgin.im>
parents: 31989
diff changeset
263 {N_("Vietnamese"), "vi", "Nguyễn Vũ Hưng", "vuhung16plus@gmail.com"},
28451
61249b08ac5f Updated Simplified Chinese translation and email update. Closes #10165.
Paul Aurich <darkrain42@pidgin.im>
parents: 28394
diff changeset
264 {N_("Simplified Chinese"), "zh_CN", "Aron Xu", "happyaron.xu@gmail.com"},
17335
7a3b54790a3c proper credit
Luke Schierer <lschiere@pidgin.im>
parents: 17311
diff changeset
265 {N_("Hong Kong Chinese"), "zh_HK", "Abel Cheung", "abelindsay@gmail.com"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
266 {NULL, NULL, "Ambrose C. Li", "acli@ada.dhs.org"},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
267 {NULL, NULL, "Paladin R. Liu", "paladin@ms1.hinet.net"},
10852
acf09a205b3f [gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents: 10851
diff changeset
268 {N_("Traditional Chinese"), "zh_TW", "Ambrose C. Li", "acli@ada.dhs.org"},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
269 {NULL, NULL, "Paladin R. Liu", "paladin@ms1.hinet.net"},
9758
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
270 {NULL, NULL, NULL, NULL}
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
271 };
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
272
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
273
21091
07fe1a99c47b Patch from Andrew Gaul to constify a bunch of static variables to reduce
Ka-Hing Cheung <khc@pidgin.im>
parents: 20257
diff changeset
274 static const struct translator past_translators[] = {
12582
7ec164be569e [gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents: 12581
diff changeset
275 {N_("Amharic"), "am", "Daniel Yacob", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
276 {N_("Arabic"), "ar", "Mohamed Magdy", NULL},
12582
7ec164be569e [gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents: 12581
diff changeset
277 {N_("Bulgarian"), "bg", "Hristo Todorov", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
278 {N_("Bengali"), "bn", "Indranil Das Gupta", NULL},
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
279 {NULL, NULL, "Tisa Nafisa", NULL},
12582
7ec164be569e [gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents: 12581
diff changeset
280 {N_("Catalan"), "ca", "JM Pérez Cáncer", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
281 {NULL, NULL, "Robert Millan", NULL},
12582
7ec164be569e [gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents: 12581
diff changeset
282 {N_("Czech"), "cs", "Honza Král", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
283 {NULL, NULL, "Miloslav Trmac", NULL},
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
284 {N_("Danish"), "da", "Peter Bach", NULL},
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
285 {NULL, NULL, "Morten Brix Pedersen", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
286 {N_("German"), "de", "Daniel Seifert", NULL},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
287 {NULL, NULL, "Karsten Weiss", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
288 {NULL, NULL, "Jochen Kemnade", NULL},
35686
cae91a875b23 Merge release-2.x.y
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35527 35669
diff changeset
289 {N_("Australian English"), "en_AU", "Peter Lawler", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
290 {N_("British English"), "en_GB", "Luke Ross", NULL},
12582
7ec164be569e [gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents: 12581
diff changeset
291 {N_("Spanish"), "es", "JM Pérez Cáncer", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
292 {NULL, NULL, "Nicolás Lichtmaier", NULL},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
293 {NULL, NULL, "Amaya Rodrigo", NULL},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
294 {NULL, NULL, "Alejandro G Villar", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
295 {N_("Basque"), "eu", "Iñaki Larrañaga Murgoitio", NULL},
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
296 {NULL, NULL, "Hizkuntza Politikarako Sailburuordetza", NULL},
12582
7ec164be569e [gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents: 12581
diff changeset
297 {N_("Finnish"), "fi", "Arto Alakulju", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
298 {NULL, NULL, "Tero Kuusela", NULL},
12582
7ec164be569e [gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents: 12581
diff changeset
299 {N_("French"), "fr", "Sébastien François", NULL},
33082
cd284b4ca152 Merge with release-2.x.y.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33075 33081
diff changeset
300 {NULL, NULL, "Loïc Jeannin", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
301 {NULL, NULL, "Stéphane Pontier", NULL},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
302 {NULL, NULL, "Stéphane Wirtel", NULL},
36346
f4c32aca3f1f Merge the release-2.x.y branch into master.
Mark Doliner <mark@kingant.net>
parents: 36225 36345
diff changeset
303 {NULL, NULL, "Éric Boumaour", NULL},
19400
646e8bff2712 Update the Galician translators
Mark Doliner <markdoliner@pidgin.im>
parents: 19398
diff changeset
304 {N_("Galician"), "gl", "Ignacio Casal Quinteiro", NULL},
13698
c8af27a6e76f [gaim-migrate @ 16099]
Mark Doliner <markdoliner@pidgin.im>
parents: 13648
diff changeset
305 {N_("Hebrew"), "he", "Pavel Bibergal", NULL},
29933
1b4c2f07c1b7 Updated Hindi translation from Rajesh Ranjan, who I'm setting as the
Mark Doliner <markdoliner@pidgin.im>
parents: 29861
diff changeset
306 {N_("Hindi"), "hi", "Ravishankar Shrivastava", NULL},
19939
d3aa2056dcb3 Update the Hungarian translator in the about dialog. Fixes #3030.
Daniel Atallah <datallah@pidgin.im>
parents: 19869
diff changeset
307 {N_("Hungarian"), "hu", "Zoltan Sutto", NULL},
35375
8763d2c7eb4a Remove translations for three languages with <80 translated strings each.
Mark Doliner <mark@kingant.net>
parents: 35370
diff changeset
308 {N_("Armenian"), "hy", "David Avsharyan", NULL},
19939
d3aa2056dcb3 Update the Hungarian translator in the about dialog. Fixes #3030.
Daniel Atallah <datallah@pidgin.im>
parents: 19869
diff changeset
309 {N_("Italian"), "it", "Salvatore di Maggio", NULL},
31849
caf978a30ba0 Updated Japanese translation! I think the might not have been updated
Mark Doliner <markdoliner@pidgin.im>
parents: 31811
diff changeset
310 {N_("Japanese"), "ja", "Takashi Aihana", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
311 {NULL, NULL, "Ryosuke Kutsuna", NULL},
33082
cd284b4ca152 Merge with release-2.x.y.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33075 33081
diff changeset
312 {NULL, NULL, "Junichi Uekawa", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
313 {NULL, NULL, "Taku Yasui", NULL},
12582
7ec164be569e [gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents: 12581
diff changeset
314 {N_("Georgian"), "ka", "Temuri Doghonadze", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
315 {N_("Korean"), "ko", "Sang-hyun S", NULL},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
316 {NULL, NULL, "A Ho-seok Lee", NULL},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
317 {NULL, NULL, "Kyeong-uk Son", NULL},
35375
8763d2c7eb4a Remove translations for three languages with <80 translated strings each.
Mark Doliner <mark@kingant.net>
parents: 35370
diff changeset
318 {N_("Lao"), "lo", "Anousak Souphavah", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
319 {N_("Lithuanian"), "lt", "Laurynas Biveinis", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
320 {NULL, NULL, "Gediminas Čičinskas", NULL},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
321 {NULL, NULL, "Andrius Štikonas", NULL},
19398
5ad393f0c59f 15 translation updates. Our translators rock!
Mark Doliner <markdoliner@pidgin.im>
parents: 19396
diff changeset
322 {N_("Macedonian"), "mk", "Tomislav Markovski", NULL},
35375
8763d2c7eb4a Remove translations for three languages with <80 translated strings each.
Mark Doliner <mark@kingant.net>
parents: 35370
diff changeset
323 {N_("Malay"), "ms_MY", "Muhammad Najmi bin Ahmad Zabidi", NULL},
36119
b2ad25dfbd57 Merge release-2.x.y
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35912 36118
diff changeset
324 {N_("Bokmål Norwegian"), "nb", "Hans Fredrik Nordhaug", NULL},
b2ad25dfbd57 Merge release-2.x.y
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35912 36118
diff changeset
325 {NULL, NULL, "Hallvard Glad", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
326 {NULL, NULL, "Petter Johan Olsen", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
327 {NULL, NULL, "Espen Stefansen", NULL},
36337
bc480f3150cb Update the Nepali translator
Richard Laager <rlaager@pidgin.im>
parents: 36334
diff changeset
328 {N_("Nepali"), "ne", "Shyam Krishna Bal", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
329 {N_("Dutch, Flemish"), "nl", "Vincent van Adrighem", NULL},
35686
cae91a875b23 Merge release-2.x.y
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35527 35669
diff changeset
330 {N_("Occitan"), "oc", "Yannig Marchegay", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
331 {N_("Polish"), "pl", "Krzysztof Foltman", NULL},
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
332 {NULL, NULL, "Paweł Godlewski", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
333 {NULL, NULL, "Piotr Makowski", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
334 {NULL, NULL, "Emil Nowak", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
335 {NULL, NULL, "Przemysław Sułek", NULL},
33737
2ecfc558a382 11 translation updates from Transifex
Mark Doliner <mark@kingant.net>
parents: 33730
diff changeset
336 {N_("Portuguese"), "pt", "Duarte Henriques", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
337 {N_("Portuguese-Brazil"), "pt_BR", "Maurício de Lemos Rodrigues Collares Neto", NULL},
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
338 {N_("Portuguese-Brazil"), "pt_BR", "Rodrigo Luiz Marques Flores", NULL},
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
339 {N_("Russian"), "ru", "Dmitry Beloglazov", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
340 {NULL, NULL, "Alexandre Prokoudine", NULL},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
341 {NULL, NULL, "Sergey Volozhanin", NULL},
12582
7ec164be569e [gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents: 12581
diff changeset
342 {N_("Slovak"), "sk", "Daniel Režný", NULL},
33082
cd284b4ca152 Merge with release-2.x.y.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33075 33081
diff changeset
343 {NULL, NULL, "Richard Golier", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
344 {NULL, NULL, "helix84", NULL},
15009
0c220003bc85 [gaim-migrate @ 17719]
Mark Doliner <markdoliner@pidgin.im>
parents: 15008
diff changeset
345 {N_("Slovenian"), "sl", "Matjaz Horvat", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
346 {N_("Serbian"), "sr", "Danilo Šegan", NULL},
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
347 {NULL, NULL, "Aleksandar Urosevic", NULL},
36225
c9cc21192acf Remove email address for past translator.
Mark Doliner <mark@kingant.net>
parents: 36222
diff changeset
348 {N_("Swedish"), "sv", "Peter Hjalmarsson", NULL},
36222
fd55a0f119db Merge release-2.x.y branch into master.
Mark Doliner <mark@kingant.net>
parents: 36119 36217
diff changeset
349 {N_("Swedish"), NULL, "Tore Lundqvist", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
350 {NULL, NULL, "Christian Rose", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
351 {N_("Telugu"), "te", "Mr. Subbaramaih", NULL},
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
352 {N_("Turkish"), "tr", "Serdar Soytetir", NULL},
33470
0f5fd72228e3 Update some translator information
Richard Laager <rlaager@pidgin.im>
parents: 33219
diff changeset
353 {NULL, "tr", "Ahmet Alp Balkan", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
354 {N_("Vietnamese"), "vi", N_("T.M.Thanh and the Gnome-Vi Team"), NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
355 {N_("Simplified Chinese"), "zh_CN", "Hashao", NULL},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
356 {NULL, NULL, "Rocky S. Lee", NULL},
35373
dd4c9b8f39e3 Remove email addresses for retired translators.
Mark Doliner <mark@kingant.net>
parents: 35372
diff changeset
357 {NULL, NULL, "Funda Wang", NULL},
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
358 {N_("Traditional Chinese"), "zh_TW", "Hashao", NULL},
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
359 {NULL, NULL, "Rocky S. Lee", NULL},
9758
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
360 {NULL, NULL, NULL, NULL}
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
361 };
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
362
24523
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
363 static void
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
364 add_developers(GString *str, const struct developer *list)
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
365 {
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
366 for (; list->name != NULL; list++) {
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
367 if (list->email != NULL) {
34518
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
368 const gchar *proto = "mailto:";
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
369 if (strchr(list->email, ':') != NULL)
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
370 proto = "";
32881
4ef6d1d86818 Add a title attribute to links so that they'll show a tooltip.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32880
diff changeset
371 g_string_append_printf(str,
34517
cf55be38bbbc Add my website as a link at my name in devs dialog
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34466
diff changeset
372 "<li><a href=\"%s%s\" title=\"%s\">%s</a>%s%s%s</li>",
34518
0f6b8329b941 Update 2.x.y about dialogs with default branch contacts
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34472
diff changeset
373 proto,
32881
4ef6d1d86818 Add a title attribute to links so that they'll show a tooltip.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32880
diff changeset
374 list->email, list->email, _(list->name),
24523
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
375 list->role ? " (" : "",
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
376 list->role ? _(list->role) : "",
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
377 list->role ? ")" : "");
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
378 } else {
32875
8b2c2178a4ca Update HTML in the Developer Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32874
diff changeset
379 g_string_append_printf(str, "<li>%s%s%s%s</li>",
24523
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
380 _(list->name),
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
381 list->role ? " (" : "",
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
382 list->role ? _(list->role) : "",
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
383 list->role ? ")" : "");
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
384 }
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
385 }
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
386 }
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
387
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
388 static void
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
389 add_translators(GString *str, const struct translator *list)
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
390 {
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
391 for (; list->name != NULL; list++) {
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
392 if (list->language && list->abbr) {
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
393 g_string_append_printf(str, "<dt>%s (%s)</dt>",
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
394 _(list->language), list->abbr);
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
395 }
24523
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
396 if (list->email != NULL) {
32881
4ef6d1d86818 Add a title attribute to links so that they'll show a tooltip.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32880
diff changeset
397 g_string_append_printf(str,
4ef6d1d86818 Add a title attribute to links so that they'll show a tooltip.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32880
diff changeset
398 "<dd><a href=\"mailto:%s\" title=\"%s\">%s</a></dd>",
4ef6d1d86818 Add a title attribute to links so that they'll show a tooltip.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32880
diff changeset
399 list->email, list->email,
24523
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
400 _(list->name));
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
401 } else {
32878
3d63e0a0c3f7 Show multiple translators under the same language entry.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32877
diff changeset
402 g_string_append_printf(str, "<dd>%s</dd>", _(list->name));
24523
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
403 }
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
404 }
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
405 }
d0d7fa4aca38 Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents: 24522
diff changeset
406
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
407 void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
408 pidgin_dialogs_destroy_all()
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
409 {
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
410 while (dialogwindows) {
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
411 gtk_widget_destroy(dialogwindows->data);
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
412 dialogwindows = g_list_remove(dialogwindows, dialogwindows->data);
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
413 }
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
414 }
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
415
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
416 static void destroy_win(GtkWidget *button, GtkWidget *win)
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
417 {
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
418 gtk_widget_destroy(win);
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
419 }
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
420
20109
47e44a7b0fb9 applied changes from 6e915e14a78ccafa5e0ddfdcabccc2e174c734e3
Richard Laager <rlaager@pidgin.im>
parents: 20039
diff changeset
421 #if 0
25888
d0fdd378a635 Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents: 25869
diff changeset
422 /* This function puts the version number onto the pixmap we use in the 'about'
16471
0b836d290d38 another s/Purple/Pidgin/ - how many years until we've found all of these?
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16464
diff changeset
423 * screen in Pidgin. */
14252
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
424 static void
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15498
diff changeset
425 pidgin_logo_versionize(GdkPixbuf **original, GtkWidget *widget) {
14252
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
426 GdkPixmap *pixmap;
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
427 GtkStyle *style;
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
428 PangoContext *context;
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
429 PangoLayout *layout;
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
430 gchar *markup;
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
431 gint width, height;
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
432 gint lwidth = 0, lheight = 0;
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
433
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
434 style = gtk_widget_get_style(widget);
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
435
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
436 gdk_pixbuf_render_pixmap_and_mask(*original, &pixmap, NULL, 255);
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
437 width = gdk_pixbuf_get_width(*original);
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
438 height = gdk_pixbuf_get_height(*original);
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
439 g_object_unref(G_OBJECT(*original));
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
440
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
441 context = gtk_widget_get_pango_context(widget);
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
442 layout = pango_layout_new(context);
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
443
21106
b85fbef13eed Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21091
diff changeset
444 markup = g_strdup_printf("<span foreground=\"#000000\">%s</span>", DISPLAY_VERSION);
14252
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
445 pango_layout_set_font_description(layout, style->font_desc);
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
446 pango_layout_set_markup(layout, markup, strlen(markup));
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
447 g_free(markup);
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
448
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
449 pango_layout_get_pixel_size(layout, &lwidth, &lheight);
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
450 gdk_draw_layout(GDK_DRAWABLE(pixmap), style->bg_gc[GTK_STATE_NORMAL],
19869
62a227ad812d Add a new 2.2.0 about image from hbons and move the version number up and out of the way.
Kevin Stange <kstange@pidgin.im>
parents: 19863
diff changeset
451 width - (lwidth + 3), 1, layout);
14252
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
452 g_object_unref(G_OBJECT(layout));
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
453
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
454 *original = gdk_pixbuf_get_from_drawable(NULL, pixmap, NULL,
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
455 0, 0, 0, 0,
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
456 width, height);
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
457 g_object_unref(G_OBJECT(pixmap));
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
458 }
20109
47e44a7b0fb9 applied changes from 6e915e14a78ccafa5e0ddfdcabccc2e174c734e3
Richard Laager <rlaager@pidgin.im>
parents: 20039
diff changeset
459 #endif
14252
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
460
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
461 /* Note: Frees 'string' */
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
462 static GtkWidget *
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
463 pidgin_build_help_dialog(const char *title, const char *role, GString *string)
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
464 {
32522
8dea964d2d5b Use pidgin_create_webview to make the Help dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32507
diff changeset
465 GtkWidget *win, *vbox, *frame, *logo, *webview, *button;
14252
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
466 GdkPixbuf *pixbuf;
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
467 AtkObject *obj;
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
468 char *filename, *tmp;
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
469
33141
2001ba1d6827 Remove extra padding that makes things look not-so-good.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33138
diff changeset
470 win = pidgin_create_dialog(title, 0, role, TRUE);
2001ba1d6827 Remove extra padding that makes things look not-so-good.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33138
diff changeset
471 vbox = pidgin_dialog_get_vbox_with_properties(GTK_DIALOG(win), FALSE, 0);
33145
eca262aa23ff Increase the Help dialog widths to fit the revision by default.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33142
diff changeset
472 gtk_window_set_default_size(GTK_WINDOW(win), 475, 450);
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
473
14252
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
474 /* Generate a logo with a version number */
35850
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35686
diff changeset
475 filename = g_build_filename(PURPLE_DATADIR,
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35686
diff changeset
476 "pixmaps", "pidgin", "logo.png", NULL);
31889
96183796df0c Start looking at the GError parameter every time we call these functions:
Mark Doliner <markdoliner@pidgin.im>
parents: 31849
diff changeset
477 pixbuf = pidgin_pixbuf_new_from_file(filename);
14252
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
478 g_free(filename);
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
479
20039
9fc4dcfbeeec whoops! do if 0, not ifdef 0
Sean Egan <seanegan@pidgin.im>
parents: 20035
diff changeset
480 #if 0 /* Don't versionize the logo when the logo has the version in it */
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15498
diff changeset
481 pidgin_logo_versionize(&pixbuf, logo);
20035
f53b7f917c1c remove logo versionizing
Sean Egan <seanegan@pidgin.im>
parents: 19995
diff changeset
482 #endif
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
483
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
484 /* Insert the logo */
14252
d10dda2777a9 [gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14123
diff changeset
485 logo = gtk_image_new_from_pixbuf(pixbuf);
30552
cd97874e325e Don't assert if logo is missing. This shouldn't really affect people
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 30197
diff changeset
486 if (pixbuf)
cd97874e325e Don't assert if logo is missing. This shouldn't really affect people
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 30197
diff changeset
487 g_object_unref(G_OBJECT(pixbuf));
10266
073aeb0c9117 [gaim-migrate @ 11412]
Mark Doliner <markdoliner@pidgin.im>
parents: 10246
diff changeset
488 obj = gtk_widget_get_accessible(logo);
21106
b85fbef13eed Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21091
diff changeset
489 tmp = g_strconcat(PIDGIN_NAME, " " DISPLAY_VERSION, NULL);
16977
c9cb49bea66d Change the PIDGIN_NAME stuff to allow translators to transliterate the
Richard Laager <rlaager@pidgin.im>
parents: 16961
diff changeset
490 atk_object_set_description(obj, tmp);
c9cb49bea66d Change the PIDGIN_NAME stuff to allow translators to transliterate the
Richard Laager <rlaager@pidgin.im>
parents: 16961
diff changeset
491 g_free(tmp);
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
492 gtk_box_pack_start(GTK_BOX(vbox), logo, FALSE, FALSE, 0);
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
493
34274
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33955
diff changeset
494 frame = pidgin_create_webview(FALSE, &webview, NULL);
35500
ae6432ea326f Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents: 35499
diff changeset
495 pidgin_webview_set_format_functions(PIDGIN_WEBVIEW(webview), PIDGIN_WEBVIEW_ALL ^ PIDGIN_WEBVIEW_SMILEY);
10175
2bf5ed145e8a [gaim-migrate @ 11290]
Mark Doliner <markdoliner@pidgin.im>
parents: 10167
diff changeset
496 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0);
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
497
35500
ae6432ea326f Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents: 35499
diff changeset
498 pidgin_webview_append_html(PIDGIN_WEBVIEW(webview), string->str);
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
499
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
500 button = pidgin_dialog_add_button(GTK_DIALOG(win), GTK_STOCK_CLOSE,
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
501 G_CALLBACK(destroy_win), win);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
502
32914
9d3d02829373 Fix calls to GTK_WIDGET_SET_FLAGS, which oddly enough does not seem to
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32912
diff changeset
503 gtk_widget_set_can_default(button, TRUE);
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
504 gtk_widget_grab_default(button);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
505
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
506 gtk_widget_show_all(win);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
507 gtk_window_present(GTK_WINDOW(win));
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
508
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
509 g_string_free(string, TRUE);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
510
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
511 return win;
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
512 }
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
513
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
514 void pidgin_dialogs_about(void)
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
515 {
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
516 GString *str;
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
517 char *tmp;
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
518 static GtkWidget *about = NULL;
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
519
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
520 if (about != NULL) {
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
521 gtk_window_present(GTK_WINDOW(about));
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
522 return;
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
523 }
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
524
9758
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
525 str = g_string_sized_new(4096);
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
526
16071
044392e01c96 make things cleaner for translators
Nathan Walp <nwalp@pidgin.im>
parents: 16023
diff changeset
527 g_string_append_printf(str,
32873
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
528 "<h2>%s %s</h2>"
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
529 "<strong>(libpurple %s)<br/>%s</strong>",
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
530 PIDGIN_NAME, DISPLAY_VERSION,
29526
4d80da555ecb This change is probably going to be unpopular, but I ask that people give it
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29525
diff changeset
531 purple_core_get_version(), REVISION);
4d80da555ecb This change is probably going to be unpopular, but I ask that people give it
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29525
diff changeset
532
4d80da555ecb This change is probably going to be unpopular, but I ask that people give it
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29525
diff changeset
533 g_string_append_printf(str,
32873
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
534 _("<p>%s is a messaging client based on libpurple which is capable of "
29526
4d80da555ecb This change is probably going to be unpopular, but I ask that people give it
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29525
diff changeset
535 "connecting to multiple messaging services at once. %s is written "
4d80da555ecb This change is probably going to be unpopular, but I ask that people give it
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29525
diff changeset
536 "in C using GTK+. %s is released, and may be modified and "
4d80da555ecb This change is probably going to be unpopular, but I ask that people give it
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29525
diff changeset
537 "redistributed, under the terms of the GPL version 2 (or later). "
4d80da555ecb This change is probably going to be unpopular, but I ask that people give it
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29525
diff changeset
538 "A copy of the GPL is distributed with %s. %s is copyrighted by "
4d80da555ecb This change is probably going to be unpopular, but I ask that people give it
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29525
diff changeset
539 "its contributors, a list of whom is also distributed with %s. "
32873
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
540 "There is no warranty for %s.</p>"), PIDGIN_NAME, PIDGIN_NAME,
29526
4d80da555ecb This change is probably going to be unpopular, but I ask that people give it
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29525
diff changeset
541 PIDGIN_NAME, PIDGIN_NAME, PIDGIN_NAME, PIDGIN_NAME, PIDGIN_NAME);
20109
47e44a7b0fb9 applied changes from 6e915e14a78ccafa5e0ddfdcabccc2e174c734e3
Richard Laager <rlaager@pidgin.im>
parents: 20039
diff changeset
542
47e44a7b0fb9 applied changes from 6e915e14a78ccafa5e0ddfdcabccc2e174c734e3
Richard Laager <rlaager@pidgin.im>
parents: 20039
diff changeset
543 g_string_append_printf(str,
32873
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
544 _("<h3>Helpful Resources</h3>"
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
545 "<ul>"
32881
4ef6d1d86818 Add a title attribute to links so that they'll show a tooltip.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32880
diff changeset
546 "<li><a href=\"%s\" title=\"%s\">Website</a></li>"
4ef6d1d86818 Add a title attribute to links so that they'll show a tooltip.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32880
diff changeset
547 "<li><a href=\"%s\" title=\"%s\">Frequently Asked Questions</a></li>"
32873
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
548 "<li>IRC Channel: #pidgin on irc.freenode.net</li>"
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
549 "<li>XMPP MUC: devel@conference.pidgin.im</li>"
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
550 "</ul>"),
32881
4ef6d1d86818 Add a title attribute to links so that they'll show a tooltip.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32880
diff changeset
551 PURPLE_WEBSITE, PURPLE_WEBSITE,
33955
55aa58076485 Use https URLs for pidgin.im and developer.pidgin.im.
Mark Doliner <mark@kingant.net>
parents: 33954
diff changeset
552 "https://developer.pidgin.im/wiki/FAQ",
55aa58076485 Use https URLs for pidgin.im and developer.pidgin.im.
Mark Doliner <mark@kingant.net>
parents: 33954
diff changeset
553 "https://developer.pidgin.im/wiki/FAQ");
20109
47e44a7b0fb9 applied changes from 6e915e14a78ccafa5e0ddfdcabccc2e174c734e3
Richard Laager <rlaager@pidgin.im>
parents: 20039
diff changeset
554
33740
261e15fb8b91 Fix a few warnings
Daniel Atallah <datallah@pidgin.im>
parents: 33737
diff changeset
555 g_string_append(str,
33760
66611fba7197 Merge the release-2.x.y branch to main.
Mark Doliner <mark@kingant.net>
parents: 33599 33740
diff changeset
556 "<p><strong>Help for Oracle Employees</strong> is "
33401
95f3a353993a This is a tamed down version of the original string I proposed on the mailing
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 33081
diff changeset
557 "available from your normal internal helpdesk or IT department. "
95f3a353993a This is a tamed down version of the original string I proposed on the mailing
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 33081
diff changeset
558 "The Pidgin developer and user communities cannot assist you in "
95f3a353993a This is a tamed down version of the original string I proposed on the mailing
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 33081
diff changeset
559 "the configuration or use of Pidgin within Oracle, as we know "
33760
66611fba7197 Merge the release-2.x.y branch to main.
Mark Doliner <mark@kingant.net>
parents: 33599 33740
diff changeset
560 "nothing of Oracle's infrastructure.</p>");
33401
95f3a353993a This is a tamed down version of the original string I proposed on the mailing
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 33081
diff changeset
561
20109
47e44a7b0fb9 applied changes from 6e915e14a78ccafa5e0ddfdcabccc2e174c734e3
Richard Laager <rlaager@pidgin.im>
parents: 20039
diff changeset
562 g_string_append_printf(str,
32873
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
563 _("<p><strong>Help from other Pidgin users</strong> is available "
32881
4ef6d1d86818 Add a title attribute to links so that they'll show a tooltip.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32880
diff changeset
564 "by e-mailing <a href=\"mailto:%s\">%s</a>.<br/>"
32873
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
565 "This is a <strong>public</strong> mailing list! "
32881
4ef6d1d86818 Add a title attribute to links so that they'll show a tooltip.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32880
diff changeset
566 "(<a href=\"%s\" title=\"%s\">archive</a>)<br/>"
29526
4d80da555ecb This change is probably going to be unpopular, but I ask that people give it
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29525
diff changeset
567 "We can't help with third-party protocols or plugins!<br/>"
33761
925e38bc31b5 I don't like putting "English" in bold. It makes it sound like we're
Mark Doliner <mark@kingant.net>
parents: 33760
diff changeset
568 "This list's primary language is English. You "
32873
02dcd29a87b9 Use better HTML in the About dialog. Since WebKit is rendering this
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32872
diff changeset
569 "are welcome to post in another language, but the responses may "
32881
4ef6d1d86818 Add a title attribute to links so that they'll show a tooltip.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32880
diff changeset
570 "be less helpful.</p>"),
4ef6d1d86818 Add a title attribute to links so that they'll show a tooltip.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32880
diff changeset
571 "support@pidgin.im", "support@pidgin.im",
33955
55aa58076485 Use https URLs for pidgin.im and developer.pidgin.im.
Mark Doliner <mark@kingant.net>
parents: 33954
diff changeset
572 "https://pidgin.im/pipermail/support/",
55aa58076485 Use https URLs for pidgin.im and developer.pidgin.im.
Mark Doliner <mark@kingant.net>
parents: 33954
diff changeset
573 "https://pidgin.im/pipermail/support/");
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
574
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
575 tmp = g_strdup_printf(_("About %s"), PIDGIN_NAME);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
576 about = pidgin_build_help_dialog(tmp, "about", str);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
577 g_signal_connect(G_OBJECT(about), "destroy", G_CALLBACK(gtk_widget_destroyed), &about);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
578 g_free(tmp);
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
579 }
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
580
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
581 void pidgin_dialogs_buildinfo(void)
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
582 {
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
583 GString *str;
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
584 char *tmp;
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
585 static GtkWidget *buildinfo = NULL;
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
586
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
587 if (buildinfo != NULL) {
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
588 gtk_window_present(GTK_WINDOW(buildinfo));
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
589 return;
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
590 }
25888
d0fdd378a635 Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents: 25869
diff changeset
591
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
592 str = g_string_sized_new(4096);
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
593
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
594 g_string_append_printf(str,
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
595 "<h2>%s %s</h2>"
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
596 "<strong>(libpurple %s)<br/>%s</strong>",
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
597 PIDGIN_NAME, DISPLAY_VERSION, purple_core_get_version(), REVISION);
9758
bad4efbbfbf5 [gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents: 9753
diff changeset
598
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
599 g_string_append_printf(str, "<h3>%s</h3><dl>", _("Build Information"));
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
600
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
601 /* The following is primarily intended for user/developer interaction and
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
602 thus ought not be translated */
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
603
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
604 #ifdef CONFIG_ARGS /* win32 build doesn't use configure */
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
605 g_string_append(str, "<dt>Arguments to <em>./configure</em>:</dt><dd>" CONFIG_ARGS "</dd>");
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
606 #endif
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
607
12534
6a460e34aa08 [gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents: 12511
diff changeset
608 #ifndef _WIN32
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
609 #ifdef DEBUG
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
610 g_string_append(str, "<dt>Print debugging messages:</dt><dd>Yes</dd>");
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
611 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
612 g_string_append(str, "<dt>Print debugging messages:</dt><dd>No</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
613 #endif
12534
6a460e34aa08 [gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents: 12511
diff changeset
614 #endif
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
615
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
616 #ifdef PURPLE_PLUGINS
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
617 g_string_append(str, "<dt>Plugins:</dt><dd>Enabled</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
618 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
619 g_string_append(str, "<dt>Plugins:</dt><dd>Disabled</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
620 #endif
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
621
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
622 g_string_append(str, "<dt>SSL:</dt><dd>SSL support is present.</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
623
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
624 g_string_append_printf(str, "<dt>GTK+ Runtime:</dt><dd>%u.%u.%u</dd>"
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
625 "<dt>GLib Runtime:</dt><dd>%u.%u.%u</dd>",
13648
c6395449b56a [gaim-migrate @ 16048]
Daniel Atallah <datallah@pidgin.im>
parents: 13597
diff changeset
626 gtk_major_version, gtk_minor_version, gtk_micro_version,
c6395449b56a [gaim-migrate @ 16048]
Daniel Atallah <datallah@pidgin.im>
parents: 13597
diff changeset
627 glib_major_version, glib_minor_version, glib_micro_version);
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
628
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
629 g_string_append(str, "</dl><h3>Library Support</h3><dl>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
630
12511
9d852d6b1136 [gaim-migrate @ 14823]
Richard Laager <rlaager@pidgin.im>
parents: 12504
diff changeset
631 #ifdef HAVE_CYRUS_SASL
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
632 g_string_append_printf(str, "<dt>Cyrus SASL:</dt><dd>Enabled</dd>");
12511
9d852d6b1136 [gaim-migrate @ 14823]
Richard Laager <rlaager@pidgin.im>
parents: 12504
diff changeset
633 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
634 g_string_append_printf(str, "<dt>Cyrus SASL:</dt><dd>Disabled</dd>");
12511
9d852d6b1136 [gaim-migrate @ 14823]
Richard Laager <rlaager@pidgin.im>
parents: 12504
diff changeset
635 #endif
9d852d6b1136 [gaim-migrate @ 14823]
Richard Laager <rlaager@pidgin.im>
parents: 12504
diff changeset
636
12534
6a460e34aa08 [gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents: 12511
diff changeset
637 #ifndef _WIN32
12967
8e59b7aa8ae0 [gaim-migrate @ 15320]
Etan Reisner <deryni@pidgin.im>
parents: 12938
diff changeset
638 #ifdef HAVE_DBUS
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
639 g_string_append_printf(str, "<dt>D-Bus:</dt><dd>Enabled</dd>");
12967
8e59b7aa8ae0 [gaim-migrate @ 15320]
Etan Reisner <deryni@pidgin.im>
parents: 12938
diff changeset
640 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
641 g_string_append_printf(str, "<dt>D-Bus:</dt><dd>Disabled</dd>");
12967
8e59b7aa8ae0 [gaim-migrate @ 15320]
Etan Reisner <deryni@pidgin.im>
parents: 12938
diff changeset
642 #endif
8e59b7aa8ae0 [gaim-migrate @ 15320]
Etan Reisner <deryni@pidgin.im>
parents: 12938
diff changeset
643
10835
9bd71d67d4a6 [gaim-migrate @ 12507]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10832
diff changeset
644 #ifdef HAVE_EVOLUTION_ADDRESSBOOK
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
645 g_string_append_printf(str, "<dt>Evolution Addressbook:</dt><dd>Enabled</dd>");
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
646 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
647 g_string_append_printf(str, "<dt>Evolution Addressbook:</dt><dd>Disabled</dd>");
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
648 #endif
12534
6a460e34aa08 [gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents: 12511
diff changeset
649 #endif
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
650
36118
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36097
diff changeset
651 #ifdef HAVE_LIBGADU
35147
03d1fa876658 Partially revert 34ff4ee99c48: don't link libgadu directly with Pidgin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35140
diff changeset
652 g_string_append(str, "<dt>Gadu-Gadu library (libgadu):</dt><dd>External</dd>");
13320
b562b1baf10a [gaim-migrate @ 15688]
Richard Laager <rlaager@pidgin.im>
parents: 13281
diff changeset
653 #else
36119
b2ad25dfbd57 Merge release-2.x.y
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35912 36118
diff changeset
654 g_string_append(str, "<dt>Gadu-Gadu library (libgadu):</dt><dd>Internal</dd>");
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
655 #endif
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
656
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
657 #ifdef HAVE_GNUTLS
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
658 g_string_append(str, "<dt>GnuTLS:</dt><dd>Enabled</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
659 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
660 g_string_append(str, "<dt>GnuTLS:</dt><dd>Disabled</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
661 #endif
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
662
13720
051ef816673a [gaim-migrate @ 16127]
Sean Egan <seanegan@pidgin.im>
parents: 13702
diff changeset
663 #ifdef USE_GSTREAMER
33836
9555c8a2cd8b Show GTK and GStreamer version in Build Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33599
diff changeset
664 tmp = gst_version_string();
9555c8a2cd8b Show GTK and GStreamer version in Build Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33599
diff changeset
665 g_string_append_printf(str, "<dt>GStreamer:</dt><dd>%s</dd>", tmp);
9555c8a2cd8b Show GTK and GStreamer version in Build Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33599
diff changeset
666 g_free(tmp);
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
667 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
668 g_string_append(str, "<dt>GStreamer:</dt><dd>Disabled</dd>");
12534
6a460e34aa08 [gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents: 12511
diff changeset
669 #endif
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
670
14887
067f351ad90a [gaim-migrate @ 17592]
Daniel Atallah <datallah@pidgin.im>
parents: 14881
diff changeset
671 #ifndef _WIN32
12122
f030c57a9e62 [gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents: 12120
diff changeset
672 #ifdef ENABLE_MONO
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
673 g_string_append(str, "<dt>Mono:</dt><dd>Enabled</dd>");
12122
f030c57a9e62 [gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents: 12120
diff changeset
674 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
675 g_string_append(str, "<dt>Mono:</dt><dd>Disabled</dd>");
12122
f030c57a9e62 [gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents: 12120
diff changeset
676 #endif
14887
067f351ad90a [gaim-migrate @ 17592]
Daniel Atallah <datallah@pidgin.im>
parents: 14881
diff changeset
677 #endif
12122
f030c57a9e62 [gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents: 12120
diff changeset
678
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
679 #ifdef HAVE_NSS
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
680 g_string_append(str, "<dt>Network Security Services (NSS):</dt><dd>Enabled</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
681 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
682 g_string_append(str, "<dt>Network Security Services (NSS):</dt><dd>Disabled</dd>");
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
683 #endif
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
684
36986
2326ab164e3a Add reminders to display perl and tcl status in gtkdialog when API available
Ankit Vani <a@nevitus.org>
parents: 36978
diff changeset
685 #warning TODO: Check for perl.
36431
ea007725fd4d Refactored the codebase to use the plugin wrapper functions
Ankit Vani <a@nevitus.org>
parents: 36430
diff changeset
686 if (purple_plugins_find_plugin("core-perl") != NULL)
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
687 g_string_append(str, "<dt>Perl:</dt><dd>Enabled</dd>");
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
688 else
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
689 g_string_append(str, "<dt>Perl:</dt><dd>Disabled</dd>");
12122
f030c57a9e62 [gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents: 12120
diff changeset
690
36986
2326ab164e3a Add reminders to display perl and tcl status in gtkdialog when API available
Ankit Vani <a@nevitus.org>
parents: 36978
diff changeset
691 #warning TODO: Check for tcl.
36431
ea007725fd4d Refactored the codebase to use the plugin wrapper functions
Ankit Vani <a@nevitus.org>
parents: 36430
diff changeset
692 if (purple_plugins_find_plugin("core-tcl") != NULL) {
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
693 g_string_append(str, "<dt>Tcl:</dt><dd>Enabled</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
694 #ifdef HAVE_TK
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
695 g_string_append(str, "<dt>Tk:</dt><dd>Enabled</dd>");
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
696 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
697 g_string_append(str, "<dt>Tk:</dt><dd>Disabled</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
698 #endif
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
699 } else {
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
700 g_string_append(str, "<dt>Tcl:</dt><dd>Disabled</dd>");
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
701 g_string_append(str, "<dt>Tk:</dt><dd>Disabled</dd>");
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
702 }
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
703
28621
e9f7747ff365 Note whether IDN support is enabled/disabled in the Help->About dialog.
Paul Aurich <darkrain42@pidgin.im>
parents: 28615
diff changeset
704 #ifdef USE_IDN
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
705 g_string_append(str, "<dt>UTF-8 DNS (IDN):</dt><dd>Enabled</dd>");
28621
e9f7747ff365 Note whether IDN support is enabled/disabled in the Help->About dialog.
Paul Aurich <darkrain42@pidgin.im>
parents: 28615
diff changeset
706 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
707 g_string_append(str, "<dt>UTF-8 DNS (IDN):</dt><dd>Disabled</dd>");
28621
e9f7747ff365 Note whether IDN support is enabled/disabled in the Help->About dialog.
Paul Aurich <darkrain42@pidgin.im>
parents: 28615
diff changeset
708 #endif
e9f7747ff365 Note whether IDN support is enabled/disabled in the Help->About dialog.
Paul Aurich <darkrain42@pidgin.im>
parents: 28615
diff changeset
709
23753
c073c1de284e Added whether voice and video support has been enabled in Pidgin's About dialog.
Michael Ruprecht <maiku@pidgin.im>
parents: 23489
diff changeset
710 #ifdef USE_VV
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
711 g_string_append(str, "<dt>Voice and Video:</dt><dd>Enabled</dd>");
23753
c073c1de284e Added whether voice and video support has been enabled in Pidgin's About dialog.
Michael Ruprecht <maiku@pidgin.im>
parents: 23489
diff changeset
712 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
713 g_string_append(str, "<dt>Voice and Video:</dt><dd>Disabled</dd>");
23753
c073c1de284e Added whether voice and video support has been enabled in Pidgin's About dialog.
Michael Ruprecht <maiku@pidgin.im>
parents: 23489
diff changeset
714 #endif
c073c1de284e Added whether voice and video support has been enabled in Pidgin's About dialog.
Michael Ruprecht <maiku@pidgin.im>
parents: 23489
diff changeset
715
12534
6a460e34aa08 [gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents: 12511
diff changeset
716 #ifndef _WIN32
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
717 #ifdef USE_SM
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
718 g_string_append(str, "<dt>X Session Management:</dt><dd>Enabled</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
719 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
720 g_string_append(str, "<dt>X Session Management:</dt><dd>Disabled</dd>");
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
721 #endif
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
722
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
723 #ifdef USE_SCREENSAVER
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
724 g_string_append(str, "<dt>XScreenSaver:</dt><dd>Enabled</dd>");
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
725 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
726 g_string_append(str, "<dt>XScreenSaver:</dt><dd>Disabled</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
727 #endif
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
728
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
729 #ifdef LIBZEPHYR_EXT
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
730 g_string_append(str, "<dt>Zephyr library (libzephyr):</dt><dd>External</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
731 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
732 g_string_append(str, "<dt>Zephyr library (libzephyr):</dt><dd>Internal</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
733 #endif
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
734
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
735 #ifdef ZEPHYR_USES_KERBEROS
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
736 g_string_append(str, "<dt>Zephyr uses Kerberos:</dt><dd>Yes</dd>");
10813
c0d0668ffa8c [gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents: 10812
diff changeset
737 #else
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
738 g_string_append(str, "<dt>Zephyr uses Kerberos:</dt><dd>No</dd>");
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
739 #endif
12534
6a460e34aa08 [gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents: 12511
diff changeset
740 #endif
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
741
32874
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
742 g_string_append(str, "</dl>");
d7098543533a Update the HTML in the Build Information dialog. I'm not sure whether
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32873
diff changeset
743
10411
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
744 /* End of not to be translated section */
5fd2ee97b197 [gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10372
diff changeset
745
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
746 tmp = g_strdup_printf(_("%s Build Information"), PIDGIN_NAME);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
747 buildinfo = pidgin_build_help_dialog(tmp, "buildinfo", str);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
748 g_signal_connect(G_OBJECT(buildinfo), "destroy", G_CALLBACK(gtk_widget_destroyed), &buildinfo);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
749 g_free(tmp);
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
750 }
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
751
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
752 void pidgin_dialogs_developers(void)
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
753 {
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
754 GString *str;
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
755 char *tmp;
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
756 static GtkWidget *developer_info = NULL;
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
757
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
758 if (developer_info != NULL) {
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
759 gtk_window_present(GTK_WINDOW(developer_info));
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
760 return;
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
761 }
10153
f4ce50e634d0 [gaim-migrate @ 11231]
Mark Doliner <markdoliner@pidgin.im>
parents: 10131
diff changeset
762
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
763 str = g_string_sized_new(4096);
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
764
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
765 /* Current Developers */
32875
8b2c2178a4ca Update HTML in the Developer Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32874
diff changeset
766 g_string_append_printf(str, "<h3>%s</h3><ul>",
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
767 _("Current Developers"));
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
768 add_developers(str, developers);
32875
8b2c2178a4ca Update HTML in the Developer Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32874
diff changeset
769 g_string_append(str, "</ul>");
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
770
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
771 /* Crazy Patch Writers */
32875
8b2c2178a4ca Update HTML in the Developer Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32874
diff changeset
772 g_string_append_printf(str, "<h3>%s</h3><ul>",
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
773 _("Crazy Patch Writers"));
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
774 add_developers(str, patch_writers);
32875
8b2c2178a4ca Update HTML in the Developer Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32874
diff changeset
775 g_string_append(str, "</ul>");
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
776
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
777 /* Retired Developers */
32875
8b2c2178a4ca Update HTML in the Developer Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32874
diff changeset
778 g_string_append_printf(str, "<h3>%s</h3><ul>",
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
779 _("Retired Developers"));
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
780 add_developers(str, retired_developers);
32875
8b2c2178a4ca Update HTML in the Developer Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32874
diff changeset
781 g_string_append(str, "</ul>");
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
782
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
783 /* Retired Crazy Patch Writers */
32875
8b2c2178a4ca Update HTML in the Developer Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32874
diff changeset
784 g_string_append_printf(str, "<h3>%s</h3><ul>",
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
785 _("Retired Crazy Patch Writers"));
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
786 add_developers(str, retired_patch_writers);
32875
8b2c2178a4ca Update HTML in the Developer Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32874
diff changeset
787 g_string_append(str, "</ul>");
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
788
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
789 tmp = g_strdup_printf(_("%s Developer Information"), PIDGIN_NAME);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
790 developer_info = pidgin_build_help_dialog(tmp, "developer_info", str);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
791 g_signal_connect(G_OBJECT(developer_info), "destroy", G_CALLBACK(gtk_widget_destroyed), &developer_info);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
792 g_free(tmp);
29525
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
793 }
424be0764e27 Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29524
diff changeset
794
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
795 void pidgin_dialogs_translators(void)
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
796 {
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
797 GString *str;
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
798 char *tmp;
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
799 static GtkWidget *translator_info = NULL;
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
800
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
801 if (translator_info != NULL) {
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
802 gtk_window_present(GTK_WINDOW(translator_info));
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
803 return;
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
804 }
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
805
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
806 str = g_string_sized_new(4096);
21764
773b66076151 The smiley dialog is transient for the toolbar's parent window, and the about dialog is transient for the buddylist, when available.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21647
diff changeset
807
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
808 /* Current Translators */
32876
72363d227cfc Update HTML in Translator Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32875
diff changeset
809 g_string_append_printf(str, "<h3>%s</h3><dl>",
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
810 _("Current Translators"));
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
811 add_translators(str, translators);
32876
72363d227cfc Update HTML in Translator Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32875
diff changeset
812 g_string_append(str, "</dl>");
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
813
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
814 /* Past Translators */
32880
d4051ef7cfe0 Remove an extra colon.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32879
diff changeset
815 g_string_append_printf(str, "<h3>%s</h3><dl>",
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
816 _("Past Translators"));
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
817 add_translators(str, past_translators);
32876
72363d227cfc Update HTML in Translator Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32875
diff changeset
818 g_string_append(str, "</dl>");
29522
a5595d764a85 Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28451
diff changeset
819
29530
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
820 tmp = g_strdup_printf(_("%s Translator Information"), PIDGIN_NAME);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
821 translator_info = pidgin_build_help_dialog(tmp, "translator_info", str);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
822 g_signal_connect(G_OBJECT(translator_info), "destroy", G_CALLBACK(gtk_widget_destroyed), &translator_info);
252b84468a95 Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 29529
diff changeset
823 g_free(tmp);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
824 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
825
31945
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
826 void pidgin_dialogs_plugins_info(void)
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
827 {
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
828 GString *str;
36413
8cf6f1734398 Refactored gtkdialogs to use the new API
Ankit Vani <a@nevitus.org>
parents: 36367
diff changeset
829 GList *plugins, *l = NULL;
31945
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
830 PurplePlugin *plugin = NULL;
36431
ea007725fd4d Refactored the codebase to use the plugin wrapper functions
Ankit Vani <a@nevitus.org>
parents: 36430
diff changeset
831 PurplePluginInfo *info;
36976
46c2822b7c58 Added the "extra-cb" property for plugins.
Ankit Vani <a@nevitus.org>
parents: 36974
diff changeset
832 PurplePluginExtraCb extra_cb;
31945
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
833 char *title = g_strdup_printf(_("%s Plugin Information"), PIDGIN_NAME);
36976
46c2822b7c58 Added the "extra-cb" property for plugins.
Ankit Vani <a@nevitus.org>
parents: 36974
diff changeset
834 char *pname = NULL, *authors, *pauthors, *pextra;
36512
35b1e42281e5 Removed loadable field from plugin info dialog, and added license
Ankit Vani <a@nevitus.org>
parents: 36459
diff changeset
835 const char *pver, *plicense, *pwebsite, *pid;
36516
cbf16b28176c Refactored pidgin according to the changes
Ankit Vani <a@nevitus.org>
parents: 36512
diff changeset
836 gboolean ploaded, ploadable;
36644
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
837 const char * const *authorlist;
36978
f184f7b4f11a Silence glib warnings
Ankit Vani <a@nevitus.org>
parents: 36976
diff changeset
838 guint n_authors;
31945
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
839 static GtkWidget *plugins_info = NULL;
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
840
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
841 str = g_string_sized_new(4096);
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
842
32879
1f9009c3f0f4 Update the HTML in the Plugin Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32878
diff changeset
843 g_string_append_printf(str, "<h2>%s</h2><dl>", _("Plugin Information"));
31945
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
844
36413
8cf6f1734398 Refactored gtkdialogs to use the new API
Ankit Vani <a@nevitus.org>
parents: 36367
diff changeset
845 plugins = purple_plugins_find_all();
8cf6f1734398 Refactored gtkdialogs to use the new API
Ankit Vani <a@nevitus.org>
parents: 36367
diff changeset
846
8cf6f1734398 Refactored gtkdialogs to use the new API
Ankit Vani <a@nevitus.org>
parents: 36367
diff changeset
847 for(l = plugins; l; l = l->next) {
36431
ea007725fd4d Refactored the codebase to use the plugin wrapper functions
Ankit Vani <a@nevitus.org>
parents: 36430
diff changeset
848 plugin = PURPLE_PLUGIN(l->data);
ea007725fd4d Refactored the codebase to use the plugin wrapper functions
Ankit Vani <a@nevitus.org>
parents: 36430
diff changeset
849 info = purple_plugin_get_info(plugin);
36976
46c2822b7c58 Added the "extra-cb" property for plugins.
Ankit Vani <a@nevitus.org>
parents: 36974
diff changeset
850 extra_cb = purple_plugin_info_get_extra_cb(info);
31945
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
851
36431
ea007725fd4d Refactored the codebase to use the plugin wrapper functions
Ankit Vani <a@nevitus.org>
parents: 36430
diff changeset
852 pname = g_markup_escape_text(purple_plugin_info_get_name(info), -1);
36644
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
853 authorlist = purple_plugin_info_get_authors(info);
31945
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
854
36978
f184f7b4f11a Silence glib warnings
Ankit Vani <a@nevitus.org>
parents: 36976
diff changeset
855 if (authorlist) {
36644
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
856 authors = g_strjoinv(", ", (gchar **)authorlist);
36978
f184f7b4f11a Silence glib warnings
Ankit Vani <a@nevitus.org>
parents: 36976
diff changeset
857 n_authors = g_strv_length((gchar **)authorlist);
f184f7b4f11a Silence glib warnings
Ankit Vani <a@nevitus.org>
parents: 36976
diff changeset
858 } else {
36644
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
859 authors = NULL;
36978
f184f7b4f11a Silence glib warnings
Ankit Vani <a@nevitus.org>
parents: 36976
diff changeset
860 n_authors = 0;
f184f7b4f11a Silence glib warnings
Ankit Vani <a@nevitus.org>
parents: 36976
diff changeset
861 }
36644
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
862
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
863 if (authors)
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
864 pauthors = g_markup_escape_text(authors, -1);
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
865 else
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
866 pauthors = NULL;
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
867
36431
ea007725fd4d Refactored the codebase to use the plugin wrapper functions
Ankit Vani <a@nevitus.org>
parents: 36430
diff changeset
868 pver = purple_plugin_info_get_version(info);
36644
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
869 plicense = purple_plugin_info_get_license_id(info);
36431
ea007725fd4d Refactored the codebase to use the plugin wrapper functions
Ankit Vani <a@nevitus.org>
parents: 36430
diff changeset
870 pwebsite = purple_plugin_info_get_website(info);
ea007725fd4d Refactored the codebase to use the plugin wrapper functions
Ankit Vani <a@nevitus.org>
parents: 36430
diff changeset
871 pid = purple_plugin_info_get_id(info);
36516
cbf16b28176c Refactored pidgin according to the changes
Ankit Vani <a@nevitus.org>
parents: 36512
diff changeset
872 ploadable = !purple_plugin_info_get_error(info);
31945
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
873 ploaded = purple_plugin_is_loaded(plugin);
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
874
36976
46c2822b7c58 Added the "extra-cb" property for plugins.
Ankit Vani <a@nevitus.org>
parents: 36974
diff changeset
875 if (ploaded && extra_cb)
46c2822b7c58 Added the "extra-cb" property for plugins.
Ankit Vani <a@nevitus.org>
parents: 36974
diff changeset
876 pextra = extra_cb(plugin);
46c2822b7c58 Added the "extra-cb" property for plugins.
Ankit Vani <a@nevitus.org>
parents: 36974
diff changeset
877 else
46c2822b7c58 Added the "extra-cb" property for plugins.
Ankit Vani <a@nevitus.org>
parents: 36974
diff changeset
878 pextra = NULL;
46c2822b7c58 Added the "extra-cb" property for plugins.
Ankit Vani <a@nevitus.org>
parents: 36974
diff changeset
879
35910
327db5f3a5c5 Fix some strings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35850
diff changeset
880 g_string_append_printf(str, "<dt>%s</dt><dd>", pname);
37140
25d39bb4d758 Merged default branch
Ankit Vani <a@nevitus.org>
parents: 37136 35912
diff changeset
881 if (pauthors)
25d39bb4d758 Merged default branch
Ankit Vani <a@nevitus.org>
parents: 37136 35912
diff changeset
882 g_string_append_printf(str, "<b>%s:</b> %s<br/>",
25d39bb4d758 Merged default branch
Ankit Vani <a@nevitus.org>
parents: 37136 35912
diff changeset
883 (n_authors > 1 ? "Authors" : "Author"), pauthors ? pauthors : "");
31945
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
884 g_string_append_printf(str,
32879
1f9009c3f0f4 Update the HTML in the Plugin Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32878
diff changeset
885 "<b>Version:</b> %s<br/>"
36512
35b1e42281e5 Removed loadable field from plugin info dialog, and added license
Ankit Vani <a@nevitus.org>
parents: 36459
diff changeset
886 "<b>License:</b> %s<br/>"
32879
1f9009c3f0f4 Update the HTML in the Plugin Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32878
diff changeset
887 "<b>Website:</b> %s<br/>"
1f9009c3f0f4 Update the HTML in the Plugin Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32878
diff changeset
888 "<b>ID String:</b> %s<br/>"
36976
46c2822b7c58 Added the "extra-cb" property for plugins.
Ankit Vani <a@nevitus.org>
parents: 36974
diff changeset
889 "<b>Extra:</b> %s<br/>"
32879
1f9009c3f0f4 Update the HTML in the Plugin Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32878
diff changeset
890 "<b>Loadable:</b> %s<br/>"
1f9009c3f0f4 Update the HTML in the Plugin Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32878
diff changeset
891 "<b>Loaded:</b> %s"
1f9009c3f0f4 Update the HTML in the Plugin Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32878
diff changeset
892 "</dd><br/>",
36516
cbf16b28176c Refactored pidgin according to the changes
Ankit Vani <a@nevitus.org>
parents: 36512
diff changeset
893 pver ? pver : "",
cbf16b28176c Refactored pidgin according to the changes
Ankit Vani <a@nevitus.org>
parents: 36512
diff changeset
894 plicense ? plicense : "",
cbf16b28176c Refactored pidgin according to the changes
Ankit Vani <a@nevitus.org>
parents: 36512
diff changeset
895 pwebsite ? pwebsite : "",
36512
35b1e42281e5 Removed loadable field from plugin info dialog, and added license
Ankit Vani <a@nevitus.org>
parents: 36459
diff changeset
896 pid,
36976
46c2822b7c58 Added the "extra-cb" property for plugins.
Ankit Vani <a@nevitus.org>
parents: 36974
diff changeset
897 pextra ? pextra : "",
36516
cbf16b28176c Refactored pidgin according to the changes
Ankit Vani <a@nevitus.org>
parents: 36512
diff changeset
898 ploadable ? "Yes" : "<span style=\"color: #FF0000;\"><b>No</b></span>",
cbf16b28176c Refactored pidgin according to the changes
Ankit Vani <a@nevitus.org>
parents: 36512
diff changeset
899 ploaded ? "Yes" : "No");
32870
2c5150da76c1 Fix a leak in the Plugin Information window. These variables are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32866
diff changeset
900
2c5150da76c1 Fix a leak in the Plugin Information window. These variables are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32866
diff changeset
901 g_free(pname);
36976
46c2822b7c58 Added the "extra-cb" property for plugins.
Ankit Vani <a@nevitus.org>
parents: 36974
diff changeset
902 g_free(pextra);
36644
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
903 g_free(pauthors);
e06a238d2864 Refactored pidgin to show multiple authors
Ankit Vani <a@nevitus.org>
parents: 36626
diff changeset
904 g_free(authors);
31945
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
905 }
36430
559d5d9d8a6c Refactored the codebase to remove purple_plugins_free_found_list()
Ankit Vani <a@nevitus.org>
parents: 36413
diff changeset
906 g_list_free(plugins);
31945
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
907
32879
1f9009c3f0f4 Update the HTML in the Plugin Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32878
diff changeset
908 g_string_append(str, "</dl>");
1f9009c3f0f4 Update the HTML in the Plugin Information dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32878
diff changeset
909
31945
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
910 plugins_info = pidgin_build_help_dialog(title, "plugins_info", str);
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
911 g_signal_connect(G_OBJECT(plugins_info), "destroy",
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
912 G_CALLBACK(gtk_widget_destroyed), &plugins_info);
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
913 g_free(title);
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
914 }
f1d8ab1029c4 Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31889
diff changeset
915
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
916 static void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
917 pidgin_dialogs_im_cb(gpointer data, PurpleRequestFields *fields)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
918 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
919 PurpleAccount *account;
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
920 const char *username;
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
921
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
922 account = purple_request_fields_get_account(fields, "account");
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
923 username = purple_request_fields_get_string(fields, "screenname");
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
924
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
925 pidgin_dialogs_im_with_user(account, username);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
926 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
927
33213
2852fbde4722 Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33170
diff changeset
928 static gboolean
33219
06b19630bdb0 Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33213
diff changeset
929 pidgin_dialogs_im_name_validator(PurpleRequestField *field, gchar **errmsg,
06b19630bdb0 Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33213
diff changeset
930 void *_fields)
33213
2852fbde4722 Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33170
diff changeset
931 {
2852fbde4722 Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33170
diff changeset
932 PurpleRequestFields *fields = _fields;
2852fbde4722 Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33170
diff changeset
933 PurpleAccount *account;
36544
1bf8b6ef5aea Renamed PurplePluginProtocolInfo to PurpleProtocol
Ankit Vani <a@nevitus.org>
parents: 36543
diff changeset
934 PurpleProtocol *protocol;
33213
2852fbde4722 Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33170
diff changeset
935 const char *username;
33219
06b19630bdb0 Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33213
diff changeset
936 gboolean valid;
33213
2852fbde4722 Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33170
diff changeset
937
2852fbde4722 Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33170
diff changeset
938 account = purple_request_fields_get_account(fields, "account");
36626
18fc361b3704 Renamed purple_find_protocol_info to purple_protocols_find
Ankit Vani <a@nevitus.org>
parents: 36568
diff changeset
939 protocol = purple_protocols_find(purple_account_get_protocol_id(account));
33213
2852fbde4722 Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33170
diff changeset
940 username = purple_request_fields_get_string(fields, "screenname");
2852fbde4722 Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33170
diff changeset
941
36544
1bf8b6ef5aea Renamed PurplePluginProtocolInfo to PurpleProtocol
Ankit Vani <a@nevitus.org>
parents: 36543
diff changeset
942 valid = purple_validate(protocol, username);
33219
06b19630bdb0 Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33213
diff changeset
943
06b19630bdb0 Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33213
diff changeset
944 if (errmsg && !valid)
06b19630bdb0 Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33213
diff changeset
945 *errmsg = g_strdup(_("Invalid username"));
06b19630bdb0 Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33213
diff changeset
946
06b19630bdb0 Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33213
diff changeset
947 return valid;
33213
2852fbde4722 Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33170
diff changeset
948 }
2852fbde4722 Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33170
diff changeset
949
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
950 void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
951 pidgin_dialogs_im(void)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
952 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
953 PurpleRequestFields *fields;
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
954 PurpleRequestFieldGroup *group;
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
955 PurpleRequestField *field;
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
956
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
957 fields = purple_request_fields_new();
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
958
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
959 group = purple_request_field_group_new(NULL);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
960 purple_request_fields_add_group(fields, group);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
961
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
962 field = purple_request_field_string_new("screenname", _("_Name"), NULL, FALSE);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
963 purple_request_field_set_type_hint(field, "screenname");
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
964 purple_request_field_set_required(field, TRUE);
33213
2852fbde4722 Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33170
diff changeset
965 purple_request_field_set_validator(field, pidgin_dialogs_im_name_validator, fields);
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
966 purple_request_field_group_add_field(group, field);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
967
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
968 field = purple_request_field_account_new("account", _("_Account"), NULL);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
969 purple_request_field_set_type_hint(field, "account");
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
970 purple_request_field_set_visible(field,
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
971 (purple_connections_get_all() != NULL &&
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
972 purple_connections_get_all()->next != NULL));
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
973 purple_request_field_set_required(field, TRUE);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
974 purple_request_field_group_add_field(group, field);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
975
34726
af52ff6660c0 Replaced purple_get_blist() with purple_blist_get_buddy_list()
Ankit Vani <a@nevitus.org>
parents: 34717
diff changeset
976 purple_request_fields(purple_blist_get_buddy_list(), _("New Instant Message"),
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
977 NULL,
22942
2bf494f8e2a4 Change the string "screen name" to "username" everywhere. I think most
Mark Doliner <markdoliner@pidgin.im>
parents: 22722
diff changeset
978 _("Please enter the username or alias of the person "
10668
c5ed2bd98ebf [gaim-migrate @ 12208]
Sean Egan <seanegan@pidgin.im>
parents: 10615
diff changeset
979 "you would like to IM."),
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
980 fields,
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
981 _("OK"), G_CALLBACK(pidgin_dialogs_im_cb),
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
982 _("Cancel"), NULL,
34332
876483829700 Request API refactoring: switch purple_request_fields to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34331
diff changeset
983 NULL, NULL);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
984 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
985
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
986 void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
987 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
988 {
34662
f14347f38e3b Refactor the remaining pidgin to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34627
diff changeset
989 PurpleIMConversation *im;
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
990
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
991 g_return_if_fail(account != NULL);
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
992 g_return_if_fail(username != NULL);
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
993
34662
f14347f38e3b Refactor the remaining pidgin to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34627
diff changeset
994 im = purple_conversations_find_im_with_account(username, account);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
995
34662
f14347f38e3b Refactor the remaining pidgin to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34627
diff changeset
996 if (im == NULL)
f14347f38e3b Refactor the remaining pidgin to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34627
diff changeset
997 im = purple_im_conversation_new(account, username);
12295
b81286b6bc54 [gaim-migrate @ 14599]
Luke Schierer <lschiere@pidgin.im>
parents: 12288
diff changeset
998
34662
f14347f38e3b Refactor the remaining pidgin to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34627
diff changeset
999 pidgin_conv_attach_to_conversation(PURPLE_CONVERSATION(im));
f14347f38e3b Refactor the remaining pidgin to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34627
diff changeset
1000 purple_conversation_present(PURPLE_CONVERSATION(im));
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1001 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1002
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1003 static gboolean
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1004 pidgin_dialogs_ee(const char *ee)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1005 {
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1006 GtkWidget *window;
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1007 GtkWidget *hbox;
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1008 GtkWidget *label;
10219
f088cb31ad7e [gaim-migrate @ 11347]
Mark Doliner <markdoliner@pidgin.im>
parents: 10193
diff changeset
1009 GtkWidget *img;
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1010 gchar *norm = purple_strreplace(ee, "rocksmyworld", "");
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1011
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1012 label = gtk_label_new(NULL);
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1013 if (!strcmp(norm, "zilding"))
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1014 gtk_label_set_markup(GTK_LABEL(label),
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1015 "<span weight=\"bold\" size=\"large\" foreground=\"purple\">Amazing! Simply Amazing!</span>");
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1016 else if (!strcmp(norm, "robflynn"))
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1017 gtk_label_set_markup(GTK_LABEL(label),
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1018 "<span weight=\"bold\" size=\"large\" foreground=\"#1f6bad\">Pimpin\' Penguin Style! *Waddle Waddle*</span>");
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1019 else if (!strcmp(norm, "flynorange"))
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1020 gtk_label_set_markup(GTK_LABEL(label),
10816
ba2657f4c157 [gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents: 10813
diff changeset
1021 "<span weight=\"bold\" size=\"large\" foreground=\"blue\">You should be me. I'm so cute!</span>");
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1022 else if (!strcmp(norm, "ewarmenhoven"))
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1023 gtk_label_set_markup(GTK_LABEL(label),
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1024 "<span weight=\"bold\" size=\"large\" foreground=\"orange\">Now that's what I like!</span>");
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1025 else if (!strcmp(norm, "markster97"))
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1026 gtk_label_set_markup(GTK_LABEL(label),
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1027 "<span weight=\"bold\" size=\"large\" foreground=\"brown\">Ahh, and excellent choice!</span>");
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1028 else if (!strcmp(norm, "seanegn"))
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1029 gtk_label_set_markup(GTK_LABEL(label),
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1030 "<span weight=\"bold\" size=\"large\" foreground=\"#009900\">Everytime you click my name, an angel gets its wings.</span>");
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1031 else if (!strcmp(norm, "chipx86"))
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1032 gtk_label_set_markup(GTK_LABEL(label),
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1033 "<span weight=\"bold\" size=\"large\" foreground=\"red\">This sunflower seed taste like pizza.</span>");
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1034 else if (!strcmp(norm, "markdoliner"))
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1035 gtk_label_set_markup(GTK_LABEL(label),
10816
ba2657f4c157 [gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents: 10813
diff changeset
1036 "<span weight=\"bold\" size=\"large\" foreground=\"#6364B1\">Hey! I was in that tumbleweed!</span>");
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1037 else if (!strcmp(norm, "lschiere"))
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1038 gtk_label_set_markup(GTK_LABEL(label),
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1039 "<span weight=\"bold\" size=\"large\" foreground=\"gray\">I'm not anything.</span>");
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1040 g_free(norm);
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1041
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1042 if (strlen(gtk_label_get_label(GTK_LABEL(label))) <= 0)
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1043 return FALSE;
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1044
15882
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15860
diff changeset
1045 window = gtk_dialog_new_with_buttons(PIDGIN_ALERT_TITLE, NULL, 0, GTK_STOCK_CLOSE, GTK_RESPONSE_OK, NULL);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1046 gtk_dialog_set_default_response (GTK_DIALOG(window), GTK_RESPONSE_OK);
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1047 g_signal_connect(G_OBJECT(window), "response", G_CALLBACK(gtk_widget_destroy), NULL);
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1048
15882
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15860
diff changeset
1049 gtk_container_set_border_width (GTK_CONTAINER(window), PIDGIN_HIG_BOX_SPACE);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1050 gtk_window_set_resizable(GTK_WINDOW(window), FALSE);
32394
f883709bdba4 compiles using GTK+ 3 from git, beware it does not yet run, in fact it crashes...
Marcus Lundblad <malu@pidgin.im>
parents: 30880
diff changeset
1051 gtk_box_set_spacing(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(window))),
32422
c215bc5d85e4 Whitespace fixes. Try and check your editor settings before writing
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32414
diff changeset
1052 PIDGIN_HIG_BORDER);
c215bc5d85e4 Whitespace fixes. Try and check your editor settings before writing
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32414
diff changeset
1053 gtk_container_set_border_width(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(window))),
c215bc5d85e4 Whitespace fixes. Try and check your editor settings before writing
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32414
diff changeset
1054 PIDGIN_HIG_BOX_SPACE);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1055
35527
707c3c2b2c8a Fix more gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35500
diff changeset
1056 hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, PIDGIN_HIG_BORDER);
32394
f883709bdba4 compiles using GTK+ 3 from git, beware it does not yet run, in fact it crashes...
Marcus Lundblad <malu@pidgin.im>
parents: 30880
diff changeset
1057 gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(window))), hbox);
15497
92f02f4bd5ee Dialog icon changes
Sean Egan <seanegan@pidgin.im>
parents: 15473
diff changeset
1058 img = gtk_image_new_from_stock(PIDGIN_STOCK_DIALOG_COOL, gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_HUGE));
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1059 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0);
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1060
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1061 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1062 gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1063 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1064
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1065 gtk_widget_show_all(window);
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1066 return TRUE;
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1067 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1068
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1069 static void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1070 pidgin_dialogs_info_cb(gpointer data, PurpleRequestFields *fields)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1071 {
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1072 char *username;
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1073 gboolean found = FALSE;
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1074 PurpleAccount *account;
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1075
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1076 account = purple_request_fields_get_account(fields, "account");
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1077
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1078 username = g_strdup(purple_normalize(account,
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1079 purple_request_fields_get_string(fields, "screenname")));
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1080
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1081 if (username != NULL && purple_str_has_suffix(username, "rocksmyworld"))
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1082 found = pidgin_dialogs_ee(username);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1083
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1084 if (!found && username != NULL && *username != '\0' && account != NULL)
17360
4b04b2ee459a Use utility functions to get user info. Closes #964.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 17311
diff changeset
1085 pidgin_retrieve_user_info(purple_account_get_connection(account), username);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1086
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1087 g_free(username);
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1088 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1089
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1090 void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1091 pidgin_dialogs_info(void)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1092 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1093 PurpleRequestFields *fields;
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1094 PurpleRequestFieldGroup *group;
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1095 PurpleRequestField *field;
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1096
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1097 fields = purple_request_fields_new();
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1098
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1099 group = purple_request_field_group_new(NULL);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1100 purple_request_fields_add_group(fields, group);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1101
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1102 field = purple_request_field_string_new("screenname", _("_Name"), NULL, FALSE);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1103 purple_request_field_set_type_hint(field, "screenname");
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1104 purple_request_field_set_required(field, TRUE);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1105 purple_request_field_group_add_field(group, field);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1106
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1107 field = purple_request_field_account_new("account", _("_Account"), NULL);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1108 purple_request_field_set_type_hint(field, "account");
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1109 purple_request_field_set_visible(field,
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1110 (purple_connections_get_all() != NULL &&
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1111 purple_connections_get_all()->next != NULL));
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1112 purple_request_field_set_required(field, TRUE);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1113 purple_request_field_group_add_field(group, field);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1114
34726
af52ff6660c0 Replaced purple_get_blist() with purple_blist_get_buddy_list()
Ankit Vani <a@nevitus.org>
parents: 34717
diff changeset
1115 purple_request_fields(purple_blist_get_buddy_list(), _("Get User Info"),
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1116 NULL,
22942
2bf494f8e2a4 Change the string "screen name" to "username" everywhere. I think most
Mark Doliner <markdoliner@pidgin.im>
parents: 22722
diff changeset
1117 _("Please enter the username or alias of the person "
10668
c5ed2bd98ebf [gaim-migrate @ 12208]
Sean Egan <seanegan@pidgin.im>
parents: 10615
diff changeset
1118 "whose info you would like to view."),
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1119 fields,
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1120 _("OK"), G_CALLBACK(pidgin_dialogs_info_cb),
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1121 _("Cancel"), NULL,
34332
876483829700 Request API refactoring: switch purple_request_fields to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34331
diff changeset
1122 NULL, NULL);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1123 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1124
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1125 static void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1126 pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1127 {
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1128 char *username;
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1129 PurpleAccount *account;
14403
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1130 GSList *cur;
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1131
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1132 account = purple_request_fields_get_account(fields, "account");
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1133
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1134 username = g_strdup(purple_normalize(account,
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1135 purple_request_fields_get_string(fields, "screenname")));
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1136
12232
857f087ec86b [gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents: 12122
diff changeset
1137 if (username != NULL && *username != '\0' && account != NULL)
857f087ec86b [gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents: 12122
diff changeset
1138 {
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15498
diff changeset
1139 PidginBuddyList *gtkblist = pidgin_blist_get_default_gtk_blist();
14403
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1140 GSList *buddies;
12232
857f087ec86b [gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents: 12122
diff changeset
1141
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15498
diff changeset
1142 pidgin_set_cursor(gtkblist->window, GDK_WATCH);
12232
857f087ec86b [gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents: 12122
diff changeset
1143
34728
8efd73063ecf Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents: 34726
diff changeset
1144 buddies = purple_blist_find_buddies(account, username);
14403
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1145 for (cur = buddies; cur != NULL; cur = cur->next)
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1146 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1147 PurpleBlistNode *node = cur->data;
14403
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1148 if ((node != NULL) && ((node->prev != NULL) || (node->next != NULL)))
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1149 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1150 pidgin_log_show_contact((PurpleContact *)node->parent);
14403
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1151 g_slist_free(buddies);
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15498
diff changeset
1152 pidgin_clear_cursor(gtkblist->window);
14403
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1153 g_free(username);
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1154 return;
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1155 }
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1156 }
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1157 g_slist_free(buddies);
7e57df59c1bd [gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents: 14402
diff changeset
1158
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1159 pidgin_log_show(PURPLE_LOG_IM, username, account);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1160
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15498
diff changeset
1161 pidgin_clear_cursor(gtkblist->window);
12232
857f087ec86b [gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents: 12122
diff changeset
1162 }
857f087ec86b [gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents: 12122
diff changeset
1163
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1164 g_free(username);
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1165 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1166
9991
a02e6b4e0959 [gaim-migrate @ 10904]
Dave West <kat@users.sourceforge.net>
parents: 9976
diff changeset
1167 /*
a02e6b4e0959 [gaim-migrate @ 10904]
Dave West <kat@users.sourceforge.net>
parents: 9976
diff changeset
1168 * TODO - This needs to deal with logs of all types, not just IM logs.
a02e6b4e0959 [gaim-migrate @ 10904]
Dave West <kat@users.sourceforge.net>
parents: 9976
diff changeset
1169 */
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1170 void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1171 pidgin_dialogs_log(void)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1172 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1173 PurpleRequestFields *fields;
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1174 PurpleRequestFieldGroup *group;
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1175 PurpleRequestField *field;
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1176
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1177 fields = purple_request_fields_new();
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1178
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1179 group = purple_request_field_group_new(NULL);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1180 purple_request_fields_add_group(fields, group);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1181
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1182 field = purple_request_field_string_new("screenname", _("_Name"), NULL, FALSE);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1183 purple_request_field_set_type_hint(field, "screenname-all");
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1184 purple_request_field_set_required(field, TRUE);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1185 purple_request_field_group_add_field(group, field);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1186
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1187 field = purple_request_field_account_new("account", _("_Account"), NULL);
13824
3e29de65083a [gaim-migrate @ 16257]
Brian Chu <roast@users.sourceforge.net>
parents: 13816
diff changeset
1188
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1189 /* purple_request_field_account_new() only sets a default value if you're
13824
3e29de65083a [gaim-migrate @ 16257]
Brian Chu <roast@users.sourceforge.net>
parents: 13816
diff changeset
1190 * connected, and it sets it from the list of connected accounts. Since
3e29de65083a [gaim-migrate @ 16257]
Brian Chu <roast@users.sourceforge.net>
parents: 13816
diff changeset
1191 * we're going to set show_all here, it makes sense to use the first
3e29de65083a [gaim-migrate @ 16257]
Brian Chu <roast@users.sourceforge.net>
parents: 13816
diff changeset
1192 * account, not the first connected account. */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1193 if (purple_accounts_get_all() != NULL) {
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1194 purple_request_field_account_set_default_value(field, purple_accounts_get_all()->data);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1195 purple_request_field_account_set_value(field, purple_accounts_get_all()->data);
13824
3e29de65083a [gaim-migrate @ 16257]
Brian Chu <roast@users.sourceforge.net>
parents: 13816
diff changeset
1196 }
3e29de65083a [gaim-migrate @ 16257]
Brian Chu <roast@users.sourceforge.net>
parents: 13816
diff changeset
1197
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1198 purple_request_field_set_type_hint(field, "account");
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1199 purple_request_field_account_set_show_all(field, TRUE);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1200 purple_request_field_set_visible(field,
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1201 (purple_accounts_get_all() != NULL &&
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1202 purple_accounts_get_all()->next != NULL));
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1203 purple_request_field_set_required(field, TRUE);
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1204 purple_request_field_group_add_field(group, field);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1205
34726
af52ff6660c0 Replaced purple_get_blist() with purple_blist_get_buddy_list()
Ankit Vani <a@nevitus.org>
parents: 34717
diff changeset
1206 purple_request_fields(purple_blist_get_buddy_list(), _("View User Log"),
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1207 NULL,
22942
2bf494f8e2a4 Change the string "screen name" to "username" everywhere. I think most
Mark Doliner <markdoliner@pidgin.im>
parents: 22722
diff changeset
1208 _("Please enter the username or alias of the person "
10668
c5ed2bd98ebf [gaim-migrate @ 12208]
Sean Egan <seanegan@pidgin.im>
parents: 10615
diff changeset
1209 "whose log you would like to view."),
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1210 fields,
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1211 _("OK"), G_CALLBACK(pidgin_dialogs_log_cb),
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1212 _("Cancel"), NULL,
34332
876483829700 Request API refactoring: switch purple_request_fields to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34331
diff changeset
1213 NULL, NULL);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1214 }
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1215
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1216 static void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1217 pidgin_dialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias)
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1218 {
34728
8efd73063ecf Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents: 34726
diff changeset
1219 purple_buddy_set_local_alias(buddy, new_alias);
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35469
diff changeset
1220 purple_serv_alias_buddy(buddy);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1221 }
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1222
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1223 void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1224 pidgin_dialogs_alias_buddy(PurpleBuddy *buddy)
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1225 {
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1226 gchar *secondary;
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1227
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1228 g_return_if_fail(buddy != NULL);
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1229
32709
0edad3ff7243 Use the PurpleBuddy accessor functions.
Andrew Victor <andrew.victor@mxit.com>
parents: 32577
diff changeset
1230 secondary = g_strdup_printf(_("Enter an alias for %s."), purple_buddy_get_name(buddy));
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1231
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1232 purple_request_input(NULL, _("Alias Buddy"), NULL,
34717
b3e588adef5a Global replace purple_buddy_get_local_buddy_alias() with purple_buddy_get_local_alias()
Ankit Vani <a@nevitus.org>
parents: 34708
diff changeset
1233 secondary, purple_buddy_get_local_alias(buddy), FALSE, FALSE, NULL,
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1234 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_buddy_cb),
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1235 _("Cancel"), NULL,
34329
ddbc1337332c Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34301
diff changeset
1236 purple_request_cpar_from_account(purple_buddy_get_account(buddy)),
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1237 buddy);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1238
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1239 g_free(secondary);
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1240 }
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1241
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1242 static void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1243 pidgin_dialogs_alias_chat_cb(PurpleChat *chat, const char *new_alias)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1244 {
34728
8efd73063ecf Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents: 34726
diff changeset
1245 purple_chat_set_alias(chat, new_alias);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1246 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1247
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1248 void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1249 pidgin_dialogs_alias_chat(PurpleChat *chat)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1250 {
34739
7d507b8b9f92 Refactored pidgin to use the GObject BList API
Ankit Vani <a@nevitus.org>
parents: 34728
diff changeset
1251 gchar *alias;
7d507b8b9f92 Refactored pidgin to use the GObject BList API
Ankit Vani <a@nevitus.org>
parents: 34728
diff changeset
1252
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1253 g_return_if_fail(chat != NULL);
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1254
34739
7d507b8b9f92 Refactored pidgin to use the GObject BList API
Ankit Vani <a@nevitus.org>
parents: 34728
diff changeset
1255 g_object_get(chat, "alias", &alias, NULL);
7d507b8b9f92 Refactored pidgin to use the GObject BList API
Ankit Vani <a@nevitus.org>
parents: 34728
diff changeset
1256
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1257 purple_request_input(NULL, _("Alias Chat"), NULL,
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1258 _("Enter an alias for this chat."),
34739
7d507b8b9f92 Refactored pidgin to use the GObject BList API
Ankit Vani <a@nevitus.org>
parents: 34728
diff changeset
1259 alias, FALSE, FALSE, NULL,
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1260 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb),
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1261 _("Cancel"), NULL,
34329
ddbc1337332c Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34301
diff changeset
1262 purple_request_cpar_from_account(purple_chat_get_account(chat)),
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1263 chat);
34923
416a7736a401 Unref and free everything recieved from g_object_get
Ankit Vani <a@nevitus.org>
parents: 34887
diff changeset
1264
416a7736a401 Unref and free everything recieved from g_object_get
Ankit Vani <a@nevitus.org>
parents: 34887
diff changeset
1265 g_free(alias);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1266 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1267
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1268 static void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1269 pidgin_dialogs_remove_contact_cb(PurpleContact *contact)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1270 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1271 PurpleBlistNode *bnode, *cnode;
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1272 PurpleGroup *group;
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1273
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1274 cnode = (PurpleBlistNode *)contact;
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1275 group = (PurpleGroup*)cnode->parent;
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1276 for (bnode = cnode->child; bnode; bnode = bnode->next) {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1277 PurpleBuddy *buddy = (PurpleBuddy*)bnode;
32709
0edad3ff7243 Use the PurpleBuddy accessor functions.
Andrew Victor <andrew.victor@mxit.com>
parents: 32577
diff changeset
1278 if (purple_account_is_connected(purple_buddy_get_account(buddy)))
0edad3ff7243 Use the PurpleBuddy accessor functions.
Andrew Victor <andrew.victor@mxit.com>
parents: 32577
diff changeset
1279 purple_account_remove_buddy(purple_buddy_get_account(buddy), buddy, group);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1280 }
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1281 purple_blist_remove_contact(contact);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1282 }
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1283
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1284 void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1285 pidgin_dialogs_remove_contact(PurpleContact *contact)
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1286 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1287 PurpleBuddy *buddy = purple_contact_get_priority_buddy(contact);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1288
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1289 g_return_if_fail(contact != NULL);
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1290 g_return_if_fail(buddy != NULL);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1291
24976
029a4828431c Another one the cast fixer breaks.
Richard Laager <rlaager@pidgin.im>
parents: 24569
diff changeset
1292 if (PURPLE_BLIST_NODE(contact)->child == PURPLE_BLIST_NODE(buddy) &&
24977
b46bff38cd90 Make my last commit compile.
Richard Laager <rlaager@pidgin.im>
parents: 24976
diff changeset
1293 PURPLE_BLIST_NODE(buddy)->next == NULL) {
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1294 pidgin_dialogs_remove_buddy(buddy);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1295 } else {
10324
3278c5d77bd8 [gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents: 10297
diff changeset
1296 gchar *text;
34739
7d507b8b9f92 Refactored pidgin to use the GObject BList API
Ankit Vani <a@nevitus.org>
parents: 34728
diff changeset
1297 int contact_size = purple_counting_node_get_total_size(PURPLE_COUNTING_NODE(contact));
10324
3278c5d77bd8 [gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents: 10297
diff changeset
1298 text = g_strdup_printf(
3278c5d77bd8 [gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents: 10297
diff changeset
1299 ngettext(
3278c5d77bd8 [gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents: 10297
diff changeset
1300 "You are about to remove the contact containing %s "
10816
ba2657f4c157 [gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents: 10813
diff changeset
1301 "and %d other buddy from your buddy list. Do you "
10324
3278c5d77bd8 [gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents: 10297
diff changeset
1302 "want to continue?",
3278c5d77bd8 [gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents: 10297
diff changeset
1303 "You are about to remove the contact containing %s "
10816
ba2657f4c157 [gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents: 10813
diff changeset
1304 "and %d other buddies from your buddy list. Do you "
34739
7d507b8b9f92 Refactored pidgin to use the GObject BList API
Ankit Vani <a@nevitus.org>
parents: 34728
diff changeset
1305 "want to continue?", contact_size - 1),
7d507b8b9f92 Refactored pidgin to use the GObject BList API
Ankit Vani <a@nevitus.org>
parents: 34728
diff changeset
1306 purple_buddy_get_name(buddy), contact_size - 1);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1307
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1308 purple_request_action(contact, NULL, _("Remove Contact"), text, 0,
34331
c8486462bb63 Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34329
diff changeset
1309 NULL,
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1310 contact, 2,
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1311 _("_Remove Contact"), G_CALLBACK(pidgin_dialogs_remove_contact_cb),
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1312 _("Cancel"),
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1313 NULL);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1314
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1315 g_free(text);
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1316 }
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1317 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1318
15882
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15860
diff changeset
1319 static void free_ggmo(struct _PidginGroupMergeObject *ggp)
14530
c0cfb1c41d3f [gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14527
diff changeset
1320 {
c0cfb1c41d3f [gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14527
diff changeset
1321 g_free(ggp->new_name);
c0cfb1c41d3f [gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14527
diff changeset
1322 g_free(ggp);
c0cfb1c41d3f [gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14527
diff changeset
1323 }
c0cfb1c41d3f [gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14527
diff changeset
1324
14527
134a695b4fa0 [gaim-migrate @ 17179]
Mark Doliner <markdoliner@pidgin.im>
parents: 14526
diff changeset
1325 static void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1326 pidgin_dialogs_merge_groups_cb(struct _PidginGroupMergeObject *GGP)
14526
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1327 {
34728
8efd73063ecf Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents: 34726
diff changeset
1328 purple_group_set_name(GGP->parent, GGP->new_name);
14530
c0cfb1c41d3f [gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14527
diff changeset
1329 free_ggmo(GGP);
14526
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1330 }
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1331
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1332 void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1333 pidgin_dialogs_merge_groups(PurpleGroup *source, const char *new_name)
14526
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1334 {
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1335 gchar *text;
15882
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15860
diff changeset
1336 struct _PidginGroupMergeObject *ggp;
14526
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1337
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1338 g_return_if_fail(source != NULL);
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1339 g_return_if_fail(new_name != NULL);
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1340
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1341 text = g_strdup_printf(
14530
c0cfb1c41d3f [gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14527
diff changeset
1342 _("You are about to merge the group called %s into the group "
32712
b0fbaebd28a2 Use the purple_group_get_name() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents: 32709
diff changeset
1343 "called %s. Do you want to continue?"), purple_group_get_name(source), new_name);
14526
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1344
15882
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15860
diff changeset
1345 ggp = g_new(struct _PidginGroupMergeObject, 1);
14526
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1346 ggp->parent = source;
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1347 ggp->new_name = g_strdup(new_name);
25888
d0fdd378a635 Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents: 25869
diff changeset
1348
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1349 purple_request_action(source, NULL, _("Merge Groups"), text, 0,
34331
c8486462bb63 Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34329
diff changeset
1350 NULL,
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1351 ggp, 2,
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1352 _("_Merge Groups"), G_CALLBACK(pidgin_dialogs_merge_groups_cb),
14530
c0cfb1c41d3f [gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14527
diff changeset
1353 _("Cancel"), G_CALLBACK(free_ggmo));
14526
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1354
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1355 g_free(text);
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1356 }
272b75278ff1 [gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 14498
diff changeset
1357
12406
89863d2d9b8d [gaim-migrate @ 14713]
Richard Laager <rlaager@pidgin.im>
parents: 12374
diff changeset
1358 static void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1359 pidgin_dialogs_remove_group_cb(PurpleGroup *group)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1360 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1361 PurpleBlistNode *cnode, *bnode;
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1362
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1363 cnode = ((PurpleBlistNode*)group)->child;
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1364
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1365 while (cnode) {
34696
6e0d13978666 Global replace to use GObject-style macros. See details.
Ankit Vani <a@nevitus.org>
parents: 34662
diff changeset
1366 if (PURPLE_IS_CONTACT(cnode)) {
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1367 bnode = cnode->child;
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1368 cnode = cnode->next;
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1369 while (bnode) {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1370 PurpleBuddy *buddy;
34696
6e0d13978666 Global replace to use GObject-style macros. See details.
Ankit Vani <a@nevitus.org>
parents: 34662
diff changeset
1371 if (PURPLE_IS_BUDDY(bnode)) {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1372 buddy = (PurpleBuddy*)bnode;
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1373 bnode = bnode->next;
32709
0edad3ff7243 Use the PurpleBuddy accessor functions.
Andrew Victor <andrew.victor@mxit.com>
parents: 32577
diff changeset
1374 if (purple_account_is_connected(purple_buddy_get_account(buddy))) {
0edad3ff7243 Use the PurpleBuddy accessor functions.
Andrew Victor <andrew.victor@mxit.com>
parents: 32577
diff changeset
1375 purple_account_remove_buddy(purple_buddy_get_account(buddy), buddy, group);
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1376 purple_blist_remove_buddy(buddy);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1377 }
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1378 } else {
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1379 bnode = bnode->next;
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1380 }
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1381 }
34696
6e0d13978666 Global replace to use GObject-style macros. See details.
Ankit Vani <a@nevitus.org>
parents: 34662
diff changeset
1382 } else if (PURPLE_IS_CHAT(cnode)) {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1383 PurpleChat *chat = (PurpleChat *)cnode;
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1384 cnode = cnode->next;
32713
e5581dd86f9d Use the PurpleChat accessor functions.
Andrew Victor <andrew.victor@mxit.com>
parents: 32712
diff changeset
1385 if (purple_account_is_connected(purple_chat_get_account(chat)))
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1386 purple_blist_remove_chat(chat);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1387 } else {
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1388 cnode = cnode->next;
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1389 }
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1390 }
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1391
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1392 purple_blist_remove_group(group);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1393 }
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1394
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1395 void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1396 pidgin_dialogs_remove_group(PurpleGroup *group)
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1397 {
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1398 gchar *text;
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1399
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1400 g_return_if_fail(group != NULL);
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1401
10816
ba2657f4c157 [gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents: 10813
diff changeset
1402 text = g_strdup_printf(_("You are about to remove the group %s and all its members from your buddy list. Do you want to continue?"),
32712
b0fbaebd28a2 Use the purple_group_get_name() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents: 32709
diff changeset
1403 purple_group_get_name(group));
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1404
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1405 purple_request_action(group, NULL, _("Remove Group"), text, 0,
34331
c8486462bb63 Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34329
diff changeset
1406 NULL,
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1407 group, 2,
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1408 _("_Remove Group"), G_CALLBACK(pidgin_dialogs_remove_group_cb),
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1409 _("Cancel"), NULL);
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1410
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1411 g_free(text);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1412 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1413
10246
aa5bff72f94c [gaim-migrate @ 11386]
Mark Doliner <markdoliner@pidgin.im>
parents: 10222
diff changeset
1414 /* XXX - Some of this should be moved into the core, methinks. */
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1415 static void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1416 pidgin_dialogs_remove_buddy_cb(PurpleBuddy *buddy)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1417 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1418 PurpleGroup *group;
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1419 gchar *name;
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1420 PurpleAccount *account;
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1421
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1422 group = purple_buddy_get_group(buddy);
32709
0edad3ff7243 Use the PurpleBuddy accessor functions.
Andrew Victor <andrew.victor@mxit.com>
parents: 32577
diff changeset
1423 name = g_strdup(purple_buddy_get_name(buddy)); /* purple_buddy_get_name() is a crasher after remove_buddy */
0edad3ff7243 Use the PurpleBuddy accessor functions.
Andrew Victor <andrew.victor@mxit.com>
parents: 32577
diff changeset
1424 account = purple_buddy_get_account(buddy);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1425
32709
0edad3ff7243 Use the PurpleBuddy accessor functions.
Andrew Victor <andrew.victor@mxit.com>
parents: 32577
diff changeset
1426 purple_debug_info("blist", "Removing '%s' from buddy list.\n", purple_buddy_get_name(buddy));
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1427 /* TODO - Should remove from blist first... then call purple_account_remove_buddy()? */
30706
612b36b49058 Kill off many dead assignments and any useless remaining variables.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 30557
diff changeset
1428 purple_account_remove_buddy(account, buddy, group);
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1429 purple_blist_remove_buddy(buddy);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1430
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1431 g_free(name);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1432 }
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1433
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1434 void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1435 pidgin_dialogs_remove_buddy(PurpleBuddy *buddy)
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1436 {
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1437 gchar *text;
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1438
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1439 g_return_if_fail(buddy != NULL);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1440
10816
ba2657f4c157 [gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents: 10813
diff changeset
1441 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"),
32709
0edad3ff7243 Use the PurpleBuddy accessor functions.
Andrew Victor <andrew.victor@mxit.com>
parents: 32577
diff changeset
1442 purple_buddy_get_name(buddy));
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1443
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1444 purple_request_action(buddy, NULL, _("Remove Buddy"), text, 0,
34331
c8486462bb63 Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34329
diff changeset
1445 purple_request_cpar_from_account(
c8486462bb63 Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34329
diff changeset
1446 purple_buddy_get_account(buddy)),
c8486462bb63 Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34329
diff changeset
1447 buddy, 2, _("_Remove Buddy"),
c8486462bb63 Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34329
diff changeset
1448 G_CALLBACK(pidgin_dialogs_remove_buddy_cb), _("Cancel"), NULL);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1449
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1450 g_free(text);
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1451 }
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1452
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1453 static void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1454 pidgin_dialogs_remove_chat_cb(PurpleChat *chat)
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1455 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1456 purple_blist_remove_chat(chat);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1457 }
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1458
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1459 void
16263
27e0ef0f38e6 Word on the street is that we don't want things named pidginfoo_bar(), but
Richard Laager <rlaager@pidgin.im>
parents: 16254
diff changeset
1460 pidgin_dialogs_remove_chat(PurpleChat *chat)
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1461 {
10877
4c7371150f56 [gaim-migrate @ 12569]
Daniel Atallah <datallah@pidgin.im>
parents: 10874
diff changeset
1462 const gchar *name;
4c7371150f56 [gaim-migrate @ 12569]
Daniel Atallah <datallah@pidgin.im>
parents: 10874
diff changeset
1463 gchar *text;
9753
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1464
5951fd24250e [gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents: 9730
diff changeset
1465 g_return_if_fail(chat != NULL);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1466
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15883
diff changeset
1467 name = purple_chat_get_name(chat);
10877
4c7371150f56 [gaim-migrate @ 12569]
Daniel Atallah <datallah@pidgin.im>
parents: 10874
diff changeset
1468 text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"),
4c7371150f56 [gaim-migrate @ 12569]
Daniel Atallah <datallah@pidgin.im>
parents: 10874
diff changeset
1469 name ? name : "");
4c7371150f56 [gaim-migrate @ 12569]
Daniel Atallah <datallah@pidgin.im>
parents: 10874
diff changeset
1470
16490
68c22924d66b Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents: 16471
diff changeset
1471 purple_request_action(chat, NULL, _("Remove Chat"), text, 0,
34331
c8486462bb63 Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34329
diff changeset
1472 purple_request_cpar_from_account(purple_chat_get_account(chat)),
c8486462bb63 Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34329
diff changeset
1473 chat, 2, _("_Remove Chat"),
c8486462bb63 Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34329
diff changeset
1474 G_CALLBACK(pidgin_dialogs_remove_chat_cb), _("Cancel"), NULL);
9730
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1475
e59812364b8b [gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents: 9728
diff changeset
1476 g_free(text);
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1477 }

mercurial