Wed, 21 Sep 2011 06:45:26 +0000
Apply conversation theme when opening the GTK conversation. All the
parsing stuff was moved out of the theme code and into the conversation
code.
Someone (not me!) needs to check the code I commented out and see if
we really need that stuff (and then port it to WebKit/styling).
We also need to determine where to place Template.html and the rest
of our (not-yet-written) default theme.
| 9709 | 1 | /* |
|
10297
b36800725b7a
[gaim-migrate @ 11480]
Evan Schoenberg <evands@pidgin.im>
parents:
10266
diff
changeset
|
2 | * @file gtkdialogs.c GTK+ Dialogs |
|
16254
eeb2bba4dc94
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@pidgin.im>
parents:
16252
diff
changeset
|
3 | * @ingroup pidgin |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
20137
diff
changeset
|
4 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
20137
diff
changeset
|
5 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
20137
diff
changeset
|
6 | /* pidgin |
| 9709 | 7 | * |
|
15931
716b5fac1895
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@pidgin.im>
parents:
15906
diff
changeset
|
8 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 9709 | 9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 10 | * source distribution. | |
| 11 | * | |
| 12 | * This program is free software; you can redistribute it and/or modify | |
| 13 | * it under the terms of the GNU General Public License as published by | |
| 14 | * the Free Software Foundation; either version 2 of the License, or | |
| 15 | * (at your option) any later version. | |
| 16 | * | |
| 17 | * This program is distributed in the hope that it will be useful, | |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | * GNU General Public License for more details. | |
| 21 | * | |
| 22 | * You should have received a copy of the GNU General Public License | |
| 23 | * 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
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 9709 | 25 | */ |
|
24569
5dbd0617a27d
Build everything with the *_DISABLE_DEPRECATED flags set. This allows us
Richard Laager <rlaager@pidgin.im>
parents:
24541
diff
changeset
|
26 | #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
|
27 | |
| 9791 | 28 | #include "internal.h" |
| 15577 | 29 | #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
|
30 | #include "package_revision.h" |
| 9709 | 31 | |
| 32 | #include "debug.h" | |
| 33 | #include "notify.h" | |
|
31945
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
34 | #include "plugin.h" |
| 9709 | 35 | #include "prpl.h" |
| 36 | #include "request.h" | |
| 37 | #include "util.h" | |
|
25702
41a5336bc2d6
applied changes from 20269e8849976ad6a0996f79ccbc0a12a311484f
Ethan Blanton <elb@pidgin.im>
parents:
25685
diff
changeset
|
38 | #include "core.h" |
| 9709 | 39 | |
|
12232
857f087ec86b
[gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents:
12122
diff
changeset
|
40 | #include "gtkblist.h" |
| 9709 | 41 | #include "gtkdialogs.h" |
| 42 | #include "gtklog.h" | |
| 43 | #include "gtkutils.h" | |
|
32439
2c681e5daeeb
Webkit Message views.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
27941
diff
changeset
|
44 | #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
|
45 | #include "pidginstock.h" |
| 9709 | 46 | |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
47 | static GList *dialogwindows = NULL; |
| 9709 | 48 | |
| 15882 | 49 | struct _PidginGroupMergeObject { |
| 15884 | 50 | PurpleGroup* parent; |
|
14526
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
51 | char *new_name; |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
52 | }; |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
53 | |
|
9758
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
54 | struct developer { |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
55 | char *name; |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
56 | char *role; |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
57 | char *email; |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
58 | }; |
|
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 | struct translator { |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
61 | char *language; |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
62 | char *abbr; |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
63 | char *name; |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
64 | char *email; |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
65 | }; |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
66 | |
| 15449 | 67 | struct artist { |
| 68 | char *name; | |
| 69 | char *email; | |
| 70 | }; | |
| 71 | ||
|
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
|
72 | /* 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
|
73 | 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
|
74 | {"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
|
75 | {"Paul 'darkrain42' Aurich", NULL, NULL}, |
|
31331
37e516d6566e
"Bug Master" really isn't all that appropriate title for me anymore, considering
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31253
diff
changeset
|
76 | {"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
|
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 | {"Casey Harkins", NULL, NULL}, |
|
30846
b0cbc7188152
Can I take some liberties?
Mark Doliner <markdoliner@pidgin.im>
parents:
30843
diff
changeset
|
82 | {"Ivan Komarov", NULL, "ivan.komarov@pidgin.im"}, |
|
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
|
83 | {"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
|
84 | {"Richard 'rlaager' Laager", NULL, "rlaager@pidgin.im"}, |
|
30846
b0cbc7188152
Can I take some liberties?
Mark Doliner <markdoliner@pidgin.im>
parents:
30843
diff
changeset
|
85 | {"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
|
86 | {"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
|
87 | {"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
|
88 | {"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
|
89 | {"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
|
90 | {"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
|
91 | {"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
|
92 | {"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
|
93 | {"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
|
94 | {"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
|
95 | {"Stu 'nosnilmot' Tomlinson", NULL, NULL}, |
|
30846
b0cbc7188152
Can I take some liberties?
Mark Doliner <markdoliner@pidgin.im>
parents:
30843
diff
changeset
|
96 | {"Jorge 'Masca' Villaseñor", NULL, NULL}, |
|
9758
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
97 | {NULL, NULL, NULL} |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
98 | }; |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
99 | |
|
12065
7b429166d302
[gaim-migrate @ 14360]
Richard Laager <rlaager@pidgin.im>
parents:
12062
diff
changeset
|
100 | /* 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
|
101 | 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
|
102 | {"Jakub 'haakon' Adam", NULL, NULL}, |
|
31667
3dd7c4b5a45d
Induct two new CPW's to our list.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31629
diff
changeset
|
103 | {"Krzysztof Klinikowski", 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
|
104 | {"Peter 'Fmoo' Ruibal", 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
|
105 | {"Gabriel 'Nix' Schulhof", NULL, NULL}, |
|
31667
3dd7c4b5a45d
Induct two new CPW's to our list.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31629
diff
changeset
|
106 | {"Tomasz Wasilczyk", NULL, NULL}, |
| 10372 | 107 | {NULL, NULL, NULL} |
| 108 | }; | |
| 109 | ||
|
12065
7b429166d302
[gaim-migrate @ 14360]
Richard Laager <rlaager@pidgin.im>
parents:
12062
diff
changeset
|
110 | /* 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
|
111 | static const struct developer retired_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
|
112 | {"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
|
113 | {"Thomas Butter", NULL, NULL}, |
|
31809
2ba2c488c0ad
You know, I've been telling myself that I am going to get back to
Ka-Hing Cheung <khc@pidgin.im>
parents:
31667
diff
changeset
|
114 | /* feel free to not translate this */ |
|
2ba2c488c0ad
You know, I've been telling myself that I am going to get back to
Ka-Hing Cheung <khc@pidgin.im>
parents:
31667
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}, |
|
13702
35310965f38a
[gaim-migrate @ 16103]
Richard Laager <rlaager@pidgin.im>
parents:
13698
diff
changeset
|
121 | /* 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
|
122 | {"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
|
123 | {"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
|
124 | {"Bartosz Oler", NULL, NULL}, |
|
30846
b0cbc7188152
Can I take some liberties?
Mark Doliner <markdoliner@pidgin.im>
parents:
30843
diff
changeset
|
125 | {"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
|
126 | {"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
|
127 | {"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
|
128 | {"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
|
129 | {"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
|
130 | {"Eric Warmenhoven", N_("lead developer"), "warmenhoven@yahoo.com"}, |
|
9758
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
131 | {NULL, NULL, NULL} |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
132 | }; |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
133 | |
|
18998
075149534705
Patch from John Bailey to bring the about window back to the present...
Gary Kramlich <grim@reaperworld.com>
parents:
18972
diff
changeset
|
134 | /* 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
|
135 | 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
|
136 | {"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
|
137 | {"Decklin Foster", NULL, NULL}, |
|
30846
b0cbc7188152
Can I take some liberties?
Mark Doliner <markdoliner@pidgin.im>
parents:
30843
diff
changeset
|
138 | {"Dennis 'EvilDennisR' Ristuccia", N_("Senior Contributor/QA"), 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
|
139 | {"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
|
140 | {"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
|
141 | {"Benjamin Miller", 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
|
142 | {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
|
143 | }; |
|
075149534705
Patch from John Bailey to bring the about window back to the present...
Gary Kramlich <grim@reaperworld.com>
parents:
18972
diff
changeset
|
144 | |
|
12065
7b429166d302
[gaim-migrate @ 14360]
Richard Laager <rlaager@pidgin.im>
parents:
12062
diff
changeset
|
145 | /* Order: Code, then Alphabetical by Last Name */ |
|
24523
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
146 | static const struct translator translators[] = { |
|
23136
2e66d36b9405
Afrikaans translation updated (Samuel Murray)
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
23113
diff
changeset
|
147 | {N_("Afrikaans"), "af", "Samuel Murray", "afrikaans@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
|
148 | {N_("Afrikaans"), "af", "Friedel Wolff", "friedel@translate.org.za"}, |
|
20160
4cc4159743ae
Plucked translation changes:
Richard Laager <rlaager@pidgin.im>
parents:
20147
diff
changeset
|
149 | {N_("Arabic"), "ar", "Khaled Hosny", "khaledhosny@eglug.org"}, |
| 30197 | 150 | {N_("Assamese"), "as", "Amitakhya Phukan", "aphukan@fedoraproject.org"}, |
| 19944 | 151 | {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
|
152 | {N_("Bulgarian"), "bg", "Vladimira Girginova", "missing@here.is"}, |
|
32546
16f61ebeb485
Update two translators' email addresses based on bounces/auto-replies
Mark Doliner <markdoliner@pidgin.im>
parents:
32522
diff
changeset
|
153 | {N_("Bulgarian"), "bg", "Vladimir (Kaladan) Petkov", "kaladan@gmail.com"}, |
|
25261
ecbebbb1b439
Add Israt Jahan to the about dialog for the Bengali translation.
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
154 | {N_("Bengali"), "bn", "Israt Jahan", "israt@ankur.org.bd"}, |
|
15860
91fc3b830d63
lots of translation updates. Some of these I neglected for way too long.
Luke Schierer <lschiere@pidgin.im>
parents:
15670
diff
changeset
|
155 | {N_("Bengali"), "bn", "Jamil Ahmed", "jamil@bengalinux.org"}, |
|
12581
2aa03d2aa3f9
[gaim-migrate @ 14909]
Luke Schierer <lschiere@pidgin.im>
parents:
12534
diff
changeset
|
156 | {N_("Bengali"), "bn", "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
|
157 | {N_("Bengali-India"), "bn_IN", "Runa Bhattacharjee", "runab@fedoraproject.org"}, |
|
11868
de112db7c33c
[gaim-migrate @ 14159]
Luke Schierer <lschiere@pidgin.im>
parents:
11863
diff
changeset
|
158 | {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
|
159 | {N_("Catalan"), "ca", "Josep Puigdemont", "josep.puigdemont@gmail.com"}, |
|
13738
79763a014fa1
[gaim-migrate @ 16147]
Luke Schierer <lschiere@pidgin.im>
parents:
13737
diff
changeset
|
160 | {N_("Valencian-Catalan"), "ca@valencia", "Toni Hermoso", "toniher@softcatala.org"}, |
|
13737
a51703824df5
[gaim-migrate @ 16146]
Luke Schierer <lschiere@pidgin.im>
parents:
13736
diff
changeset
|
161 | {N_("Valencian-Catalan"), "ca@valencia", "Josep Puigdemont", "tradgnome@softcatala.org"}, |
|
22722
2b11acb49054
Czech translation updated (David Vachulka)
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22525
diff
changeset
|
162 | {N_("Czech"), "cs", "David Vachulka", "david@konstrukce-cad.com"}, |
|
10852
acf09a205b3f
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
163 | {N_("Danish"), "da", "Morten Brix Pedersen", "morten@wtf.dk"}, |
|
15860
91fc3b830d63
lots of translation updates. Some of these I neglected for way too long.
Luke Schierer <lschiere@pidgin.im>
parents:
15670
diff
changeset
|
164 | {N_("Danish"), "da", "Peter Bach", "bach.peter@gmail.com"}, |
|
10852
acf09a205b3f
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
165 | {N_("German"), "de", "Björn Voigt", "bjoern@cs.tu-berlin.de"}, |
|
21130
dc41ebbe593e
change my email address
Jochen Kemnade <jochenkemnade@web.de>
parents:
21106
diff
changeset
|
166 | {N_("German"), "de", "Jochen Kemnade", "jochenkemnade@web.de"}, |
|
15342
1b259c524a49
[gaim-migrate @ 18070]
Luke Schierer <lschiere@pidgin.im>
parents:
15108
diff
changeset
|
167 | {N_("Dzongkha"), "dz", "Norbu", "nor_den@hotmail.com"}, |
|
1b259c524a49
[gaim-migrate @ 18070]
Luke Schierer <lschiere@pidgin.im>
parents:
15108
diff
changeset
|
168 | {N_("Dzongkha"), "dz", "Jurmey Rabgay", "jur_gay@yahoo.com"}, |
|
1b259c524a49
[gaim-migrate @ 18070]
Luke Schierer <lschiere@pidgin.im>
parents:
15108
diff
changeset
|
169 | {N_("Dzongkha"), "dz", "Wangmo Sherpa", "rinwanshe@yahoo.com"}, |
| 12062 | 170 | {N_("Greek"), "el", "Katsaloulis Panayotis", "panayotis@panayotis.com"}, |
|
11931
59339dbc210b
[gaim-migrate @ 14222]
Richard Laager <rlaager@pidgin.im>
parents:
11930
diff
changeset
|
171 | {N_("Greek"), "el", "Bouklis Panos", "panos@echidna-band.com"}, |
|
10852
acf09a205b3f
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
172 | {N_("Australian English"), "en_AU", "Peter Lawler", "trans@six-by-nine.com.au"}, |
|
31253
8fef564f7818
Updated British English translation by new translator. Fixes #13014.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31252
diff
changeset
|
173 | {N_("British English"), "en_GB", "Phil Hannent", "phil@hannent.co.uk"}, |
| 12062 | 174 | {N_("Canadian English"), "en_CA", "Adam Weinberger", "adamw@gnome.org"}, |
|
14873
2f8bd1b9261b
[gaim-migrate @ 17577]
Luke Schierer <lschiere@pidgin.im>
parents:
14769
diff
changeset
|
175 | {N_("Esperanto"), "eo", "Stéphane Fillod", "fillods@users.sourceforge.net"}, |
|
10852
acf09a205b3f
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
176 | {N_("Spanish"), "es", "Javier Fernández-Sanguino Peña", "jfs@debian.org"}, |
|
19398
5ad393f0c59f
15 translation updates. Our translators rock!
Mark Doliner <markdoliner@pidgin.im>
parents:
19396
diff
changeset
|
177 | {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
|
178 | {N_("Basque"), "eu", "Mikel Pascual Aldabaldetreku", "mikel.paskual@gmail.com"}, |
|
13380
7808b52120bc
[gaim-migrate @ 15752]
Luke Schierer <lschiere@pidgin.im>
parents:
13320
diff
changeset
|
179 | {N_("Persian"), "fa", "Elnaz Sarbar", "elnaz@farsiweb.info"}, |
|
7808b52120bc
[gaim-migrate @ 15752]
Luke Schierer <lschiere@pidgin.im>
parents:
13320
diff
changeset
|
180 | {N_("Persian"), "fa", "Meelad Zakaria", "meelad@farsiweb.info"}, |
|
14924
e2f9e02712a4
[gaim-migrate @ 17631]
Luke Schierer <lschiere@pidgin.im>
parents:
14887
diff
changeset
|
181 | {N_("Persian"), "fa", "Roozbeh Pournader ", "roozbeh@farsiweb.info"}, |
|
12494
e17696e1ecb2
[gaim-migrate @ 14806]
Luke Schierer <lschiere@pidgin.im>
parents:
12406
diff
changeset
|
182 | {N_("Finnish"), "fi", "Timo Jyrinki", "timo.jyrinki@iki.fi"}, |
|
10852
acf09a205b3f
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
183 | {N_("French"), "fr", "Éric Boumaour", "zongo_fr@users.sourceforge.net"}, |
|
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
|
184 | {N_("Irish"), "ga", "Aaron Kearns", "ajkearns6@gmail.com"}, |
| 18726 | 185 | {N_("Galician"), "gl", "Mar Castro", "mariamarcp@gmail.com"}, |
|
19400
646e8bff2712
Update the Galician translators
Mark Doliner <markdoliner@pidgin.im>
parents:
19398
diff
changeset
|
186 | {N_("Galician"), "gl", "Frco. Javier Rial", "fjrial@cesga.es"}, |
|
14123
7ae9b90ecf6f
[gaim-migrate @ 16679]
Luke Schierer <lschiere@pidgin.im>
parents:
14105
diff
changeset
|
187 | {N_("Gujarati"), "gu", "Ankit Patel", "ankit_patel@users.sf.net"}, |
|
17204
32eac5324941
mark all translation teams as translatable. fixes #528
Luke Schierer <lschiere@pidgin.im>
parents:
17021
diff
changeset
|
188 | {N_("Gujarati"), "gu", N_("Gujarati Language Team"), "indianoss-gujarati@lists.sourceforge.net"}, |
|
13698
c8af27a6e76f
[gaim-migrate @ 16099]
Mark Doliner <markdoliner@pidgin.im>
parents:
13648
diff
changeset
|
189 | {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
|
190 | {N_("Hindi"), "hi", "Sangeeta Kumari", "sangeeta_0975@yahoo.com"}, |
|
29933
1b4c2f07c1b7
Updated Hindi translation from Rajesh Ranjan, who I'm setting as the
Mark Doliner <markdoliner@pidgin.im>
parents:
29861
diff
changeset
|
191 | {N_("Hindi"), "hi", "Rajesh Ranjan", "rajeshkajha@yahoo.com"}, |
|
31808
40248c682723
Added Croatian translation from Sabina Drempetić. Closes #13595
Paul Aurich <darkrain42@pidgin.im>
parents:
31667
diff
changeset
|
192 | {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
|
193 | {N_("Hungarian"), "hu", "Kelemen Gábor", "kelemeng@gnome.hu"}, |
|
27180
8c91f83b617d
Added Armenian translation. Closes #9208.
David Avsharyan <avsharyan@gmail.com>
parents:
27179
diff
changeset
|
194 | {N_("Armenian"), "hy", "David Avsharyan", "avsharyan@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
|
195 | {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
|
196 | {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
|
197 | {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
|
198 | {N_("Georgian"), "ka", N_("Ubuntu Georgian Translators"), "alexander.didebulidze@stusta.mhn.de"}, |
|
26395
35dc600a5582
Mark "Khmer" as translatable since we're not in string freeze
Paul Aurich <darkrain42@pidgin.im>
parents:
26380
diff
changeset
|
199 | {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
|
200 | {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
|
201 | {N_("Korean"), "ko", "Sushizang", "sushizang@empal.com"}, |
|
13549
95bb621ff3a7
[gaim-migrate @ 15925]
Björn Voigt <bjoern@cs.tu-berlin.de>
parents:
13533
diff
changeset
|
202 | {N_("Kurdish"), "ku", "Erdal Ronahi", "erdal.ronahi@gmail.com"}, |
|
95bb621ff3a7
[gaim-migrate @ 15925]
Björn Voigt <bjoern@cs.tu-berlin.de>
parents:
13533
diff
changeset
|
203 | {N_("Kurdish"), "ku", "Amed Ç. Jiyan", "amedcj@hotmail.com"}, |
|
13597
f8bea789b08b
[gaim-migrate @ 15982]
Richard Laager <rlaager@pidgin.im>
parents:
13554
diff
changeset
|
204 | {N_("Kurdish"), "ku", "Rizoyê Xerzî", "rizoxerzi@hotmail.com"}, |
|
20160
4cc4159743ae
Plucked translation changes:
Richard Laager <rlaager@pidgin.im>
parents:
20147
diff
changeset
|
205 | {N_("Lao"), "lo", "Anousak Souphavah", "anousak@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
|
206 | {N_("Maithili"), "mai", "Sangeeta Kumari", "sangeeta_0975@yahoo.com"}, |
|
31607
60b95a8d7cac
Sangeeta Kumari & Rajesh Ranjan translate Hindi & Maithili
Richard Laager <rlaager@pidgin.im>
parents:
31506
diff
changeset
|
207 | {N_("Maithili"), "mai", "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
|
208 | {N_("Meadow Mari"), "mhr", "David Preece", "davidpreece1@gmail.com"}, |
| 17311 | 209 | {N_("Macedonian"), "mk", "Arangel Angov ", "arangel@linux.net.mk"}, |
|
20160
4cc4159743ae
Plucked translation changes:
Richard Laager <rlaager@pidgin.im>
parents:
20147
diff
changeset
|
210 | {N_("Macedonian"), "mk", "Ivana Kirkovska", "ivana.kirkovska@gmail.com"}, |
| 17311 | 211 | {N_("Macedonian"), "mk", "Jovan Naumovski", "jovan@lugola.net"}, |
| 30197 | 212 | {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
|
213 | {N_("Mongolian"), "mn", "gooyo", NULL}, |
|
29204
f78145febea1
Add Marathi translation from Sandeep Shedmake. Closes #11080.
Paul Aurich <darkrain42@pidgin.im>
parents:
29143
diff
changeset
|
214 | {N_("Marathi"), "mr", "Sandeep Shedmake", "sandeep.shedmake@gmail.com"}, |
|
28969
4fbd469968ef
Added Malay translation from Muhammad Najmi bin Ahmad Zabidi. Closes #10578.
Paul Aurich <darkrain42@pidgin.im>
parents:
28968
diff
changeset
|
215 | {N_("Malay"), "ms_MY", "Muhammad Najmi bin Ahmad Zabidi", "najmi.zabidi@gmail.com"}, |
|
25368
d4b20b5c67dd
Updated Norwegian Bokmal translation from Hans Fredrik Nordhaug. Fixes #8035.
Daniel Atallah <datallah@pidgin.im>
parents:
25330
diff
changeset
|
216 | {N_("Bokmål Norwegian"), "nb", "Hans Fredrik Nordhaug", "hans@nordhaug.priv.no"}, |
|
14123
7ae9b90ecf6f
[gaim-migrate @ 16679]
Luke Schierer <lschiere@pidgin.im>
parents:
14105
diff
changeset
|
217 | {N_("Nepali"), "ne", "Shyam Krishna Bal", "shyamkrishna_bal@yahoo.com"}, |
|
30555
1254d19d4449
Updated Dutch translation from new maintainer Gideon van Melle. Fixes #12314.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30552
diff
changeset
|
218 | {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
|
219 | {N_("Norwegian Nynorsk"), "nn", "Yngve Spjeld Landro", "l10n@landro.net"}, |
| 23219 | 220 | {N_("Occitan"), "oc", "Yannig Marchegay", "yannig@marchegay.org"}, |
|
29311
f9074cdafbff
Updated translations. Closes #11280, #11266, #11254.
Paul Aurich <darkrain42@pidgin.im>
parents:
29204
diff
changeset
|
221 | {N_("Oriya"), "or", "Manoj Kumar Giri", "giri.manojkr@gmail.com"}, |
| 21564 | 222 | {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
|
223 | {N_("Polish"), "pl", "Piotr Drąg", "piotrdrag@gmail.com"}, |
|
10852
acf09a205b3f
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
224 | {N_("Portuguese"), "pt", "Duarte Henriques", "duarte_henriques@myrealbox.com"}, |
|
23103
a514d2b765b0
New Brazilian Portuguese translation (and a new translator!)
Mark Doliner <markdoliner@pidgin.im>
parents:
23060
diff
changeset
|
225 | {N_("Portuguese-Brazil"), "pt_BR", "Rodrigo Luiz Marques Flores", "rodrigomarquesflores@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
|
226 | {N_("Pashto"), "ps", "Kashif Masood", "masudmails@yahoo.com"}, |
| 30197 | 227 | {N_("Romanian"), "ro", "Mișu Moldovan", "dumol@gnome.org"}, |
|
28166
45e6bb47521c
Updated Romanian translation, with new translator as well.
Mişu Moldovan <dumol@gnome.ro>
parents:
28081
diff
changeset
|
228 | {N_("Romanian"), "ro", "Andrei Popescu", "andreimpopescu@gmail.com"}, |
|
25412
b6963853fd2c
Russian translation updated by new translator Антон Самохвалов. Fixes #7946.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
25410
diff
changeset
|
229 | {N_("Russian"), "ru", "Антон Самохвалов", "samant.ua@mail.ru"}, |
|
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
|
230 | {N_("Slovak"), "sk", "Jozef Káčer", "quickparser@gmail.com"}, |
|
16102
1a23b9a1d5b3
Fix a typo. This changes a string, but it changes it to something
Mark Doliner <markdoliner@pidgin.im>
parents:
16098
diff
changeset
|
231 | {N_("Slovak"), "sk", "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
|
232 | {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
|
233 | {N_("Albanian"), "sq", "Besnik Bleta", "besnik@programeshqip.org"}, |
|
20137
59194466899c
applied changes from 4788a5d2117e007ef1d389bdd939afdd70da53ca
Richard Laager <rlaager@pidgin.im>
parents:
20109
diff
changeset
|
234 | {N_("Serbian"), "sr", "Miloš Popović", "gpopac@gmail.com"}, |
|
59194466899c
applied changes from 4788a5d2117e007ef1d389bdd939afdd70da53ca
Richard Laager <rlaager@pidgin.im>
parents:
20109
diff
changeset
|
235 | {N_("Serbian"), "sr@Latn", "Miloš Popović", "gpopac@gmail.com"}, |
| 22525 | 236 | {N_("Sinhala"), "si", "Danishka Navin", "snavin@redhat.com"}, |
|
24079
7fec5c4957b6
Updated Sinhala translation from Yajith Ajantha Dayarathna. Fixes #5882.
Daniel Atallah <datallah@pidgin.im>
parents:
23920
diff
changeset
|
237 | {N_("Sinhala"), "si", "Yajith Ajantha Dayarathna", "yajith@gmail.com"}, |
|
19398
5ad393f0c59f
15 translation updates. Our translators rock!
Mark Doliner <markdoliner@pidgin.im>
parents:
19396
diff
changeset
|
238 | {N_("Swedish"), "sv", "Peter Hjalmarsson", "xake@telia.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
|
239 | {N_("Swahili"), "sw", "Paul Msegeya", "msegeya@gmail.com"}, |
|
29319
b5caa55d24db
Updated Tamil translation. Closes #11085.
Paul Aurich <darkrain42@pidgin.im>
parents:
29311
diff
changeset
|
240 | {N_("Tamil"), "ta", "I. Felix", "ifelix25@gmail.com"}, |
|
12374
4ee6ae9f6b48
[gaim-migrate @ 14678]
Luke Schierer <lschiere@pidgin.im>
parents:
12321
diff
changeset
|
241 | {N_("Tamil"), "ta", "Viveka Nathan K", "vivekanathan@users.sourceforge.net"}, |
|
29976
6eb46e96ade8
Updated Telugu under new translator. Closes #11588
Paul Aurich <darkrain42@pidgin.im>
parents:
29938
diff
changeset
|
242 | {N_("Telugu"), "te", "Krishnababu Krottapalli", "krottapalli@ymail.com"}, |
|
13736
af9e19324e74
[gaim-migrate @ 16145]
Luke Schierer <lschiere@pidgin.im>
parents:
13722
diff
changeset
|
243 | {N_("Thai"), "th", "Isriya Paireepairit", "markpeak@gmail.com"}, |
|
17273
437c824d2dee
new turkish translator
Serdar Soytetir <tulliana@gmail.com>
parents:
17204
diff
changeset
|
244 | {N_("Turkish"), "tr", "Serdar Soytetir", "tulliana@gmail.com"}, |
|
28968
97f91c6a2410
Updated Ukranian translation. Closes #10239.
Paul Aurich <darkrain42@pidgin.im>
parents:
28621
diff
changeset
|
245 | {N_("Ukranian"), "uk", "Oleksandr Kovalenko", "alx.kovalenko@gmail.com"}, |
| 21592 | 246 | {N_("Urdu"), "ur", "RKVS Raman", "rkvsraman@gmail.com"}, |
|
10852
acf09a205b3f
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
247 | {N_("Vietnamese"), "vi", N_("T.M.Thanh and the Gnome-Vi Team"), "gnomevi-list@lists.sf.net"}, |
|
28451
61249b08ac5f
Updated Simplified Chinese translation and email update. Closes #10165.
Paul Aurich <darkrain42@pidgin.im>
parents:
28394
diff
changeset
|
248 | {N_("Simplified Chinese"), "zh_CN", "Aron Xu", "happyaron.xu@gmail.com"}, |
| 17335 | 249 | {N_("Hong Kong Chinese"), "zh_HK", "Abel Cheung", "abelindsay@gmail.com"}, |
|
16275
8dd89ba7541d
some translation updates. Also ticket 111 says that our zh_TW translation is also a zh_HK translation.
Luke Schierer <lschiere@pidgin.im>
parents:
16263
diff
changeset
|
250 | {N_("Hong Kong Chinese"), "zh_HK", "Ambrose C. Li", "acli@ada.dhs.org"}, |
|
8dd89ba7541d
some translation updates. Also ticket 111 says that our zh_TW translation is also a zh_HK translation.
Luke Schierer <lschiere@pidgin.im>
parents:
16263
diff
changeset
|
251 | {N_("Hong Kong Chinese"), "zh_HK", "Paladin R. Liu", "paladin@ms1.hinet.net"}, |
|
10852
acf09a205b3f
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
252 | {N_("Traditional Chinese"), "zh_TW", "Ambrose C. Li", "acli@ada.dhs.org"}, |
|
acf09a205b3f
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
253 | {N_("Traditional Chinese"), "zh_TW", "Paladin R. Liu", "paladin@ms1.hinet.net"}, |
|
9758
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
254 | {NULL, NULL, NULL, NULL} |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
255 | }; |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
256 | |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
257 | |
|
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
|
258 | static const struct translator past_translators[] = { |
|
12582
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
259 | {N_("Amharic"), "am", "Daniel Yacob", NULL}, |
|
20160
4cc4159743ae
Plucked translation changes:
Richard Laager <rlaager@pidgin.im>
parents:
20147
diff
changeset
|
260 | {N_("Arabic"), "ar", "Mohamed Magdy", "alnokta@yahoo.com"}, |
|
12582
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
261 | {N_("Bulgarian"), "bg", "Hristo Todorov", NULL}, |
|
27941
7445ba9b64f7
Updated Bengali translation and retire two translators. Closes #9738.
Paul Aurich <darkrain42@pidgin.im>
parents:
27815
diff
changeset
|
262 | {N_("Bengali"), "bn", "INDRANIL DAS GUPTA", "indradg@l2c2.org"}, |
|
7445ba9b64f7
Updated Bengali translation and retire two translators. Closes #9738.
Paul Aurich <darkrain42@pidgin.im>
parents:
27815
diff
changeset
|
263 | {N_("Bengali"), "bn", "Tisa Nafisa", "tisa_nafisa@yahoo.com"}, |
|
12582
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
264 | {N_("Catalan"), "ca", "JM Pérez Cáncer", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
265 | {N_("Catalan"), "ca", "Robert Millan", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
266 | {N_("Czech"), "cs", "Honza Král", NULL}, |
|
22722
2b11acb49054
Czech translation updated (David Vachulka)
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
22525
diff
changeset
|
267 | {N_("Czech"), "cs", "Miloslav Trmac", "mitr@volny.cz"}, |
|
12582
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
268 | {N_("German"), "de", "Daniel Seifert, Karsten Weiss", NULL}, |
|
31181
a54596ab0125
Luke Ross has retired from translating.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30880
diff
changeset
|
269 | {N_("British English"), "en_GB", "Luke Ross", "luke@lukeross.name"}, |
|
12582
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
270 | {N_("Spanish"), "es", "JM Pérez Cáncer", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
271 | {N_("Spanish"), "es", "Nicolás Lichtmaier", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
272 | {N_("Spanish"), "es", "Amaya Rodrigo", NULL}, |
|
19939
d3aa2056dcb3
Update the Hungarian translator in the about dialog. Fixes #3030.
Daniel Atallah <datallah@pidgin.im>
parents:
19869
diff
changeset
|
273 | {N_("Spanish"), "es", "Alejandro G Villar", NULL}, |
|
28268
7d3179b279c5
Rename Euskera(Basque) (sic.) to Basque per translator. Closes #9838.
Paul Aurich <darkrain42@pidgin.im>
parents:
28081
diff
changeset
|
274 | {N_("Basque"), "eu", "Iñaki Larrañaga Murgoitio", "dooteo@zundan.com"}, |
|
7d3179b279c5
Rename Euskera(Basque) (sic.) to Basque per translator. Closes #9838.
Paul Aurich <darkrain42@pidgin.im>
parents:
28081
diff
changeset
|
275 | {N_("Basque"), "eu", "Hizkuntza Politikarako Sailburuordetza", "hizkpol@ej-gv.es"}, |
|
12582
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
276 | {N_("Finnish"), "fi", "Arto Alakulju", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
277 | {N_("Finnish"), "fi", "Tero Kuusela", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
278 | {N_("French"), "fr", "Sébastien François", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
279 | {N_("French"), "fr", "Stéphane Pontier", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
280 | {N_("French"), "fr", "Stéphane Wirtel", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
281 | {N_("French"), "fr", "Loïc Jeannin", NULL}, |
|
19400
646e8bff2712
Update the Galician translators
Mark Doliner <markdoliner@pidgin.im>
parents:
19398
diff
changeset
|
282 | {N_("Galician"), "gl", "Ignacio Casal Quinteiro", NULL}, |
|
13698
c8af27a6e76f
[gaim-migrate @ 16099]
Mark Doliner <markdoliner@pidgin.im>
parents:
13648
diff
changeset
|
283 | {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
|
284 | {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
|
285 | {N_("Hungarian"), "hu", "Zoltan Sutto", NULL}, |
|
d3aa2056dcb3
Update the Hungarian translator in the about dialog. Fixes #3030.
Daniel Atallah <datallah@pidgin.im>
parents:
19869
diff
changeset
|
286 | {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
|
287 | {N_("Japanese"), "ja", "Takashi Aihana", NULL}, |
|
12582
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
288 | {N_("Japanese"), "ja", "Ryosuke Kutsuna", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
289 | {N_("Japanese"), "ja", "Taku Yasui", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
290 | {N_("Japanese"), "ja", "Junichi Uekawa", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
291 | {N_("Georgian"), "ka", "Temuri Doghonadze", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
292 | {N_("Korean"), "ko", "Sang-hyun S, A Ho-seok Lee", NULL}, |
|
19398
5ad393f0c59f
15 translation updates. Our translators rock!
Mark Doliner <markdoliner@pidgin.im>
parents:
19396
diff
changeset
|
293 | {N_("Korean"), "ko", "Kyeong-uk Son", NULL}, |
|
29143
7fb2bea2251d
Retire the Lithuanian translator per email request.
Paul Aurich <darkrain42@pidgin.im>
parents:
28969
diff
changeset
|
294 | {N_("Lithuanian"), "lt", "Laurynas Biveinis", "laurynas.biveinis@gmail.com"}, |
|
7fb2bea2251d
Retire the Lithuanian translator per email request.
Paul Aurich <darkrain42@pidgin.im>
parents:
28969
diff
changeset
|
295 | {N_("Lithuanian"), "lt", "Gediminas Čičinskas", NULL}, |
|
13380
7808b52120bc
[gaim-migrate @ 15752]
Luke Schierer <lschiere@pidgin.im>
parents:
13320
diff
changeset
|
296 | {N_("Lithuanian"), "lt", "Andrius Štikonas", NULL}, |
|
19398
5ad393f0c59f
15 translation updates. Our translators rock!
Mark Doliner <markdoliner@pidgin.im>
parents:
19396
diff
changeset
|
297 | {N_("Macedonian"), "mk", "Tomislav Markovski", NULL}, |
|
20160
4cc4159743ae
Plucked translation changes:
Richard Laager <rlaager@pidgin.im>
parents:
20147
diff
changeset
|
298 | {N_("Bokmål Norwegian"), "nb", "Hallvard Glad", "hallvard.glad@gmail.com"}, |
|
4cc4159743ae
Plucked translation changes:
Richard Laager <rlaager@pidgin.im>
parents:
20147
diff
changeset
|
299 | {N_("Bokmål Norwegian"), "nb", "Petter Johan Olsen", NULL}, |
|
25368
d4b20b5c67dd
Updated Norwegian Bokmal translation from Hans Fredrik Nordhaug. Fixes #8035.
Daniel Atallah <datallah@pidgin.im>
parents:
25330
diff
changeset
|
300 | {N_("Bokmål Norwegian"), "nb", "Espen Stefansen", "espenas@gmail.com"}, |
|
30555
1254d19d4449
Updated Dutch translation from new maintainer Gideon van Melle. Fixes #12314.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30552
diff
changeset
|
301 | {N_("Dutch, Flemish"), "nl", "Vincent van Adrighem", "V.vanAdrighem@dirck.mine.nu"}, |
|
25410
f2613327b333
New Polish translation by Piotr Makowski. Fixes #7944. Also updates the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
25368
diff
changeset
|
302 | {N_("Polish"), "pl", "Emil Nowak", "emil5@go2.pl"}, |
|
f2613327b333
New Polish translation by Piotr Makowski. Fixes #7944. Also updates the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
25368
diff
changeset
|
303 | {N_("Polish"), "pl", "Paweł Godlewski", "pawel@bajk.pl"}, |
|
f2613327b333
New Polish translation by Piotr Makowski. Fixes #7944. Also updates the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
25368
diff
changeset
|
304 | {N_("Polish"), "pl", "Krzysztof Foltman", "krzysztof@foltman.com"}, |
|
32547
42becf22558b
One of the Piotrs tells me that the other Piotr is no longer translating.
Mark Doliner <markdoliner@pidgin.im>
parents:
32546
diff
changeset
|
305 | {N_("Polish"), "pl", "Piotr Makowski", NULL}, |
|
12582
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
306 | {N_("Polish"), "pl", "Przemysław Sułek", NULL}, |
|
23103
a514d2b765b0
New Brazilian Portuguese translation (and a new translator!)
Mark Doliner <markdoliner@pidgin.im>
parents:
23060
diff
changeset
|
307 | {N_("Portuguese-Brazil"), "pt_BR", "Maurício de Lemos Rodrigues Collares Neto", "mauricioc@gmail.com"}, |
|
25412
b6963853fd2c
Russian translation updated by new translator Антон Самохвалов. Fixes #7946.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
25410
diff
changeset
|
308 | {N_("Russian"), "ru", "Dmitry Beloglazov", "dmaa@users.sf.net"}, |
|
12582
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
309 | {N_("Russian"), "ru", "Alexandre Prokoudine", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
310 | {N_("Russian"), "ru", "Sergey Volozhanin", NULL}, |
|
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
311 | {N_("Slovak"), "sk", "Daniel Režný", NULL}, |
|
19398
5ad393f0c59f
15 translation updates. Our translators rock!
Mark Doliner <markdoliner@pidgin.im>
parents:
19396
diff
changeset
|
312 | {N_("Slovak"), "sk", "helix84", NULL}, |
|
5ad393f0c59f
15 translation updates. Our translators rock!
Mark Doliner <markdoliner@pidgin.im>
parents:
19396
diff
changeset
|
313 | {N_("Slovak"), "sk", "Richard Golier", NULL}, |
|
15009
0c220003bc85
[gaim-migrate @ 17719]
Mark Doliner <markdoliner@pidgin.im>
parents:
15008
diff
changeset
|
314 | {N_("Slovenian"), "sl", "Matjaz Horvat", NULL}, |
|
20137
59194466899c
applied changes from 4788a5d2117e007ef1d389bdd939afdd70da53ca
Richard Laager <rlaager@pidgin.im>
parents:
20109
diff
changeset
|
315 | {N_("Serbian"), "sr", "Danilo Šegan", "dsegan@gmx.net"}, |
|
59194466899c
applied changes from 4788a5d2117e007ef1d389bdd939afdd70da53ca
Richard Laager <rlaager@pidgin.im>
parents:
20109
diff
changeset
|
316 | {N_("Serbian"), "sr", "Aleksandar Urosevic", "urke@users.sourceforge.net"}, |
|
19398
5ad393f0c59f
15 translation updates. Our translators rock!
Mark Doliner <markdoliner@pidgin.im>
parents:
19396
diff
changeset
|
317 | {N_("Swedish"), "sv", "Tore Lundqvist", NULL}, |
|
12582
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
318 | {N_("Swedish"), "sv", "Christian Rose", NULL}, |
|
29976
6eb46e96ade8
Updated Telugu under new translator. Closes #11588
Paul Aurich <darkrain42@pidgin.im>
parents:
29938
diff
changeset
|
319 | {N_("Telugu"), "te", "Mr. Subbaramaih", "info.gist@cdac.in"}, |
|
19398
5ad393f0c59f
15 translation updates. Our translators rock!
Mark Doliner <markdoliner@pidgin.im>
parents:
19396
diff
changeset
|
320 | {N_("Turkish"), "tr", "Ahmet Alp BALKAN", NULL}, |
|
12582
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
321 | {N_("Simplified Chinese"), "zh_CN", "Hashao, Rocky S. Lee", NULL}, |
|
27535
c6f48ab4d594
Updated Simplified Translation from Aron Xu, new translator. Closes #9243.
Paul Aurich <darkrain42@pidgin.im>
parents:
27361
diff
changeset
|
322 | {N_("Simplified Chinese"), "zh_CN", "Funda Wang", "fundawang@linux.net.cn"}, |
|
12582
7ec164be569e
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
323 | {N_("Traditional Chinese"), "zh_TW", "Hashao, Rocky S. Lee", NULL}, |
|
9758
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
324 | {NULL, NULL, NULL, NULL} |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
325 | }; |
|
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
326 | |
|
24523
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
327 | static void |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
328 | 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
|
329 | { |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
330 | for (; list->name != NULL; list++) { |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
331 | if (list->email != NULL) { |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
332 | g_string_append_printf(str, " <a href=\"mailto:%s\">%s</a>%s%s%s<br/>", |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
333 | list->email, _(list->name), |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
334 | list->role ? " (" : "", |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
335 | list->role ? _(list->role) : "", |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
336 | list->role ? ")" : ""); |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
337 | } else { |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
338 | g_string_append_printf(str, " %s%s%s%s<br/>", |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
339 | _(list->name), |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
340 | list->role ? " (" : "", |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
341 | list->role ? _(list->role) : "", |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
342 | list->role ? ")" : ""); |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
343 | } |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
344 | } |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
345 | } |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
346 | |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
347 | static void |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
348 | 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
|
349 | { |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
350 | for (; list->language != NULL; list++) { |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
351 | if (list->email != NULL) { |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
352 | g_string_append_printf(str, " <b>%s (%s)</b> - <a href=\"mailto:%s\">%s</a><br/>", |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
353 | _(list->language), |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
354 | list->abbr, |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
355 | list->email, |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
356 | _(list->name)); |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
357 | } else { |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
358 | g_string_append_printf(str, " <b>%s (%s)</b> - %s<br/>", |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
359 | _(list->language), |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
360 | list->abbr, |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
361 | _(list->name)); |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
362 | } |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
363 | } |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
364 | } |
|
d0d7fa4aca38
Remove duplicated code for building the lists.
Richard Laager <rlaager@pidgin.im>
parents:
24522
diff
changeset
|
365 | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
366 | 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
|
367 | pidgin_dialogs_destroy_all() |
| 9709 | 368 | { |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
369 | while (dialogwindows) { |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
370 | gtk_widget_destroy(dialogwindows->data); |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
371 | dialogwindows = g_list_remove(dialogwindows, dialogwindows->data); |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
372 | } |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
373 | } |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
374 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
375 | static void destroy_win(GtkWidget *button, GtkWidget *win) |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
376 | { |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
377 | gtk_widget_destroy(win); |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
378 | } |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
379 | |
|
20109
47e44a7b0fb9
applied changes from 6e915e14a78ccafa5e0ddfdcabccc2e174c734e3
Richard Laager <rlaager@pidgin.im>
parents:
20039
diff
changeset
|
380 | #if 0 |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
25869
diff
changeset
|
381 | /* 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
|
382 | * screen in Pidgin. */ |
|
14252
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
383 | static void |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15498
diff
changeset
|
384 | pidgin_logo_versionize(GdkPixbuf **original, GtkWidget *widget) { |
|
14252
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
385 | GdkPixmap *pixmap; |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
386 | GtkStyle *style; |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
387 | PangoContext *context; |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
388 | PangoLayout *layout; |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
389 | gchar *markup; |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
390 | gint width, height; |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
391 | gint lwidth = 0, lheight = 0; |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
392 | |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
393 | style = gtk_widget_get_style(widget); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
394 | |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
395 | gdk_pixbuf_render_pixmap_and_mask(*original, &pixmap, NULL, 255); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
396 | width = gdk_pixbuf_get_width(*original); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
397 | height = gdk_pixbuf_get_height(*original); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
398 | g_object_unref(G_OBJECT(*original)); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
399 | |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
400 | context = gtk_widget_get_pango_context(widget); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
401 | layout = pango_layout_new(context); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
402 | |
|
21106
b85fbef13eed
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21091
diff
changeset
|
403 | 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
|
404 | pango_layout_set_font_description(layout, style->font_desc); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
405 | pango_layout_set_markup(layout, markup, strlen(markup)); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
406 | g_free(markup); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
407 | |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
408 | pango_layout_get_pixel_size(layout, &lwidth, &lheight); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
409 | 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
|
410 | width - (lwidth + 3), 1, layout); |
|
14252
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
411 | g_object_unref(G_OBJECT(layout)); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
412 | |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
413 | *original = gdk_pixbuf_get_from_drawable(NULL, pixmap, NULL, |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
414 | 0, 0, 0, 0, |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
415 | width, height); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
416 | g_object_unref(G_OBJECT(pixmap)); |
|
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
417 | } |
|
20109
47e44a7b0fb9
applied changes from 6e915e14a78ccafa5e0ddfdcabccc2e174c734e3
Richard Laager <rlaager@pidgin.im>
parents:
20039
diff
changeset
|
418 | #endif |
|
14252
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
419 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
420 | /* Note: Frees 'string' */ |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
421 | static GtkWidget * |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
422 | 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
|
423 | { |
|
32522
8dea964d2d5b
Use pidgin_create_webview to make the Help dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32507
diff
changeset
|
424 | GtkWidget *win, *vbox, *frame, *logo, *webview, *button; |
|
14252
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
425 | GdkPixbuf *pixbuf; |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
426 | AtkObject *obj; |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
427 | char *filename, *tmp; |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
428 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
429 | win = pidgin_create_dialog(title, PIDGIN_HIG_BORDER, role, TRUE); |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
430 | vbox = pidgin_dialog_get_vbox_with_properties(GTK_DIALOG(win), FALSE, PIDGIN_HIG_BORDER); |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
431 | gtk_window_set_default_size(GTK_WINDOW(win), 450, 450); |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
432 | |
|
14252
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
433 | /* Generate a logo with a version number */ |
|
15946
d40e8847e825
More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15935
diff
changeset
|
434 | filename = g_build_filename(DATADIR, "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
|
435 | pixbuf = pidgin_pixbuf_new_from_file(filename); |
|
14252
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
436 | g_free(filename); |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
437 | |
|
20039
9fc4dcfbeeec
whoops! do if 0, not ifdef 0
Sean Egan <seanegan@pidgin.im>
parents:
20035
diff
changeset
|
438 | #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
|
439 | pidgin_logo_versionize(&pixbuf, logo); |
| 20035 | 440 | #endif |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
441 | |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
442 | /* Insert the logo */ |
|
14252
d10dda2777a9
[gaim-migrate @ 16854]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14123
diff
changeset
|
443 | 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
|
444 | 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
|
445 | g_object_unref(G_OBJECT(pixbuf)); |
|
10266
073aeb0c9117
[gaim-migrate @ 11412]
Mark Doliner <markdoliner@pidgin.im>
parents:
10246
diff
changeset
|
446 | 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
|
447 | 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
|
448 | 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
|
449 | g_free(tmp); |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
450 | gtk_box_pack_start(GTK_BOX(vbox), logo, FALSE, FALSE, 0); |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
451 | |
|
32522
8dea964d2d5b
Use pidgin_create_webview to make the Help dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32507
diff
changeset
|
452 | frame = pidgin_create_webview(FALSE, &webview, NULL, NULL); |
|
32504
8243b910ed4c
COMPILEmtn status./bin/stock/bin/pidgin -d Compile now, fix later.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents:
32503
diff
changeset
|
453 | /* FIXME: Compile now and fix it later when we have a proper replacement for this function |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
454 | gtk_imhtml_set_format_functions(GTK_IMHTML(imhtml), GTK_IMHTML_ALL ^ GTK_IMHTML_SMILEY); |
|
32504
8243b910ed4c
COMPILEmtn status./bin/stock/bin/pidgin -d Compile now, fix later.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents:
32503
diff
changeset
|
455 | */ |
|
10175
2bf5ed145e8a
[gaim-migrate @ 11290]
Mark Doliner <markdoliner@pidgin.im>
parents:
10167
diff
changeset
|
456 | 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
|
457 | |
|
32522
8dea964d2d5b
Use pidgin_create_webview to make the Help dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32507
diff
changeset
|
458 | gtk_webview_append_html(GTK_WEBVIEW(webview), string->str); |
|
8dea964d2d5b
Use pidgin_create_webview to make the Help dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32507
diff
changeset
|
459 | /* FIXME: This doesn't seem to stay at the top. */ |
|
8dea964d2d5b
Use pidgin_create_webview to make the Help dialog.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32507
diff
changeset
|
460 | webkit_web_view_move_cursor(WEBKIT_WEB_VIEW(webview), GTK_MOVEMENT_BUFFER_ENDS, -1); |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
461 | |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
462 | 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
|
463 | G_CALLBACK(destroy_win), win); |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
464 | |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
465 | GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
466 | gtk_widget_grab_default(button); |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
467 | |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
468 | gtk_widget_show_all(win); |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
469 | 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
|
470 | |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
471 | g_string_free(string, TRUE); |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
472 | |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
473 | return win; |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
474 | } |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
475 | |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
476 | void pidgin_dialogs_about(void) |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
477 | { |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
478 | GString *str; |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
479 | char *tmp; |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
480 | static GtkWidget *about = NULL; |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
481 | |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
482 | if (about != NULL) { |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
483 | 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
|
484 | return; |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
485 | } |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
486 | |
|
9758
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
487 | str = g_string_sized_new(4096); |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
488 | |
|
16071
044392e01c96
make things cleaner for translators
Nathan Walp <nwalp@pidgin.im>
parents:
16023
diff
changeset
|
489 | g_string_append_printf(str, |
|
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
|
490 | "<CENTER><FONT SIZE=\"4\"><B>%s %s</B></FONT></CENTER> (libpurple %s)" |
|
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
|
491 | "<BR>%s<BR><BR>", PIDGIN_NAME, DISPLAY_VERSION, |
|
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
|
492 | 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
|
493 | |
|
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
|
494 | g_string_append_printf(str, |
|
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
|
495 | _("%s is a messaging client based on libpurple which is capable of " |
|
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
|
496 | "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
|
497 | "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
|
498 | "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
|
499 | "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
|
500 | "its contributors, a list of whom is also distributed with %s. " |
|
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
|
501 | "There is no warranty for %s.<BR><BR>"), PIDGIN_NAME, PIDGIN_NAME, |
|
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
|
502 | 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
|
503 | |
|
47e44a7b0fb9
applied changes from 6e915e14a78ccafa5e0ddfdcabccc2e174c734e3
Richard Laager <rlaager@pidgin.im>
parents:
20039
diff
changeset
|
504 | g_string_append_printf(str, |
|
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
|
505 | _("<FONT SIZE=\"4\"><B>Helpful Resources</B></FONT><BR>\t<A " |
|
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
|
506 | "HREF=\"%s\">Website</A><BR>\t<A HREF=\"%s\">Frequently Asked " |
|
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
|
507 | "Questions</A><BR>\tIRC Channel: #pidgin on irc.freenode.net<BR>" |
|
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
|
508 | "\tXMPP MUC: devel@conference.pidgin.im<BR><BR>"), PURPLE_WEBSITE, |
|
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
|
509 | "http://developer.pidgin.im/wiki/FAQ"); |
|
20109
47e44a7b0fb9
applied changes from 6e915e14a78ccafa5e0ddfdcabccc2e174c734e3
Richard Laager <rlaager@pidgin.im>
parents:
20039
diff
changeset
|
510 | |
|
47e44a7b0fb9
applied changes from 6e915e14a78ccafa5e0ddfdcabccc2e174c734e3
Richard Laager <rlaager@pidgin.im>
parents:
20039
diff
changeset
|
511 | g_string_append_printf(str, |
|
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
|
512 | _("<font size=\"4\"><b>Help from other Pidgin users</b></font> is " |
|
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
|
513 | "available by e-mailing <a " |
|
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
|
514 | "href=\"mailto:support@pidgin.im\">support@pidgin.im</a><br/>" |
|
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
|
515 | "This is a <b>public</b> mailing list! " |
|
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
|
516 | "(<a href=\"http://pidgin.im/pipermail/support/\">archive</a>)<br/>" |
|
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
|
517 | "We can't help with third-party protocols or plugins!<br/>" |
|
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
|
518 | "This list's primary language is <b>English</b>. You are " |
|
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
|
519 | "welcome to post in another language, but the responses may " |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
520 | "be less helpful.<br/>")); |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
521 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
522 | 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
|
523 | 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
|
524 | 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
|
525 | g_free(tmp); |
|
29522
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
526 | } |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
527 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
528 | 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
|
529 | { |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
530 | GString *str; |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
531 | char *tmp; |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
532 | static GtkWidget *buildinfo = NULL; |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
533 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
534 | if (buildinfo != NULL) { |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
535 | 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
|
536 | return; |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
537 | } |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
25869
diff
changeset
|
538 | |
|
29522
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
539 | str = g_string_sized_new(4096); |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
540 | |
|
29522
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
541 | g_string_append_printf(str, |
|
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
|
542 | "<FONT SIZE=\"4\"><B>%s %s</B></FONT> (libpurple %s)<BR>%s<BR><BR>", PIDGIN_NAME, DISPLAY_VERSION, purple_core_get_version(), REVISION); |
|
9758
bad4efbbfbf5
[gaim-migrate @ 10625]
Mark Doliner <markdoliner@pidgin.im>
parents:
9753
diff
changeset
|
543 | |
|
29524
6a6a277b3174
I wanted to bold this text and forgot to.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29523
diff
changeset
|
544 | g_string_append_printf(str, "<FONT SIZE=\"4\"><B>%s</B></FONT><br/>", _("Build Information")); |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
545 | |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
546 | /* The following primarly intented for user/developer interaction and thus |
|
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
547 | ought not be translated */ |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
548 | |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
549 | #ifdef CONFIG_ARGS /* win32 build doesn't use configure */ |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
550 | g_string_append(str, " <b>Arguments to <i>./configure</i>:</b> " CONFIG_ARGS "<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
551 | #endif |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
552 | |
|
12534
6a460e34aa08
[gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents:
12511
diff
changeset
|
553 | #ifndef _WIN32 |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
554 | #ifdef DEBUG |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
555 | g_string_append(str, " <b>Print debugging messages:</b> Yes<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
556 | #else |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
557 | g_string_append(str, " <b>Print debugging messages:</b> No<br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
558 | #endif |
|
12534
6a460e34aa08
[gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents:
12511
diff
changeset
|
559 | #endif |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
560 | |
| 15884 | 561 | #ifdef PURPLE_PLUGINS |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
562 | g_string_append(str, " <b>Plugins:</b> Enabled<br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
563 | #else |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
564 | g_string_append(str, " <b>Plugins:</b> Disabled<br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
565 | #endif |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
566 | |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
567 | #ifdef HAVE_SSL |
|
16977
c9cb49bea66d
Change the PIDGIN_NAME stuff to allow translators to transliterate the
Richard Laager <rlaager@pidgin.im>
parents:
16961
diff
changeset
|
568 | g_string_append(str, " <b>SSL:</b> SSL support is present.<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
569 | #else |
|
16977
c9cb49bea66d
Change the PIDGIN_NAME stuff to allow translators to transliterate the
Richard Laager <rlaager@pidgin.im>
parents:
16961
diff
changeset
|
570 | g_string_append(str, " <b>SSL:</b> SSL support was <b><i>NOT</i></b> compiled!<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
571 | #endif |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
572 | |
|
13648
c6395449b56a
[gaim-migrate @ 16048]
Daniel Atallah <datallah@pidgin.im>
parents:
13597
diff
changeset
|
573 | /* This might be useful elsewhere too, but it is particularly useful for |
|
c6395449b56a
[gaim-migrate @ 16048]
Daniel Atallah <datallah@pidgin.im>
parents:
13597
diff
changeset
|
574 | * debugging stuff known to be GTK+/Glib bugs on Windows */ |
|
c6395449b56a
[gaim-migrate @ 16048]
Daniel Atallah <datallah@pidgin.im>
parents:
13597
diff
changeset
|
575 | #ifdef _WIN32 |
|
c6395449b56a
[gaim-migrate @ 16048]
Daniel Atallah <datallah@pidgin.im>
parents:
13597
diff
changeset
|
576 | g_string_append_printf(str, " <b>GTK+ Runtime:</b> %u.%u.%u<br/>" |
|
c6395449b56a
[gaim-migrate @ 16048]
Daniel Atallah <datallah@pidgin.im>
parents:
13597
diff
changeset
|
577 | " <b>Glib Runtime:</b> %u.%u.%u<br/>", |
|
c6395449b56a
[gaim-migrate @ 16048]
Daniel Atallah <datallah@pidgin.im>
parents:
13597
diff
changeset
|
578 | gtk_major_version, gtk_minor_version, gtk_micro_version, |
|
c6395449b56a
[gaim-migrate @ 16048]
Daniel Atallah <datallah@pidgin.im>
parents:
13597
diff
changeset
|
579 | glib_major_version, glib_minor_version, glib_micro_version); |
|
c6395449b56a
[gaim-migrate @ 16048]
Daniel Atallah <datallah@pidgin.im>
parents:
13597
diff
changeset
|
580 | #endif |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
581 | |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
582 | g_string_append(str, "<br/> <b>Library Support</b><br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
583 | |
|
12511
9d852d6b1136
[gaim-migrate @ 14823]
Richard Laager <rlaager@pidgin.im>
parents:
12504
diff
changeset
|
584 | #ifdef HAVE_CYRUS_SASL |
|
9d852d6b1136
[gaim-migrate @ 14823]
Richard Laager <rlaager@pidgin.im>
parents:
12504
diff
changeset
|
585 | g_string_append_printf(str, " <b>Cyrus SASL:</b> Enabled<br/>"); |
|
9d852d6b1136
[gaim-migrate @ 14823]
Richard Laager <rlaager@pidgin.im>
parents:
12504
diff
changeset
|
586 | #else |
|
9d852d6b1136
[gaim-migrate @ 14823]
Richard Laager <rlaager@pidgin.im>
parents:
12504
diff
changeset
|
587 | g_string_append_printf(str, " <b>Cyrus SASL:</b> Disabled<br/>"); |
|
9d852d6b1136
[gaim-migrate @ 14823]
Richard Laager <rlaager@pidgin.im>
parents:
12504
diff
changeset
|
588 | #endif |
|
9d852d6b1136
[gaim-migrate @ 14823]
Richard Laager <rlaager@pidgin.im>
parents:
12504
diff
changeset
|
589 | |
|
12534
6a460e34aa08
[gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents:
12511
diff
changeset
|
590 | #ifndef _WIN32 |
| 12967 | 591 | #ifdef HAVE_DBUS |
|
15610
fc49b3cc8095
Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents:
15577
diff
changeset
|
592 | g_string_append_printf(str, " <b>D-Bus:</b> Enabled<br/>"); |
| 12967 | 593 | #else |
|
15610
fc49b3cc8095
Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents:
15577
diff
changeset
|
594 | g_string_append_printf(str, " <b>D-Bus:</b> Disabled<br/>"); |
| 12967 | 595 | #endif |
| 596 | ||
|
10835
9bd71d67d4a6
[gaim-migrate @ 12507]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10832
diff
changeset
|
597 | #ifdef HAVE_EVOLUTION_ADDRESSBOOK |
|
9bd71d67d4a6
[gaim-migrate @ 12507]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10832
diff
changeset
|
598 | g_string_append_printf(str, " <b>Evolution Addressbook:</b> Enabled<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
599 | #else |
|
10835
9bd71d67d4a6
[gaim-migrate @ 12507]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10832
diff
changeset
|
600 | g_string_append_printf(str, " <b>Evolution Addressbook:</b> Disabled<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
601 | #endif |
|
12534
6a460e34aa08
[gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents:
12511
diff
changeset
|
602 | #endif |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
603 | |
|
14666
a38d4736ed44
[gaim-migrate @ 17332]
Richard Laager <rlaager@pidgin.im>
parents:
14594
diff
changeset
|
604 | #if defined(_WIN32) || defined(USE_INTERNAL_LIBGADU) |
|
13320
b562b1baf10a
[gaim-migrate @ 15688]
Richard Laager <rlaager@pidgin.im>
parents:
13281
diff
changeset
|
605 | g_string_append(str, " <b>Gadu-Gadu library (libgadu):</b> Internal<br/>"); |
|
b562b1baf10a
[gaim-migrate @ 15688]
Richard Laager <rlaager@pidgin.im>
parents:
13281
diff
changeset
|
606 | #else |
|
14666
a38d4736ed44
[gaim-migrate @ 17332]
Richard Laager <rlaager@pidgin.im>
parents:
14594
diff
changeset
|
607 | #ifdef HAVE_LIBGADU |
|
13320
b562b1baf10a
[gaim-migrate @ 15688]
Richard Laager <rlaager@pidgin.im>
parents:
13281
diff
changeset
|
608 | g_string_append(str, " <b>Gadu-Gadu library (libgadu):</b> Enabled<br/>"); |
|
b562b1baf10a
[gaim-migrate @ 15688]
Richard Laager <rlaager@pidgin.im>
parents:
13281
diff
changeset
|
609 | #else |
|
b562b1baf10a
[gaim-migrate @ 15688]
Richard Laager <rlaager@pidgin.im>
parents:
13281
diff
changeset
|
610 | g_string_append(str, " <b>Gadu-Gadu library (libgadu):</b> Disabled<br/>"); |
|
b562b1baf10a
[gaim-migrate @ 15688]
Richard Laager <rlaager@pidgin.im>
parents:
13281
diff
changeset
|
611 | #endif |
|
14666
a38d4736ed44
[gaim-migrate @ 17332]
Richard Laager <rlaager@pidgin.im>
parents:
14594
diff
changeset
|
612 | #endif |
|
13320
b562b1baf10a
[gaim-migrate @ 15688]
Richard Laager <rlaager@pidgin.im>
parents:
13281
diff
changeset
|
613 | |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
614 | #ifdef USE_GTKSPELL |
|
12067
11fb53722956
[gaim-migrate @ 14362]
Richard Laager <rlaager@pidgin.im>
parents:
12065
diff
changeset
|
615 | g_string_append(str, " <b>GtkSpell:</b> Enabled<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
616 | #else |
|
12067
11fb53722956
[gaim-migrate @ 14362]
Richard Laager <rlaager@pidgin.im>
parents:
12065
diff
changeset
|
617 | g_string_append(str, " <b>GtkSpell:</b> Disabled<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
618 | #endif |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
619 | |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
620 | #ifdef HAVE_GNUTLS |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
621 | g_string_append(str, " <b>GnuTLS:</b> Enabled<br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
622 | #else |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
623 | g_string_append(str, " <b>GnuTLS:</b> Disabled<br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
624 | #endif |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
625 | |
|
12534
6a460e34aa08
[gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents:
12511
diff
changeset
|
626 | #ifndef _WIN32 |
| 13720 | 627 | #ifdef USE_GSTREAMER |
|
13722
93d6c36c3f6f
[gaim-migrate @ 16129]
Richard Laager <rlaager@pidgin.im>
parents:
13720
diff
changeset
|
628 | g_string_append(str, " <b>GStreamer:</b> Enabled<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
629 | #else |
|
13722
93d6c36c3f6f
[gaim-migrate @ 16129]
Richard Laager <rlaager@pidgin.im>
parents:
13720
diff
changeset
|
630 | g_string_append(str, " <b>GStreamer:</b> Disabled<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
631 | #endif |
|
12534
6a460e34aa08
[gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents:
12511
diff
changeset
|
632 | #endif |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
633 | |
|
14887
067f351ad90a
[gaim-migrate @ 17592]
Daniel Atallah <datallah@pidgin.im>
parents:
14881
diff
changeset
|
634 | #ifndef _WIN32 |
|
12122
f030c57a9e62
[gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents:
12120
diff
changeset
|
635 | #ifdef ENABLE_MONO |
|
f030c57a9e62
[gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents:
12120
diff
changeset
|
636 | g_string_append(str, " <b>Mono:</b> Enabled<br/>"); |
|
f030c57a9e62
[gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents:
12120
diff
changeset
|
637 | #else |
|
f030c57a9e62
[gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents:
12120
diff
changeset
|
638 | g_string_append(str, " <b>Mono:</b> Disabled<br/>"); |
|
f030c57a9e62
[gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents:
12120
diff
changeset
|
639 | #endif |
|
14887
067f351ad90a
[gaim-migrate @ 17592]
Daniel Atallah <datallah@pidgin.im>
parents:
14881
diff
changeset
|
640 | #endif |
|
12122
f030c57a9e62
[gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents:
12120
diff
changeset
|
641 | |
|
14887
067f351ad90a
[gaim-migrate @ 17592]
Daniel Atallah <datallah@pidgin.im>
parents:
14881
diff
changeset
|
642 | #ifndef _WIN32 |
|
23060
db9632a9b374
Use pkg-config to detect NetworkManager. Also, fail if it isn't present,
Richard Laager <rlaager@pidgin.im>
parents:
23043
diff
changeset
|
643 | #ifdef HAVE_NETWORKMANAGER |
|
14881
93979c609ae7
[gaim-migrate @ 17586]
Richard Laager <rlaager@pidgin.im>
parents:
14873
diff
changeset
|
644 | g_string_append(str, " <b>NetworkManager:</b> Enabled<br/>"); |
|
93979c609ae7
[gaim-migrate @ 17586]
Richard Laager <rlaager@pidgin.im>
parents:
14873
diff
changeset
|
645 | #else |
|
93979c609ae7
[gaim-migrate @ 17586]
Richard Laager <rlaager@pidgin.im>
parents:
14873
diff
changeset
|
646 | g_string_append(str, " <b>NetworkManager:</b> Disabled<br/>"); |
|
93979c609ae7
[gaim-migrate @ 17586]
Richard Laager <rlaager@pidgin.im>
parents:
14873
diff
changeset
|
647 | #endif |
|
14887
067f351ad90a
[gaim-migrate @ 17592]
Daniel Atallah <datallah@pidgin.im>
parents:
14881
diff
changeset
|
648 | #endif |
|
14881
93979c609ae7
[gaim-migrate @ 17586]
Richard Laager <rlaager@pidgin.im>
parents:
14873
diff
changeset
|
649 | |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
650 | #ifdef HAVE_NSS |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
651 | g_string_append(str, " <b>Network Security Services (NSS):</b> Enabled<br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
652 | #else |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
653 | g_string_append(str, " <b>Network Security Services (NSS):</b> Disabled<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
654 | #endif |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
655 | |
|
20257
e52756e57259
applied changes from d6da6a7a5ad01f170f0fd78424183f73200dc78c
Luke Schierer <lschiere@pidgin.im>
parents:
20160
diff
changeset
|
656 | if (purple_plugins_find_with_id("core-perl") != NULL) |
|
12122
f030c57a9e62
[gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents:
12120
diff
changeset
|
657 | g_string_append(str, " <b>Perl:</b> Enabled<br/>"); |
|
20257
e52756e57259
applied changes from d6da6a7a5ad01f170f0fd78424183f73200dc78c
Luke Schierer <lschiere@pidgin.im>
parents:
20160
diff
changeset
|
658 | else |
|
12122
f030c57a9e62
[gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents:
12120
diff
changeset
|
659 | g_string_append(str, " <b>Perl:</b> Disabled<br/>"); |
|
f030c57a9e62
[gaim-migrate @ 14422]
Richard Laager <rlaager@pidgin.im>
parents:
12120
diff
changeset
|
660 | |
|
20257
e52756e57259
applied changes from d6da6a7a5ad01f170f0fd78424183f73200dc78c
Luke Schierer <lschiere@pidgin.im>
parents:
20160
diff
changeset
|
661 | if (purple_plugins_find_with_id("core-tcl") != NULL) { |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
662 | g_string_append(str, " <b>Tcl:</b> Enabled<br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
663 | #ifdef HAVE_TK |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
664 | g_string_append(str, " <b>Tk:</b> Enabled<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
665 | #else |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
666 | g_string_append(str, " <b>Tk:</b> Disabled<br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
667 | #endif |
|
20257
e52756e57259
applied changes from d6da6a7a5ad01f170f0fd78424183f73200dc78c
Luke Schierer <lschiere@pidgin.im>
parents:
20160
diff
changeset
|
668 | } else { |
|
e52756e57259
applied changes from d6da6a7a5ad01f170f0fd78424183f73200dc78c
Luke Schierer <lschiere@pidgin.im>
parents:
20160
diff
changeset
|
669 | g_string_append(str, " <b>Tcl:</b> Disabled<br/>"); |
|
e52756e57259
applied changes from d6da6a7a5ad01f170f0fd78424183f73200dc78c
Luke Schierer <lschiere@pidgin.im>
parents:
20160
diff
changeset
|
670 | g_string_append(str, " <b>Tk:</b> Disabled<br/>"); |
|
e52756e57259
applied changes from d6da6a7a5ad01f170f0fd78424183f73200dc78c
Luke Schierer <lschiere@pidgin.im>
parents:
20160
diff
changeset
|
671 | } |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
672 | |
|
28621
e9f7747ff365
Note whether IDN support is enabled/disabled in the Help->About dialog.
Paul Aurich <darkrain42@pidgin.im>
parents:
28615
diff
changeset
|
673 | #ifdef USE_IDN |
|
e9f7747ff365
Note whether IDN support is enabled/disabled in the Help->About dialog.
Paul Aurich <darkrain42@pidgin.im>
parents:
28615
diff
changeset
|
674 | g_string_append(str, " <b>UTF-8 DNS (IDN):</b> Enabled<br/>"); |
|
e9f7747ff365
Note whether IDN support is enabled/disabled in the Help->About dialog.
Paul Aurich <darkrain42@pidgin.im>
parents:
28615
diff
changeset
|
675 | #else |
|
e9f7747ff365
Note whether IDN support is enabled/disabled in the Help->About dialog.
Paul Aurich <darkrain42@pidgin.im>
parents:
28615
diff
changeset
|
676 | g_string_append(str, " <b>UTF-8 DNS (IDN):</b> Disabled<br/>"); |
|
e9f7747ff365
Note whether IDN support is enabled/disabled in the Help->About dialog.
Paul Aurich <darkrain42@pidgin.im>
parents:
28615
diff
changeset
|
677 | #endif |
|
e9f7747ff365
Note whether IDN support is enabled/disabled in the Help->About dialog.
Paul Aurich <darkrain42@pidgin.im>
parents:
28615
diff
changeset
|
678 | |
|
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
|
679 | #ifdef USE_VV |
|
c073c1de284e
Added whether voice and video support has been enabled in Pidgin's About dialog.
Michael Ruprecht <maiku@pidgin.im>
parents:
23489
diff
changeset
|
680 | g_string_append(str, " <b>Voice and Video:</b> Enabled<br/>"); |
|
c073c1de284e
Added whether voice and video support has been enabled in Pidgin's About dialog.
Michael Ruprecht <maiku@pidgin.im>
parents:
23489
diff
changeset
|
681 | #else |
|
c073c1de284e
Added whether voice and video support has been enabled in Pidgin's About dialog.
Michael Ruprecht <maiku@pidgin.im>
parents:
23489
diff
changeset
|
682 | g_string_append(str, " <b>Voice and Video:</b> Disabled<br/>"); |
|
c073c1de284e
Added whether voice and video support has been enabled in Pidgin's About dialog.
Michael Ruprecht <maiku@pidgin.im>
parents:
23489
diff
changeset
|
683 | #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
|
684 | |
|
12534
6a460e34aa08
[gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents:
12511
diff
changeset
|
685 | #ifndef _WIN32 |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
686 | #ifdef USE_SM |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
687 | g_string_append(str, " <b>X Session Management:</b> Enabled<br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
688 | #else |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
689 | g_string_append(str, " <b>X Session Management:</b> Disabled<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
690 | #endif |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
691 | |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
692 | #ifdef USE_SCREENSAVER |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
693 | g_string_append(str, " <b>XScreenSaver:</b> Enabled<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
694 | #else |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
695 | g_string_append(str, " <b>XScreenSaver:</b> Disabled<br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
696 | #endif |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
697 | |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
698 | #ifdef LIBZEPHYR_EXT |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
699 | g_string_append(str, " <b>Zephyr library (libzephyr):</b> External<br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
700 | #else |
|
23323
dd2607508839
"Not External" sounds weird to me.
Richard Laager <rlaager@pidgin.im>
parents:
23219
diff
changeset
|
701 | g_string_append(str, " <b>Zephyr library (libzephyr):</b> Internal<br/>"); |
|
10813
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
702 | #endif |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
703 | |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
704 | #ifdef ZEPHYR_USES_KERBEROS |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
705 | g_string_append(str, " <b>Zephyr uses Kerberos:</b> Yes<br/>"); |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
706 | #else |
|
c0d0668ffa8c
[gaim-migrate @ 12466]
Richard Laager <rlaager@pidgin.im>
parents:
10812
diff
changeset
|
707 | g_string_append(str, " <b>Zephyr uses Kerberos:</b> No<br/>"); |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
708 | #endif |
|
12534
6a460e34aa08
[gaim-migrate @ 14847]
Daniel Atallah <datallah@pidgin.im>
parents:
12511
diff
changeset
|
709 | #endif |
|
10411
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
710 | |
|
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
711 | /* End of not to be translated section */ |
|
5fd2ee97b197
[gaim-migrate @ 11660]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10372
diff
changeset
|
712 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
713 | 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
|
714 | 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
|
715 | 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
|
716 | g_free(tmp); |
|
29522
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
717 | } |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
718 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
719 | 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
|
720 | { |
|
424be0764e27
Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29524
diff
changeset
|
721 | 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
|
722 | char *tmp; |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
723 | 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
|
724 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
725 | if (developer_info != NULL) { |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
726 | 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
|
727 | 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
|
728 | } |
|
10153
f4ce50e634d0
[gaim-migrate @ 11231]
Mark Doliner <markdoliner@pidgin.im>
parents:
10131
diff
changeset
|
729 | |
|
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
|
730 | 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
|
731 | |
|
424be0764e27
Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29524
diff
changeset
|
732 | /* 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
|
733 | g_string_append_printf(str, "<FONT SIZE=\"4\"><B>%s:</B></FONT><BR/>", |
|
424be0764e27
Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29524
diff
changeset
|
734 | _("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
|
735 | add_developers(str, 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
|
736 | g_string_append(str, "<BR/>"); |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
737 | |
|
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
|
738 | /* 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
|
739 | g_string_append_printf(str, "<FONT SIZE=\"4\"><B>%s:</B></FONT><BR/>", |
|
424be0764e27
Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29524
diff
changeset
|
740 | _("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
|
741 | add_developers(str, 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
|
742 | g_string_append(str, "<BR/>"); |
|
424be0764e27
Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29524
diff
changeset
|
743 | |
|
424be0764e27
Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29524
diff
changeset
|
744 | /* 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
|
745 | g_string_append_printf(str, "<FONT SIZE=\"4\"><B>%s:</B></FONT><BR/>", |
|
424be0764e27
Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29524
diff
changeset
|
746 | _("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
|
747 | add_developers(str, 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
|
748 | g_string_append(str, "<BR/>"); |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
749 | |
|
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
|
750 | /* 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
|
751 | g_string_append_printf(str, "<FONT SIZE=\"4\"><B>%s:</B></FONT><BR/>", |
|
424be0764e27
Break the developer information out into its own dialog. I also bolded a few
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29524
diff
changeset
|
752 | _("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
|
753 | add_developers(str, retired_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
|
754 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
755 | 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
|
756 | 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
|
757 | 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
|
758 | 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
|
759 | } |
|
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 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
761 | 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
|
762 | { |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
763 | GString *str; |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
764 | char *tmp; |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
765 | static GtkWidget *translator_info = NULL; |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
766 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
767 | if (translator_info != NULL) { |
|
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
768 | 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
|
769 | return; |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
770 | } |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
771 | |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
772 | 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
|
773 | |
|
29522
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
774 | /* Current Translators */ |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
775 | g_string_append_printf(str, "<FONT SIZE=\"4\">%s:</FONT><BR/>", |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
776 | _("Current Translators")); |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
777 | add_translators(str, translators); |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
778 | g_string_append(str, "<BR/>"); |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
779 | |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
780 | /* Past Translators */ |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
781 | g_string_append_printf(str, "<FONT SIZE=\"4\">%s:</FONT><BR/>", |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
782 | _("Past Translators")); |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
783 | add_translators(str, past_translators); |
|
a5595d764a85
Split the "Debugging Information" and translator info into "Build Information"
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28451
diff
changeset
|
784 | |
|
29530
252b84468a95
Reduce some code duplications (71 insertions(+), 217 deletions(-))
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
29529
diff
changeset
|
785 | 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
|
786 | 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
|
787 | 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
|
788 | g_free(tmp); |
| 9709 | 789 | } |
| 790 | ||
|
31945
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
791 | 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
|
792 | { |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
793 | GString *str; |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
794 | GList *l = NULL; |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
795 | PurplePlugin *plugin = NULL; |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
796 | char *title = g_strdup_printf(_("%s Plugin Information"), PIDGIN_NAME); |
|
31989
362ea8163fe0
Björn Voigt pointed out that my plugin info dialog doesn't show the e-mail
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31945
diff
changeset
|
797 | char *pname = NULL, *pauthor = NULL; |
|
362ea8163fe0
Björn Voigt pointed out that my plugin info dialog doesn't show the e-mail
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31945
diff
changeset
|
798 | const char *pver, *pwebsite, *pid; |
|
31945
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
799 | gboolean ploaded, punloadable; |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
800 | 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
|
801 | |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
802 | 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
|
803 | |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
804 | g_string_append_printf(str, "<FONT SIZE=\"4\">%s</FONT><BR/>", |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
805 | _("Plugin Information")); |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
806 | |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
807 | for(l = purple_plugins_get_all(); l; l = l->next) { |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
808 | plugin = (PurplePlugin *)l->data; |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
809 | |
|
31989
362ea8163fe0
Björn Voigt pointed out that my plugin info dialog doesn't show the e-mail
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31945
diff
changeset
|
810 | pname = g_markup_escape_text(purple_plugin_get_name(plugin), -1); |
|
362ea8163fe0
Björn Voigt pointed out that my plugin info dialog doesn't show the e-mail
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31945
diff
changeset
|
811 | pauthor = g_markup_escape_text(purple_plugin_get_author(plugin), -1); |
|
31945
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
812 | pver = purple_plugin_get_version(plugin); |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
813 | pwebsite = purple_plugin_get_homepage(plugin); |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
814 | pid = purple_plugin_get_id(plugin); |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
815 | punloadable = purple_plugin_is_unloadable(plugin); |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
816 | 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
|
817 | |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
818 | g_string_append_printf(str, |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
819 | "<FONT SIZE=\"3\"><B>%s</B></FONT><BR/><FONT SIZE=\"2\">" |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
820 | "\t<B>Author:</B> %s<BR/>\t<B>Version:</B> %s<BR/>" |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
821 | "\t<B>Website:</B> %s<BR/>\t<B>ID String:</B> %s<BR/>" |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
822 | "\t<B>Loadable:</B> %s<BR/>\t<B>Loaded:</B> %s<BR/>" |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
823 | "<BR/></FONT>", pname, pauthor ? pauthor : "(null)", |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
824 | pver, pwebsite, pid, |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
825 | punloadable ? "<FONT COLOR=\"#FF0000\"><B>No</B></FONT>" : "Yes", |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
826 | ploaded ? "Yes" : "No"); |
|
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 | |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
829 | 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
|
830 | 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
|
831 | 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
|
832 | g_free(title); |
|
31989
362ea8163fe0
Björn Voigt pointed out that my plugin info dialog doesn't show the e-mail
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31945
diff
changeset
|
833 | g_free(pname); |
|
362ea8163fe0
Björn Voigt pointed out that my plugin info dialog doesn't show the e-mail
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31945
diff
changeset
|
834 | g_free(pauthor); |
|
31945
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
835 | } |
|
f1d8ab1029c4
Add a plugin information dialog that shows information for all plugins, even
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31889
diff
changeset
|
836 | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
837 | 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
|
838 | pidgin_dialogs_im_cb(gpointer data, PurpleRequestFields *fields) |
| 9709 | 839 | { |
| 15884 | 840 | PurpleAccount *account; |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
841 | const char *username; |
| 9709 | 842 | |
| 15884 | 843 | account = purple_request_fields_get_account(fields, "account"); |
| 844 | username = purple_request_fields_get_string(fields, "screenname"); | |
| 9709 | 845 | |
|
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
|
846 | pidgin_dialogs_im_with_user(account, username); |
| 9709 | 847 | } |
| 848 | ||
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
849 | 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
|
850 | pidgin_dialogs_im(void) |
| 9709 | 851 | { |
| 15884 | 852 | PurpleRequestFields *fields; |
| 853 | PurpleRequestFieldGroup *group; | |
| 854 | PurpleRequestField *field; | |
| 9709 | 855 | |
| 15884 | 856 | fields = purple_request_fields_new(); |
| 9709 | 857 | |
| 15884 | 858 | group = purple_request_field_group_new(NULL); |
| 859 | purple_request_fields_add_group(fields, group); | |
| 9709 | 860 | |
| 15884 | 861 | field = purple_request_field_string_new("screenname", _("_Name"), NULL, FALSE); |
| 862 | purple_request_field_set_type_hint(field, "screenname"); | |
| 863 | purple_request_field_set_required(field, TRUE); | |
| 864 | purple_request_field_group_add_field(group, field); | |
| 9709 | 865 | |
| 15884 | 866 | field = purple_request_field_account_new("account", _("_Account"), NULL); |
| 867 | purple_request_field_set_type_hint(field, "account"); | |
| 868 | purple_request_field_set_visible(field, | |
| 869 | (purple_connections_get_all() != NULL && | |
| 870 | purple_connections_get_all()->next != NULL)); | |
| 871 | purple_request_field_set_required(field, TRUE); | |
| 872 | purple_request_field_group_add_field(group, field); | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
873 | |
| 15884 | 874 | purple_request_fields(purple_get_blist(), _("New Instant Message"), |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
875 | NULL, |
|
22942
2bf494f8e2a4
Change the string "screen name" to "username" everywhere. I think most
Mark Doliner <markdoliner@pidgin.im>
parents:
22722
diff
changeset
|
876 | _("Please enter the username or alias of the person " |
| 10668 | 877 | "you would like to IM."), |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
878 | 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
|
879 | _("OK"), G_CALLBACK(pidgin_dialogs_im_cb), |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
880 | _("Cancel"), 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
|
881 | NULL, NULL, NULL, |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
882 | NULL); |
| 9709 | 883 | } |
| 884 | ||
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
885 | 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
|
886 | pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) |
| 9709 | 887 | { |
| 15884 | 888 | PurpleConversation *conv; |
| 9709 | 889 | |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
890 | g_return_if_fail(account != NULL); |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
891 | g_return_if_fail(username != NULL); |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
892 | |
| 15884 | 893 | conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, username, account); |
| 9709 | 894 | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
895 | if (conv == NULL) |
| 15884 | 896 | conv = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, username); |
|
12295
b81286b6bc54
[gaim-migrate @ 14599]
Luke Schierer <lschiere@pidgin.im>
parents:
12288
diff
changeset
|
897 | |
|
19592
f9a9d682f603
Reattach the gtk-ui to a conversation when the user wants to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19539
diff
changeset
|
898 | pidgin_conv_attach_to_conversation(conv); |
| 15884 | 899 | purple_conversation_present(conv); |
| 9709 | 900 | } |
| 901 | ||
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
902 | 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
|
903 | pidgin_dialogs_ee(const char *ee) |
| 9709 | 904 | { |
| 905 | GtkWidget *window; | |
| 906 | GtkWidget *hbox; | |
| 907 | GtkWidget *label; | |
|
10219
f088cb31ad7e
[gaim-migrate @ 11347]
Mark Doliner <markdoliner@pidgin.im>
parents:
10193
diff
changeset
|
908 | GtkWidget *img; |
| 15884 | 909 | gchar *norm = purple_strreplace(ee, "rocksmyworld", ""); |
| 9709 | 910 | |
| 911 | label = gtk_label_new(NULL); | |
| 912 | if (!strcmp(norm, "zilding")) | |
| 913 | gtk_label_set_markup(GTK_LABEL(label), | |
| 914 | "<span weight=\"bold\" size=\"large\" foreground=\"purple\">Amazing! Simply Amazing!</span>"); | |
| 915 | else if (!strcmp(norm, "robflynn")) | |
| 916 | gtk_label_set_markup(GTK_LABEL(label), | |
| 917 | "<span weight=\"bold\" size=\"large\" foreground=\"#1f6bad\">Pimpin\' Penguin Style! *Waddle Waddle*</span>"); | |
| 918 | else if (!strcmp(norm, "flynorange")) | |
| 919 | gtk_label_set_markup(GTK_LABEL(label), | |
|
10816
ba2657f4c157
[gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents:
10813
diff
changeset
|
920 | "<span weight=\"bold\" size=\"large\" foreground=\"blue\">You should be me. I'm so cute!</span>"); |
| 9709 | 921 | else if (!strcmp(norm, "ewarmenhoven")) |
| 922 | gtk_label_set_markup(GTK_LABEL(label), | |
| 923 | "<span weight=\"bold\" size=\"large\" foreground=\"orange\">Now that's what I like!</span>"); | |
| 924 | else if (!strcmp(norm, "markster97")) | |
| 925 | gtk_label_set_markup(GTK_LABEL(label), | |
| 926 | "<span weight=\"bold\" size=\"large\" foreground=\"brown\">Ahh, and excellent choice!</span>"); | |
| 927 | else if (!strcmp(norm, "seanegn")) | |
| 928 | gtk_label_set_markup(GTK_LABEL(label), | |
| 929 | "<span weight=\"bold\" size=\"large\" foreground=\"#009900\">Everytime you click my name, an angel gets its wings.</span>"); | |
| 930 | else if (!strcmp(norm, "chipx86")) | |
| 931 | gtk_label_set_markup(GTK_LABEL(label), | |
| 932 | "<span weight=\"bold\" size=\"large\" foreground=\"red\">This sunflower seed taste like pizza.</span>"); | |
| 933 | else if (!strcmp(norm, "markdoliner")) | |
| 934 | gtk_label_set_markup(GTK_LABEL(label), | |
|
10816
ba2657f4c157
[gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents:
10813
diff
changeset
|
935 | "<span weight=\"bold\" size=\"large\" foreground=\"#6364B1\">Hey! I was in that tumbleweed!</span>"); |
| 9709 | 936 | else if (!strcmp(norm, "lschiere")) |
| 937 | gtk_label_set_markup(GTK_LABEL(label), | |
| 938 | "<span weight=\"bold\" size=\"large\" foreground=\"gray\">I'm not anything.</span>"); | |
| 939 | g_free(norm); | |
| 940 | ||
| 941 | if (strlen(gtk_label_get_label(GTK_LABEL(label))) <= 0) | |
| 942 | return FALSE; | |
| 943 | ||
| 15882 | 944 | window = gtk_dialog_new_with_buttons(PIDGIN_ALERT_TITLE, NULL, 0, GTK_STOCK_CLOSE, GTK_RESPONSE_OK, NULL); |
| 9709 | 945 | gtk_dialog_set_default_response (GTK_DIALOG(window), GTK_RESPONSE_OK); |
| 946 | g_signal_connect(G_OBJECT(window), "response", G_CALLBACK(gtk_widget_destroy), NULL); | |
| 947 | ||
| 15882 | 948 | gtk_container_set_border_width (GTK_CONTAINER(window), PIDGIN_HIG_BOX_SPACE); |
| 9709 | 949 | gtk_window_set_resizable(GTK_WINDOW(window), FALSE); |
| 950 | gtk_dialog_set_has_separator(GTK_DIALOG(window), FALSE); | |
| 15882 | 951 | gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(window)->vbox), PIDGIN_HIG_BORDER); |
| 952 | gtk_container_set_border_width (GTK_CONTAINER(GTK_DIALOG(window)->vbox), PIDGIN_HIG_BOX_SPACE); | |
| 9709 | 953 | |
| 15882 | 954 | hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_BORDER); |
| 9709 | 955 | gtk_container_add(GTK_CONTAINER(GTK_DIALOG(window)->vbox), hbox); |
| 15497 | 956 | img = gtk_image_new_from_stock(PIDGIN_STOCK_DIALOG_COOL, gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_HUGE)); |
| 9709 | 957 | gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); |
| 958 | ||
| 959 | gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); | |
| 960 | gtk_misc_set_alignment(GTK_MISC(label), 0, 0); | |
| 961 | gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | |
| 962 | ||
| 963 | gtk_widget_show_all(window); | |
| 964 | return TRUE; | |
| 965 | } | |
| 966 | ||
| 967 | 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
|
968 | pidgin_dialogs_info_cb(gpointer data, PurpleRequestFields *fields) |
| 9709 | 969 | { |
| 970 | char *username; | |
| 971 | gboolean found = FALSE; | |
| 15884 | 972 | PurpleAccount *account; |
| 9709 | 973 | |
| 15884 | 974 | account = purple_request_fields_get_account(fields, "account"); |
| 9709 | 975 | |
| 15884 | 976 | username = g_strdup(purple_normalize(account, |
| 977 | purple_request_fields_get_string(fields, "screenname"))); | |
| 9709 | 978 | |
| 15884 | 979 | 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
|
980 | found = pidgin_dialogs_ee(username); |
| 9709 | 981 | |
| 982 | 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
|
983 | pidgin_retrieve_user_info(purple_account_get_connection(account), username); |
| 9709 | 984 | |
| 985 | g_free(username); | |
| 986 | } | |
| 987 | ||
| 988 | 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
|
989 | pidgin_dialogs_info(void) |
| 9709 | 990 | { |
| 15884 | 991 | PurpleRequestFields *fields; |
| 992 | PurpleRequestFieldGroup *group; | |
| 993 | PurpleRequestField *field; | |
| 9709 | 994 | |
| 15884 | 995 | fields = purple_request_fields_new(); |
| 9709 | 996 | |
| 15884 | 997 | group = purple_request_field_group_new(NULL); |
| 998 | purple_request_fields_add_group(fields, group); | |
| 9709 | 999 | |
| 15884 | 1000 | field = purple_request_field_string_new("screenname", _("_Name"), NULL, FALSE); |
| 1001 | purple_request_field_set_type_hint(field, "screenname"); | |
| 1002 | purple_request_field_set_required(field, TRUE); | |
| 1003 | purple_request_field_group_add_field(group, field); | |
| 9709 | 1004 | |
| 15884 | 1005 | field = purple_request_field_account_new("account", _("_Account"), NULL); |
| 1006 | purple_request_field_set_type_hint(field, "account"); | |
| 1007 | purple_request_field_set_visible(field, | |
| 1008 | (purple_connections_get_all() != NULL && | |
| 1009 | purple_connections_get_all()->next != NULL)); | |
| 1010 | purple_request_field_set_required(field, TRUE); | |
| 1011 | purple_request_field_group_add_field(group, field); | |
| 9709 | 1012 | |
| 15884 | 1013 | purple_request_fields(purple_get_blist(), _("Get User Info"), |
| 9709 | 1014 | NULL, |
|
22942
2bf494f8e2a4
Change the string "screen name" to "username" everywhere. I think most
Mark Doliner <markdoliner@pidgin.im>
parents:
22722
diff
changeset
|
1015 | _("Please enter the username or alias of the person " |
| 10668 | 1016 | "whose info you would like to view."), |
| 9709 | 1017 | 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
|
1018 | _("OK"), G_CALLBACK(pidgin_dialogs_info_cb), |
| 9709 | 1019 | _("Cancel"), 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
|
1020 | NULL, NULL, NULL, |
| 9709 | 1021 | NULL); |
| 1022 | } | |
| 1023 | ||
| 1024 | 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
|
1025 | pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields) |
| 9709 | 1026 | { |
| 1027 | char *username; | |
| 15884 | 1028 | PurpleAccount *account; |
|
14403
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1029 | GSList *cur; |
| 9709 | 1030 | |
| 15884 | 1031 | account = purple_request_fields_get_account(fields, "account"); |
| 9709 | 1032 | |
| 15884 | 1033 | username = g_strdup(purple_normalize(account, |
| 1034 | purple_request_fields_get_string(fields, "screenname"))); | |
| 9709 | 1035 | |
|
12232
857f087ec86b
[gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents:
12122
diff
changeset
|
1036 | if (username != NULL && *username != '\0' && account != NULL) |
|
857f087ec86b
[gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents:
12122
diff
changeset
|
1037 | { |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15498
diff
changeset
|
1038 | PidginBuddyList *gtkblist = pidgin_blist_get_default_gtk_blist(); |
|
14403
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1039 | GSList *buddies; |
|
12232
857f087ec86b
[gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents:
12122
diff
changeset
|
1040 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15498
diff
changeset
|
1041 | pidgin_set_cursor(gtkblist->window, GDK_WATCH); |
|
12232
857f087ec86b
[gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents:
12122
diff
changeset
|
1042 | |
| 15884 | 1043 | buddies = purple_find_buddies(account, username); |
|
14403
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1044 | for (cur = buddies; cur != NULL; cur = cur->next) |
|
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1045 | { |
| 15884 | 1046 | PurpleBlistNode *node = cur->data; |
|
14403
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1047 | if ((node != NULL) && ((node->prev != NULL) || (node->next != NULL))) |
|
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1048 | { |
| 15884 | 1049 | pidgin_log_show_contact((PurpleContact *)node->parent); |
|
14403
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1050 | g_slist_free(buddies); |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15498
diff
changeset
|
1051 | pidgin_clear_cursor(gtkblist->window); |
|
14403
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1052 | g_free(username); |
|
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1053 | return; |
|
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1054 | } |
|
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1055 | } |
|
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1056 | g_slist_free(buddies); |
|
7e57df59c1bd
[gaim-migrate @ 17038]
Richard Laager <rlaager@pidgin.im>
parents:
14402
diff
changeset
|
1057 | |
| 15884 | 1058 | pidgin_log_show(PURPLE_LOG_IM, username, account); |
| 9709 | 1059 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15498
diff
changeset
|
1060 | pidgin_clear_cursor(gtkblist->window); |
|
12232
857f087ec86b
[gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents:
12122
diff
changeset
|
1061 | } |
|
857f087ec86b
[gaim-migrate @ 14534]
Richard Laager <rlaager@pidgin.im>
parents:
12122
diff
changeset
|
1062 | |
| 9709 | 1063 | g_free(username); |
| 1064 | } | |
| 1065 | ||
|
9991
a02e6b4e0959
[gaim-migrate @ 10904]
Dave West <kat@users.sourceforge.net>
parents:
9976
diff
changeset
|
1066 | /* |
|
a02e6b4e0959
[gaim-migrate @ 10904]
Dave West <kat@users.sourceforge.net>
parents:
9976
diff
changeset
|
1067 | * 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
|
1068 | */ |
| 9709 | 1069 | 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_log(void) |
| 9709 | 1071 | { |
| 15884 | 1072 | PurpleRequestFields *fields; |
| 1073 | PurpleRequestFieldGroup *group; | |
| 1074 | PurpleRequestField *field; | |
| 9709 | 1075 | |
| 15884 | 1076 | fields = purple_request_fields_new(); |
| 9709 | 1077 | |
| 15884 | 1078 | group = purple_request_field_group_new(NULL); |
| 1079 | purple_request_fields_add_group(fields, group); | |
| 9709 | 1080 | |
| 15884 | 1081 | field = purple_request_field_string_new("screenname", _("_Name"), NULL, FALSE); |
| 1082 | purple_request_field_set_type_hint(field, "screenname-all"); | |
| 1083 | purple_request_field_set_required(field, TRUE); | |
| 1084 | purple_request_field_group_add_field(group, field); | |
| 9709 | 1085 | |
| 15884 | 1086 | field = purple_request_field_account_new("account", _("_Account"), NULL); |
|
13824
3e29de65083a
[gaim-migrate @ 16257]
Brian Chu <roast@users.sourceforge.net>
parents:
13816
diff
changeset
|
1087 | |
| 15884 | 1088 | /* 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
|
1089 | * 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
|
1090 | * 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
|
1091 | * account, not the first connected account. */ |
| 15884 | 1092 | if (purple_accounts_get_all() != NULL) { |
| 1093 | purple_request_field_account_set_default_value(field, purple_accounts_get_all()->data); | |
| 1094 | 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
|
1095 | } |
|
3e29de65083a
[gaim-migrate @ 16257]
Brian Chu <roast@users.sourceforge.net>
parents:
13816
diff
changeset
|
1096 | |
| 15884 | 1097 | purple_request_field_set_type_hint(field, "account"); |
| 1098 | purple_request_field_account_set_show_all(field, TRUE); | |
| 1099 | purple_request_field_set_visible(field, | |
| 1100 | (purple_accounts_get_all() != NULL && | |
| 1101 | purple_accounts_get_all()->next != NULL)); | |
| 1102 | purple_request_field_set_required(field, TRUE); | |
| 1103 | purple_request_field_group_add_field(group, field); | |
| 9709 | 1104 | |
| 15884 | 1105 | purple_request_fields(purple_get_blist(), _("View User Log"), |
| 9709 | 1106 | NULL, |
|
22942
2bf494f8e2a4
Change the string "screen name" to "username" everywhere. I think most
Mark Doliner <markdoliner@pidgin.im>
parents:
22722
diff
changeset
|
1107 | _("Please enter the username or alias of the person " |
| 10668 | 1108 | "whose log you would like to view."), |
| 9709 | 1109 | 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
|
1110 | _("OK"), G_CALLBACK(pidgin_dialogs_log_cb), |
| 9709 | 1111 | _("Cancel"), 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
|
1112 | NULL, NULL, NULL, |
| 9709 | 1113 | NULL); |
| 1114 | } | |
| 1115 | ||
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1116 | 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
|
1117 | 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
|
1118 | { |
| 15884 | 1119 | purple_blist_alias_buddy(buddy, new_alias); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1120 | serv_alias_buddy(buddy); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1121 | } |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1122 | |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1123 | 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
|
1124 | pidgin_dialogs_alias_buddy(PurpleBuddy *buddy) |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1125 | { |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1126 | gchar *secondary; |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1127 | |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1128 | g_return_if_fail(buddy != NULL); |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1129 | |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1130 | secondary = g_strdup_printf(_("Enter an alias for %s."), buddy->name); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1131 | |
| 15884 | 1132 | purple_request_input(NULL, _("Alias Buddy"), NULL, |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1133 | secondary, buddy->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
|
1134 | _("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
|
1135 | _("Cancel"), NULL, |
|
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
|
1136 | purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, |
|
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
|
1137 | buddy); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1138 | |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1139 | g_free(secondary); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1140 | } |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1141 | |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1142 | 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
|
1143 | pidgin_dialogs_alias_chat_cb(PurpleChat *chat, const char *new_alias) |
| 9709 | 1144 | { |
| 15884 | 1145 | purple_blist_alias_chat(chat, new_alias); |
| 9709 | 1146 | } |
| 1147 | ||
| 1148 | 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
|
1149 | pidgin_dialogs_alias_chat(PurpleChat *chat) |
| 9709 | 1150 | { |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1151 | g_return_if_fail(chat != NULL); |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1152 | |
| 15884 | 1153 | purple_request_input(NULL, _("Alias Chat"), NULL, |
| 9709 | 1154 | _("Enter an alias for this chat."), |
| 1155 | chat->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
|
1156 | _("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
|
1157 | _("Cancel"), NULL, |
|
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
|
1158 | chat->account, NULL, NULL, |
|
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
|
1159 | chat); |
| 9709 | 1160 | } |
| 1161 | ||
| 1162 | 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
|
1163 | pidgin_dialogs_remove_contact_cb(PurpleContact *contact) |
| 9709 | 1164 | { |
| 15884 | 1165 | PurpleBlistNode *bnode, *cnode; |
| 1166 | PurpleGroup *group; | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1167 | |
| 15884 | 1168 | cnode = (PurpleBlistNode *)contact; |
| 1169 | group = (PurpleGroup*)cnode->parent; | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1170 | for (bnode = cnode->child; bnode; bnode = bnode->next) { |
| 15884 | 1171 | PurpleBuddy *buddy = (PurpleBuddy*)bnode; |
| 1172 | if (purple_account_is_connected(buddy->account)) | |
| 1173 | purple_account_remove_buddy(buddy->account, buddy, group); | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1174 | } |
| 15884 | 1175 | purple_blist_remove_contact(contact); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1176 | } |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1177 | |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1178 | 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
|
1179 | pidgin_dialogs_remove_contact(PurpleContact *contact) |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1180 | { |
| 15884 | 1181 | PurpleBuddy *buddy = purple_contact_get_priority_buddy(contact); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1182 | |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1183 | g_return_if_fail(contact != NULL); |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1184 | g_return_if_fail(buddy != NULL); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1185 | |
|
24976
029a4828431c
Another one the cast fixer breaks.
Richard Laager <rlaager@pidgin.im>
parents:
24569
diff
changeset
|
1186 | 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
|
1187 | 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
|
1188 | pidgin_dialogs_remove_buddy(buddy); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1189 | } else { |
|
10324
3278c5d77bd8
[gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents:
10297
diff
changeset
|
1190 | gchar *text; |
|
3278c5d77bd8
[gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents:
10297
diff
changeset
|
1191 | text = g_strdup_printf( |
|
3278c5d77bd8
[gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents:
10297
diff
changeset
|
1192 | ngettext( |
|
3278c5d77bd8
[gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents:
10297
diff
changeset
|
1193 | "You are about to remove the contact containing %s " |
|
10816
ba2657f4c157
[gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents:
10813
diff
changeset
|
1194 | "and %d other buddy from your buddy list. Do you " |
|
10324
3278c5d77bd8
[gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents:
10297
diff
changeset
|
1195 | "want to continue?", |
|
3278c5d77bd8
[gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents:
10297
diff
changeset
|
1196 | "You are about to remove the contact containing %s " |
|
10816
ba2657f4c157
[gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents:
10813
diff
changeset
|
1197 | "and %d other buddies from your buddy list. Do you " |
|
10324
3278c5d77bd8
[gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents:
10297
diff
changeset
|
1198 | "want to continue?", contact->totalsize - 1), |
|
3278c5d77bd8
[gaim-migrate @ 11531]
Mark Doliner <markdoliner@pidgin.im>
parents:
10297
diff
changeset
|
1199 | buddy->name, contact->totalsize - 1); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1200 | |
|
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
|
1201 | purple_request_action(contact, NULL, _("Remove Contact"), text, 0, |
|
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
|
1202 | NULL, purple_contact_get_alias(contact), NULL, |
|
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
|
1203 | 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
|
1204 | _("_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
|
1205 | _("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
|
1206 | NULL); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1207 | |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1208 | g_free(text); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1209 | } |
| 9709 | 1210 | } |
| 1211 | ||
| 15882 | 1212 | static void free_ggmo(struct _PidginGroupMergeObject *ggp) |
|
14530
c0cfb1c41d3f
[gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14527
diff
changeset
|
1213 | { |
|
c0cfb1c41d3f
[gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14527
diff
changeset
|
1214 | g_free(ggp->new_name); |
|
c0cfb1c41d3f
[gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14527
diff
changeset
|
1215 | g_free(ggp); |
|
c0cfb1c41d3f
[gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14527
diff
changeset
|
1216 | } |
|
c0cfb1c41d3f
[gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14527
diff
changeset
|
1217 | |
|
14527
134a695b4fa0
[gaim-migrate @ 17179]
Mark Doliner <markdoliner@pidgin.im>
parents:
14526
diff
changeset
|
1218 | 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
|
1219 | pidgin_dialogs_merge_groups_cb(struct _PidginGroupMergeObject *GGP) |
|
14526
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1220 | { |
| 15884 | 1221 | purple_blist_rename_group(GGP->parent, GGP->new_name); |
|
14530
c0cfb1c41d3f
[gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14527
diff
changeset
|
1222 | free_ggmo(GGP); |
|
14526
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1223 | } |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1224 | |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1225 | 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
|
1226 | 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
|
1227 | { |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1228 | gchar *text; |
| 15882 | 1229 | struct _PidginGroupMergeObject *ggp; |
|
14526
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1230 | |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1231 | g_return_if_fail(source != NULL); |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1232 | g_return_if_fail(new_name != NULL); |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1233 | |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1234 | text = g_strdup_printf( |
|
14530
c0cfb1c41d3f
[gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14527
diff
changeset
|
1235 | _("You are about to merge the group called %s into the group " |
|
c0cfb1c41d3f
[gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14527
diff
changeset
|
1236 | "called %s. Do you want to continue?"), source->name, new_name); |
|
14526
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1237 | |
| 15882 | 1238 | ggp = g_new(struct _PidginGroupMergeObject, 1); |
|
14526
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1239 | ggp->parent = source; |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1240 | ggp->new_name = g_strdup(new_name); |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
25869
diff
changeset
|
1241 | |
|
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
|
1242 | purple_request_action(source, NULL, _("Merge Groups"), text, 0, |
|
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
|
1243 | NULL, NULL, NULL, |
|
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
|
1244 | 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
|
1245 | _("_Merge Groups"), G_CALLBACK(pidgin_dialogs_merge_groups_cb), |
|
14530
c0cfb1c41d3f
[gaim-migrate @ 17184]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14527
diff
changeset
|
1246 | _("Cancel"), G_CALLBACK(free_ggmo)); |
|
14526
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1247 | |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1248 | g_free(text); |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1249 | } |
|
272b75278ff1
[gaim-migrate @ 17178]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
14498
diff
changeset
|
1250 | |
|
12406
89863d2d9b8d
[gaim-migrate @ 14713]
Richard Laager <rlaager@pidgin.im>
parents:
12374
diff
changeset
|
1251 | 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
|
1252 | pidgin_dialogs_remove_group_cb(PurpleGroup *group) |
| 9709 | 1253 | { |
| 15884 | 1254 | PurpleBlistNode *cnode, *bnode; |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1255 | |
| 15884 | 1256 | cnode = ((PurpleBlistNode*)group)->child; |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1257 | |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1258 | while (cnode) { |
| 15884 | 1259 | if (PURPLE_BLIST_NODE_IS_CONTACT(cnode)) { |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1260 | bnode = cnode->child; |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1261 | cnode = cnode->next; |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1262 | while (bnode) { |
| 15884 | 1263 | PurpleBuddy *buddy; |
| 1264 | if (PURPLE_BLIST_NODE_IS_BUDDY(bnode)) { | |
| 1265 | buddy = (PurpleBuddy*)bnode; | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1266 | bnode = bnode->next; |
| 15884 | 1267 | if (purple_account_is_connected(buddy->account)) { |
| 1268 | purple_account_remove_buddy(buddy->account, buddy, group); | |
| 1269 | purple_blist_remove_buddy(buddy); | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1270 | } |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1271 | } else { |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1272 | bnode = bnode->next; |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1273 | } |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1274 | } |
| 15884 | 1275 | } else if (PURPLE_BLIST_NODE_IS_CHAT(cnode)) { |
| 1276 | PurpleChat *chat = (PurpleChat *)cnode; | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1277 | cnode = cnode->next; |
| 15884 | 1278 | if (purple_account_is_connected(chat->account)) |
| 1279 | purple_blist_remove_chat(chat); | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1280 | } else { |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1281 | cnode = cnode->next; |
|
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 | |
| 15884 | 1285 | purple_blist_remove_group(group); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1286 | } |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1287 | |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1288 | 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
|
1289 | pidgin_dialogs_remove_group(PurpleGroup *group) |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1290 | { |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1291 | gchar *text; |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1292 | |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1293 | g_return_if_fail(group != NULL); |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1294 | |
|
10816
ba2657f4c157
[gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents:
10813
diff
changeset
|
1295 | 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?"), |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1296 | group->name); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1297 | |
|
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
|
1298 | purple_request_action(group, NULL, _("Remove Group"), text, 0, |
|
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
|
1299 | NULL, NULL, NULL, |
|
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
|
1300 | 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
|
1301 | _("_Remove Group"), G_CALLBACK(pidgin_dialogs_remove_group_cb), |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1302 | _("Cancel"), NULL); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1303 | |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1304 | g_free(text); |
| 9709 | 1305 | } |
| 1306 | ||
|
10246
aa5bff72f94c
[gaim-migrate @ 11386]
Mark Doliner <markdoliner@pidgin.im>
parents:
10222
diff
changeset
|
1307 | /* XXX - Some of this should be moved into the core, methinks. */ |
| 9709 | 1308 | 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
|
1309 | pidgin_dialogs_remove_buddy_cb(PurpleBuddy *buddy) |
| 9709 | 1310 | { |
| 15884 | 1311 | PurpleGroup *group; |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1312 | gchar *name; |
| 15884 | 1313 | PurpleAccount *account; |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1314 | |
| 15884 | 1315 | group = purple_buddy_get_group(buddy); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1316 | name = g_strdup(buddy->name); /* b->name is a crasher after remove_buddy */ |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1317 | account = buddy->account; |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1318 | |
| 15884 | 1319 | purple_debug_info("blist", "Removing '%s' from buddy list.\n", buddy->name); |
| 1320 | /* 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
|
1321 | purple_account_remove_buddy(account, buddy, group); |
| 15884 | 1322 | purple_blist_remove_buddy(buddy); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1323 | |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1324 | g_free(name); |
| 9709 | 1325 | } |
| 1326 | ||
| 1327 | 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
|
1328 | pidgin_dialogs_remove_buddy(PurpleBuddy *buddy) |
| 9709 | 1329 | { |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1330 | gchar *text; |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1331 | |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1332 | g_return_if_fail(buddy != NULL); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1333 | |
|
10816
ba2657f4c157
[gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents:
10813
diff
changeset
|
1334 | text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1335 | buddy->name); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1336 | |
|
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
|
1337 | purple_request_action(buddy, NULL, _("Remove Buddy"), text, 0, |
|
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
|
1338 | purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, |
|
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
|
1339 | buddy, 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
|
1340 | _("_Remove Buddy"), G_CALLBACK(pidgin_dialogs_remove_buddy_cb), |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1341 | _("Cancel"), NULL); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1342 | |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1343 | g_free(text); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1344 | } |
| 9709 | 1345 | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1346 | 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
|
1347 | pidgin_dialogs_remove_chat_cb(PurpleChat *chat) |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1348 | { |
| 15884 | 1349 | purple_blist_remove_chat(chat); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1350 | } |
| 9709 | 1351 | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1352 | 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
|
1353 | pidgin_dialogs_remove_chat(PurpleChat *chat) |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1354 | { |
|
10877
4c7371150f56
[gaim-migrate @ 12569]
Daniel Atallah <datallah@pidgin.im>
parents:
10874
diff
changeset
|
1355 | const gchar *name; |
|
4c7371150f56
[gaim-migrate @ 12569]
Daniel Atallah <datallah@pidgin.im>
parents:
10874
diff
changeset
|
1356 | gchar *text; |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1357 | |
|
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
1358 | g_return_if_fail(chat != NULL); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1359 | |
| 15884 | 1360 | name = purple_chat_get_name(chat); |
|
10877
4c7371150f56
[gaim-migrate @ 12569]
Daniel Atallah <datallah@pidgin.im>
parents:
10874
diff
changeset
|
1361 | 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
|
1362 | name ? name : ""); |
|
4c7371150f56
[gaim-migrate @ 12569]
Daniel Atallah <datallah@pidgin.im>
parents:
10874
diff
changeset
|
1363 | |
|
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
|
1364 | purple_request_action(chat, NULL, _("Remove Chat"), text, 0, |
|
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
|
1365 | chat->account, NULL, NULL, |
|
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
|
1366 | chat, 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
|
1367 | _("_Remove Chat"), G_CALLBACK(pidgin_dialogs_remove_chat_cb), |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1368 | _("Cancel"), NULL); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1369 | |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
1370 | g_free(text); |
| 9709 | 1371 | } |