Mercurial > pidgin
annotate src/gtkdialogs.c @ 12729:d3232d64fafd
[gaim-migrate @ 15073]
This is a better order
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 05 Jan 2006 04:32:25 +0000 |
parents | e4e47871c373 |
children | eda1572c788b |
rev | line source |
---|---|
9709 | 1 /* |
10297
ec140184437b
[gaim-migrate @ 11480]
Luke Schierer <lschiere@pidgin.im>
parents:
10266
diff
changeset
|
2 * @file gtkdialogs.c GTK+ Dialogs |
ec140184437b
[gaim-migrate @ 11480]
Luke Schierer <lschiere@pidgin.im>
parents:
10266
diff
changeset
|
3 * @ingroup gtkui |
ec140184437b
[gaim-migrate @ 11480]
Luke Schierer <lschiere@pidgin.im>
parents:
10266
diff
changeset
|
4 * |
9709 | 5 * gaim |
6 * | |
7 * Gaim is the legal property of its developers, whose names are too numerous | |
8 * to list here. Please refer to the COPYRIGHT file distributed with this | |
9 * source distribution. | |
10 * | |
11 * This program is free software; you can redistribute it and/or modify | |
12 * it under the terms of the GNU General Public License as published by | |
13 * the Free Software Foundation; either version 2 of the License, or | |
14 * (at your option) any later version. | |
15 * | |
16 * This program is distributed in the hope that it will be useful, | |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU General Public License for more details. | |
20 * | |
21 * You should have received a copy of the GNU General Public License | |
22 * along with this program; if not, write to the Free Software | |
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
24 */ | |
9791 | 25 #include "internal.h" |
26 #include "gtkgaim.h" | |
9709 | 27 |
28 #include "debug.h" | |
29 #include "notify.h" | |
30 #include "prpl.h" | |
31 #include "request.h" | |
32 #include "util.h" | |
33 | |
12232
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
34 #include "gtkblist.h" |
9709 | 35 #include "gtkdialogs.h" |
36 #include "gtkimhtml.h" | |
37 #include "gtkimhtmltoolbar.h" | |
38 #include "gtklog.h" | |
39 #include "gtkutils.h" | |
10297
ec140184437b
[gaim-migrate @ 11480]
Luke Schierer <lschiere@pidgin.im>
parents:
10266
diff
changeset
|
40 #include "gtkstock.h" |
9709 | 41 |
9753 | 42 static GList *dialogwindows = NULL; |
9709 | 43 |
9753 | 44 static GtkWidget *about = NULL; |
9709 | 45 |
9758 | 46 struct developer { |
47 char *name; | |
48 char *role; | |
49 char *email; | |
50 }; | |
51 | |
52 struct translator { | |
53 char *language; | |
54 char *abbr; | |
55 char *name; | |
56 char *email; | |
57 }; | |
58 | |
12065
ff985a2d88b9
[gaim-migrate @ 14360]
Richard Laager <rlaager@wiktel.com>
parents:
12062
diff
changeset
|
59 /* Order: Lead Developer, then Alphabetical by Last Name */ |
9758 | 60 static struct developer developers[] = { |
12248 | 61 {"Sean Egan", N_("lead developer"), "sean.egan@gmail.com"}, |
10508
4cc999cc6718
[gaim-migrate @ 11802]
Luke Schierer <lschiere@pidgin.im>
parents:
10493
diff
changeset
|
62 {"Daniel 'datallah' Atallah", N_("developer"), NULL}, |
12065
ff985a2d88b9
[gaim-migrate @ 14360]
Richard Laager <rlaager@wiktel.com>
parents:
12062
diff
changeset
|
63 {"Ethan 'Paco-Paco' Blanton", N_("developer"), NULL}, |
10095
b28f9be379b3
[gaim-migrate @ 11114]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9991
diff
changeset
|
64 {"Herman Bloggs", N_("win32 port"), "herman@bluedigits.com"}, |
9758 | 65 {"Mark 'KingAnt' Doliner", N_("developer"), NULL}, |
12065
ff985a2d88b9
[gaim-migrate @ 14360]
Richard Laager <rlaager@wiktel.com>
parents:
12062
diff
changeset
|
66 {"Christian 'ChipX86' Hammond", N_("developer & webmaster"), NULL}, |
ff985a2d88b9
[gaim-migrate @ 14360]
Richard Laager <rlaager@wiktel.com>
parents:
12062
diff
changeset
|
67 {"Gary 'grim' Kramlich", N_("developer"), NULL}, |
ff985a2d88b9
[gaim-migrate @ 14360]
Richard Laager <rlaager@wiktel.com>
parents:
12062
diff
changeset
|
68 {"Richard 'rlaager' Laager", N_("developer"), NULL}, |
12312
1c8ea8f3b84e
[gaim-migrate @ 14616]
Christopher O'Brien <siege@pidgin.im>
parents:
12295
diff
changeset
|
69 {"Christopher 'siege' O'Brien", N_("developer"), "taliesein@users.sf.net"}, |
10370
acd5b7af0409
[gaim-migrate @ 11590]
Luke Schierer <lschiere@pidgin.im>
parents:
10369
diff
changeset
|
70 {"Etan 'deryni' Reisner", N_("developer"), NULL}, |
9758 | 71 {"Tim 'marv' Ringenbach", N_("developer"), NULL}, |
10369
584c792dd15c
[gaim-migrate @ 11588]
Luke Schierer <lschiere@pidgin.im>
parents:
10324
diff
changeset
|
72 {"Luke 'LSchiere' Schierer", N_("support"), "lschiere@users.sf.net"}, |
10116 | 73 {"Stu 'nosnilmot' Tomlinson", N_("developer"), NULL}, |
12065
ff985a2d88b9
[gaim-migrate @ 14360]
Richard Laager <rlaager@wiktel.com>
parents:
12062
diff
changeset
|
74 {"Nathan 'faceprint' Walp", N_("developer"), NULL}, |
9758 | 75 {NULL, NULL, NULL} |
76 }; | |
77 | |
12065
ff985a2d88b9
[gaim-migrate @ 14360]
Richard Laager <rlaager@wiktel.com>
parents:
12062
diff
changeset
|
78 /* Order: Alphabetical by Last Name */ |
10372
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
79 static struct developer patch_writers[] = { |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
80 {"Ka-Hing 'javabsp' Cheung", NULL, NULL}, |
11612
6135c29a514f
[gaim-migrate @ 13885]
Luke Schierer <lschiere@pidgin.im>
parents:
11581
diff
changeset
|
81 {"Sadrul Habib Chowdhury", NULL, NULL}, |
10372
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
82 {"Felipe 'shx' Contreras", NULL, NULL}, |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
83 {"Decklin Foster", NULL, NULL}, |
11062
97b6fb28e976
[gaim-migrate @ 13019]
Luke Schierer <lschiere@pidgin.im>
parents:
11036
diff
changeset
|
84 {"Peter 'Bleeter' Lawler", NULL, NULL}, |
10372
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
85 {"Robert 'Robot101' McQueen", NULL, NULL}, |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
86 {"Benjamin Miller", NULL, NULL}, |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
87 {"Kevin 'SimGuy' Stange", NULL, NULL}, |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
88 {NULL, NULL, NULL} |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
89 }; |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
90 |
12065
ff985a2d88b9
[gaim-migrate @ 14360]
Richard Laager <rlaager@wiktel.com>
parents:
12062
diff
changeset
|
91 /* Order: Alphabetical by Last Name */ |
9758 | 92 static struct developer retired_developers[] = { |
12406
bc45ab9756b5
[gaim-migrate @ 14713]
Richard Laager <rlaager@wiktel.com>
parents:
12374
diff
changeset
|
93 {"Jim Duchek", N_("maintainer"), "jim@linuxpimps.com"}, |
10615 | 94 {"Rob Flynn", N_("maintainer"), "gaim@robflynn.com"}, |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
95 {"Adam Fritzler", N_("libfaim maintainer"), NULL}, |
12065
ff985a2d88b9
[gaim-migrate @ 14360]
Richard Laager <rlaager@wiktel.com>
parents:
12062
diff
changeset
|
96 {"Syd Logan", N_("hacker and designated driver [lazy bum]"), NULL}, |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
97 {"Jim Seymour", N_("Jabber developer"), NULL}, |
9758 | 98 {"Mark Spencer", N_("original author"), "markster@marko.net"}, |
12065
ff985a2d88b9
[gaim-migrate @ 14360]
Richard Laager <rlaager@wiktel.com>
parents:
12062
diff
changeset
|
99 {"Eric Warmenhoven", N_("lead developer"), "warmenhoven@yahoo.com"}, |
9758 | 100 {NULL, NULL, NULL} |
101 }; | |
102 | |
12065
ff985a2d88b9
[gaim-migrate @ 14360]
Richard Laager <rlaager@wiktel.com>
parents:
12062
diff
changeset
|
103 /* Order: Code, then Alphabetical by Last Name */ |
9758 | 104 static struct translator current_translators[] = { |
10852
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
105 {N_("Bulgarian"), "bg", "Vladimira Girginova", "missing@here.is"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
106 {N_("Bulgarian"), "bg", "Vladimir (Kaladan) Petkov", "vpetkov@i-space.org"}, |
12581
1f3af98a7819
[gaim-migrate @ 14909]
Luke Schierer <lschiere@pidgin.im>
parents:
12534
diff
changeset
|
107 {N_("Bengali"), "bn", "INDRANIL DAS GUPTA", "indradg@l2c2.org"}, |
1f3af98a7819
[gaim-migrate @ 14909]
Luke Schierer <lschiere@pidgin.im>
parents:
12534
diff
changeset
|
108 {N_("Bengali"), "bn", "Samia Nimatullah", "mailsamia2001@yahoo.com"}, |
11868
4b71193448b3
[gaim-migrate @ 14159]
Luke Schierer <lschiere@pidgin.im>
parents:
11863
diff
changeset
|
109 {N_("Bosnian"), "bs", "Lejla Hadzialic", "lejlah@gmail.com"}, |
10852
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
110 {N_("Catalan"), "ca", "Josep Puigdemont", "tradgnome@softcatala.org"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
111 {N_("Czech"), "cs", "Miloslav Trmac", "mitr@volny.cz"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
112 {N_("Danish"), "da", "Morten Brix Pedersen", "morten@wtf.dk"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
113 {N_("German"), "de", "Björn Voigt", "bjoern@cs.tu-berlin.de"}, |
12062
4ccd528ffe6e
[gaim-migrate @ 14357]
Richard Laager <rlaager@wiktel.com>
parents:
12061
diff
changeset
|
114 {N_("Greek"), "el", "Katsaloulis Panayotis", "panayotis@panayotis.com"}, |
11931
62777e2a9f00
[gaim-migrate @ 14222]
Richard Laager <rlaager@wiktel.com>
parents:
11930
diff
changeset
|
115 {N_("Greek"), "el", "Bouklis Panos", "panos@echidna-band.com"}, |
10852
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
116 {N_("Australian English"), "en_AU", "Peter Lawler", "trans@six-by-nine.com.au"}, |
12062
4ccd528ffe6e
[gaim-migrate @ 14357]
Richard Laager <rlaager@wiktel.com>
parents:
12061
diff
changeset
|
117 {N_("Canadian English"), "en_CA", "Adam Weinberger", "adamw@gnome.org"}, |
10852
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
118 {N_("British English"), "en_GB", "Luke Ross", "lukeross@sys3175.co.uk"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
119 {N_("Spanish"), "es", "Javier Fernández-Sanguino Peña", "jfs@debian.org"}, |
12494
0c8a45692e57
[gaim-migrate @ 14806]
Luke Schierer <lschiere@pidgin.im>
parents:
12406
diff
changeset
|
120 {N_("Finnish"), "fi", "Timo Jyrinki", "timo.jyrinki@iki.fi"}, |
10852
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
121 {N_("French"), "fr", "Éric Boumaour", "zongo_fr@users.sourceforge.net"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
122 {N_("Hebrew"), "he", "Pavel Bibergal", "cyberkm203@hotmail.com"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
123 {N_("Hindi"), "hi", "Ravishankar Shrivastava", "raviratlami@yahoo.com"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
124 {N_("Hungarian"), "hu", "Zoltan Sutto", "sutto.zoltan@rutinsoft.hu"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
125 {N_("Italian"), "it", "Claudio Satriano", "satriano@na.infn.it"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
126 {N_("Japanese"), "ja", "Takashi Aihana", "aihana@gnome.gr.jp"}, |
12581
1f3af98a7819
[gaim-migrate @ 14909]
Luke Schierer <lschiere@pidgin.im>
parents:
12534
diff
changeset
|
127 {N_("Georgian"), "ka", "Ubuntu Georgian Translators", "alexander.didebulidze@stusta.mhn.de"}, |
12062
4ccd528ffe6e
[gaim-migrate @ 14357]
Richard Laager <rlaager@wiktel.com>
parents:
12061
diff
changeset
|
128 {N_("Korean"), "ko", "Kyung-uk Son", "vvs740@chol.com"}, |
11874
f3a0cefa8e35
[gaim-migrate @ 14165]
Luke Schierer <lschiere@pidgin.im>
parents:
11868
diff
changeset
|
129 {N_("Kurdish"), "ku", "Erdal Ronahi, Amed Ç. Jiyan", "erdal.ronahi@gmail.com,amedcj@hotmail.com"}, |
12582
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
130 {N_("Lithuanian"), "lt", "Andrius Štikonas", "a.stikonas@gmail.com"}, |
12062
4ccd528ffe6e
[gaim-migrate @ 14357]
Richard Laager <rlaager@wiktel.com>
parents:
12061
diff
changeset
|
131 {N_("Macedonian"), "mk", "Tomislav Markovski", "herrera@users.sf.net"}, |
10852
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
132 {N_("Dutch, Flemish"), "nl", "Vincent van Adrighem", "V.vanAdrighem@dirck.mine.nu"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
133 {N_("Norwegian"), "no", "Petter Johan Olsen", "petter.olsen@cc.uit.no"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
134 {N_("Polish"), "pl", "Emil Nowak", "emil5@go2.pl"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
135 {N_("Polish"), "pl", "Krzysztof Foltman", "krzysztof@foltman.com"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
136 {N_("Portuguese"), "pt", "Duarte Henriques", "duarte_henriques@myrealbox.com"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
137 {N_("Portuguese-Brazil"), "pt_BR", "Maurício de Lemos Rodrigues Collares Neto", "mauricioc@gmail.com"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
138 {N_("Romanian"), "ro", "Mişu Moldovan", "dumol@go.ro"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
139 {N_("Russian"), "ru", "Dmitry Beloglazov", "dmaa@users.sf.net"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
140 {N_("Serbian"), "sr", "Danilo Šegan", "dsegan@gmx.net"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
141 {N_("Serbian"), "sr", "Aleksandar Urosevic", "urke@users.sourceforge.net"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
142 {N_("Slovenian"), "sl", "Matjaz Horvat", "matjaz@owca.info"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
143 {N_("Swedish"), "sv", "Tore Lundqvist", "tlt@mima.x.se"}, |
12374
c57935373cc4
[gaim-migrate @ 14678]
Luke Schierer <lschiere@pidgin.im>
parents:
12321
diff
changeset
|
144 {N_("Tamil"), "ta", "Viveka Nathan K", "vivekanathan@users.sourceforge.net"}, |
11465
448bc3b8eb63
[gaim-migrate @ 13705]
Luke Schierer <lschiere@pidgin.im>
parents:
11338
diff
changeset
|
145 {N_("Telugu"), "te", "Mr. Subbaramaih", "info.gist@cdac.in"}, |
10852
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
146 {N_("Vietnamese"), "vi", N_("T.M.Thanh and the Gnome-Vi Team"), "gnomevi-list@lists.sf.net"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
147 {N_("Simplified Chinese"), "zh_CN", "Funda Wang", "fundawang@linux.net.cn"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
148 {N_("Traditional Chinese"), "zh_TW", "Ambrose C. Li", "acli@ada.dhs.org"}, |
62b5117114d2
[gaim-migrate @ 12526]
Luke Schierer <lschiere@pidgin.im>
parents:
10851
diff
changeset
|
149 {N_("Traditional Chinese"), "zh_TW", "Paladin R. Liu", "paladin@ms1.hinet.net"}, |
9758 | 150 {NULL, NULL, NULL, NULL} |
151 }; | |
152 | |
153 | |
154 static struct translator past_translators[] = { | |
12582
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
155 {N_("Amharic"), "am", "Daniel Yacob", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
156 {N_("Bulgarian"), "bg", "Hristo Todorov", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
157 {N_("Catalan"), "ca", "JM Pérez Cáncer", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
158 {N_("Catalan"), "ca", "Robert Millan", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
159 {N_("Czech"), "cs", "Honza Král", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
160 {N_("German"), "de", "Daniel Seifert, Karsten Weiss", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
161 {N_("Spanish"), "es", "JM Pérez Cáncer", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
162 {N_("Spanish"), "es", "Nicolás Lichtmaier", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
163 {N_("Spanish"), "es", "Amaya Rodrigo", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
164 {N_("Spanish"), "es", "Alejandro G Villar", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
165 {N_("Finnish"), "fi", "Arto Alakulju", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
166 {N_("Finnish"), "fi", "Tero Kuusela", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
167 {N_("French"), "fr", "Sébastien François", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
168 {N_("French"), "fr", "Stéphane Pontier", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
169 {N_("French"), "fr", "Stéphane Wirtel", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
170 {N_("French"), "fr", "Loïc Jeannin", NULL}, |
9758 | 171 {N_("Italian"), "it", "Salvatore di Maggio", NULL}, |
12582
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
172 {N_("Japanese"), "ja", "Ryosuke Kutsuna", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
173 {N_("Japanese"), "ja", "Taku Yasui", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
174 {N_("Japanese"), "ja", "Junichi Uekawa", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
175 {N_("Georgian"), "ka", "Temuri Doghonadze", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
176 {N_("Korean"), "ko", "Sang-hyun S, A Ho-seok Lee", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
177 {N_("Lithuanian"), "lt", "Gediminas Čičinskas", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
178 {N_("Polish"), "pl", "Przemysław Sułek", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
179 {N_("Russian"), "ru", "Alexandre Prokoudine", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
180 {N_("Russian"), "ru", "Sergey Volozhanin", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
181 {N_("Slovak"), "sk", "Daniel Režný", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
182 {N_("Swedish"), "sv", "Christian Rose", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
183 {N_("Simplified Chinese"), "zh_CN", "Hashao, Rocky S. Lee", NULL}, |
f75c0d35e032
[gaim-migrate @ 14910]
Luke Schierer <lschiere@pidgin.im>
parents:
12581
diff
changeset
|
184 {N_("Traditional Chinese"), "zh_TW", "Hashao, Rocky S. Lee", NULL}, |
9758 | 185 {NULL, NULL, NULL, NULL} |
186 }; | |
187 | |
9730 | 188 void |
189 gaim_gtkdialogs_destroy_all() | |
9709 | 190 { |
9753 | 191 while (dialogwindows) { |
192 gtk_widget_destroy(dialogwindows->data); | |
193 dialogwindows = g_list_remove(dialogwindows, dialogwindows->data); | |
194 } | |
195 } | |
196 | |
197 static void destroy_about() | |
198 { | |
199 if (about != NULL) | |
200 gtk_widget_destroy(about); | |
201 about = NULL; | |
202 } | |
203 | |
12321
a1bb603436cd
[gaim-migrate @ 14625]
Richard Laager <rlaager@wiktel.com>
parents:
12312
diff
changeset
|
204 void gaim_gtkdialogs_about() |
9753 | 205 { |
206 GtkWidget *hbox; | |
207 GtkWidget *vbox; | |
208 GtkWidget *logo; | |
10175 | 209 GtkWidget *frame; |
9753 | 210 GtkWidget *text; |
211 GtkWidget *bbox; | |
212 GtkWidget *button; | |
213 GtkTextIter iter; | |
9758 | 214 GString *str; |
215 int i; | |
10266 | 216 AtkObject *obj; |
9753 | 217 |
218 if (about != NULL) { | |
219 gtk_window_present(GTK_WINDOW(about)); | |
220 return; | |
221 } | |
222 | |
223 GAIM_DIALOG(about); | |
224 gtk_window_set_default_size(GTK_WINDOW(about), 450, -1); | |
225 gtk_window_set_title(GTK_WINDOW(about), _("About Gaim")); | |
226 gtk_window_set_role(GTK_WINDOW(about), "about"); | |
227 gtk_window_set_resizable(GTK_WINDOW(about), TRUE); | |
9778 | 228 gtk_window_set_default_size(GTK_WINDOW(about), 340, 550); /* Golden ratio in da hizzy */ |
9753 | 229 |
11243 | 230 hbox = gtk_hbox_new(FALSE, GAIM_HIG_BORDER); |
231 gtk_container_set_border_width(GTK_CONTAINER(hbox), GAIM_HIG_BORDER); | |
9753 | 232 gtk_container_add(GTK_CONTAINER(about), hbox); |
233 | |
11243 | 234 vbox = gtk_vbox_new(FALSE, GAIM_HIG_BORDER); |
9753 | 235 gtk_container_add(GTK_CONTAINER(hbox), vbox); |
236 | |
237 logo = gtk_image_new_from_stock(GAIM_STOCK_LOGO, gtk_icon_size_from_name(GAIM_ICON_SIZE_LOGO)); | |
10266 | 238 obj = gtk_widget_get_accessible(logo); |
239 atk_object_set_description(obj, "Gaim " VERSION); | |
9753 | 240 gtk_box_pack_start(GTK_BOX(vbox), logo, FALSE, FALSE, 0); |
241 | |
10175 | 242 frame = gaim_gtk_create_imhtml(FALSE, &text, NULL); |
10522 | 243 gtk_imhtml_set_format_functions(GTK_IMHTML(text), GTK_IMHTML_ALL ^ GTK_IMHTML_SMILEY); |
10175 | 244 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); |
9753 | 245 |
9758 | 246 str = g_string_sized_new(4096); |
9753 | 247 |
10153 | 248 g_string_append(str, |
9758 | 249 _("Gaim is a modular messaging client capable of using " |
250 "AIM, MSN, Yahoo!, Jabber, ICQ, IRC, SILC, " | |
12504
78e69ba4f596
[gaim-migrate @ 14816]
Christopher O'Brien <siege@pidgin.im>
parents:
12494
diff
changeset
|
251 "Novell GroupWise, Lotus Sametime, Napster, Zephyr, and Gadu-Gadu " |
9758 | 252 "all at once. It is written using " |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
253 "GTK+ and is licensed under the GNU GPL.<BR><BR>")); |
9753 | 254 |
9758 | 255 g_string_append(str, "<FONT SIZE=\"4\">URL:</FONT> <A HREF=\"" |
256 GAIM_WEBSITE "\">" GAIM_WEBSITE "</A><BR/><BR/>"); | |
10493 | 257 #ifdef _WIN32 |
258 g_string_append_printf(str, _("<FONT SIZE=\"4\">IRC:</FONT> " | |
259 "#wingaim on irc.freenode.net<BR><BR>")); | |
260 #else | |
9758 | 261 g_string_append_printf(str, _("<FONT SIZE=\"4\">IRC:</FONT> " |
262 "#gaim on irc.freenode.net<BR><BR>")); | |
10493 | 263 #endif |
9753 | 264 |
12406
bc45ab9756b5
[gaim-migrate @ 14713]
Richard Laager <rlaager@wiktel.com>
parents:
12374
diff
changeset
|
265 /* Current Developers */ |
9758 | 266 g_string_append_printf(str, "<FONT SIZE=\"4\">%s:</FONT><BR/>", |
12406
bc45ab9756b5
[gaim-migrate @ 14713]
Richard Laager <rlaager@wiktel.com>
parents:
12374
diff
changeset
|
267 _("Current Developers")); |
9758 | 268 for (i = 0; developers[i].name != NULL; i++) { |
269 if (developers[i].email != NULL) { | |
10116 | 270 g_string_append_printf(str, " %s (%s) <<a href=\"mailto:%s\">%s</a>><br/>", |
9758 | 271 developers[i].name, _(developers[i].role), |
272 developers[i].email, developers[i].email); | |
273 } else { | |
274 g_string_append_printf(str, " %s (%s)<br/>", | |
275 developers[i].name, _(developers[i].role)); | |
276 } | |
277 } | |
278 g_string_append(str, "<BR/>"); | |
9709 | 279 |
9753 | 280 /* Crazy Patch Writers */ |
9758 | 281 g_string_append_printf(str, "<FONT SIZE=\"4\">%s:</FONT><BR/>", |
282 _("Crazy Patch Writers")); | |
10372
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
283 for (i = 0; patch_writers[i].name != NULL; i++) { |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
284 if (patch_writers[i].email != NULL) { |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
285 g_string_append_printf(str, " %s <<a href=\"mailto:%s\">%s</a>><br/>", |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
286 patch_writers[i].name, |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
287 patch_writers[i].email, patch_writers[i].email); |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
288 } else { |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
289 g_string_append_printf(str, " %s<br/>", |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
290 patch_writers[i].name); |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
291 } |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
292 } |
618a330c0260
[gaim-migrate @ 11595]
Luke Schierer <lschiere@pidgin.im>
parents:
10371
diff
changeset
|
293 g_string_append(str, "<BR/>"); |
9753 | 294 |
295 /* Retired Developers */ | |
9758 | 296 g_string_append_printf(str, "<FONT SIZE=\"4\">%s:</FONT><BR/>", |
297 _("Retired Developers")); | |
298 for (i = 0; retired_developers[i].name != NULL; i++) { | |
299 if (retired_developers[i].email != NULL) { | |
10116 | 300 g_string_append_printf(str, " %s (%s) <<a href=\"mailto:%s\">%s</a>><br/>", |
9758 | 301 retired_developers[i].name, _(retired_developers[i].role), |
302 retired_developers[i].email, retired_developers[i].email); | |
303 } else { | |
304 g_string_append_printf(str, " %s (%s)<br/>", | |
305 retired_developers[i].name, _(retired_developers[i].role)); | |
306 } | |
307 } | |
308 g_string_append(str, "<BR/>"); | |
9753 | 309 |
310 /* Current Translators */ | |
9758 | 311 g_string_append_printf(str, "<FONT SIZE=\"4\">%s:</FONT><BR/>", |
312 _("Current Translators")); | |
313 for (i = 0; current_translators[i].language != NULL; i++) { | |
314 if (current_translators[i].email != NULL) { | |
10116 | 315 g_string_append_printf(str, " <b>%s (%s)</b> - %s <<a href=\"mailto:%s\">%s</a>><br/>", |
9758 | 316 _(current_translators[i].language), |
317 current_translators[i].abbr, | |
318 _(current_translators[i].name), | |
319 current_translators[i].email, | |
320 current_translators[i].email); | |
321 } else { | |
322 g_string_append_printf(str, " <b>%s (%s)</b> - %s<br/>", | |
323 _(current_translators[i].language), | |
324 current_translators[i].abbr, | |
325 _(current_translators[i].name)); | |
326 } | |
327 } | |
328 g_string_append(str, "<BR/>"); | |
9753 | 329 |
330 /* Past Translators */ | |
9758 | 331 g_string_append_printf(str, "<FONT SIZE=\"4\">%s:</FONT><BR/>", |
332 _("Past Translators")); | |
333 for (i = 0; past_translators[i].language != NULL; i++) { | |
334 if (past_translators[i].email != NULL) { | |
10116 | 335 g_string_append_printf(str, " <b>%s (%s)</b> - %s <<a href=\"mailto:%s\">%s</a>><br/>", |
9758 | 336 _(past_translators[i].language), |
337 past_translators[i].abbr, | |
338 _(past_translators[i].name), | |
339 past_translators[i].email, | |
340 past_translators[i].email); | |
341 } else { | |
342 g_string_append_printf(str, " <b>%s (%s)</b> - %s<br/>", | |
343 _(past_translators[i].language), | |
344 past_translators[i].abbr, | |
345 _(past_translators[i].name)); | |
346 } | |
347 } | |
348 g_string_append(str, "<BR/>"); | |
349 | |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
350 g_string_append_printf(str, "<FONT SIZE=\"4\">%s</FONT><br/>", _("Debugging Information")); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
351 |
10411 | 352 /* The following primarly intented for user/developer interaction and thus |
353 ought not be translated */ | |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
354 |
10411 | 355 #ifdef CONFIG_ARGS /* win32 build doesn't use configure */ |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
356 g_string_append(str, " <b>Arguments to <i>./configure</i>:</b> " CONFIG_ARGS "<br/>"); |
10411 | 357 #endif |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
358 |
12534
bed2ca758451
[gaim-migrate @ 14847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12511
diff
changeset
|
359 #ifndef _WIN32 |
10411 | 360 #ifdef DEBUG |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
361 g_string_append(str, " <b>Print debugging messages:</b> Yes<br/>"); |
10411 | 362 #else |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
363 g_string_append(str, " <b>Print debugging messages:</b> No<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
364 #endif |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
365 |
10411 | 366 #ifdef ENABLE_BINRELOC |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
367 g_string_append(str, " <b>Binary relocation:</b> Enabled<br/>"); |
10411 | 368 #else |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
369 g_string_append(str, " <b>Binary relocation:</b> Disabled<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
370 #endif |
12534
bed2ca758451
[gaim-migrate @ 14847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12511
diff
changeset
|
371 #endif |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
372 |
10411 | 373 #ifdef GAIM_PLUGINS |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
374 g_string_append(str, " <b>Plugins:</b> Enabled<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
375 #else |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
376 g_string_append(str, " <b>Plugins:</b> Disabled<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
377 #endif |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
378 |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
379 #ifdef HAVE_SSL |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
380 g_string_append(str, " <b>SSL:</b> Gaim was compiled with SSL support.<br/>"); |
10411 | 381 #else |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
382 g_string_append(str, " <b>SSL:</b> Gaim was <b><i>NOT</i></b> compiled with any SSL support!<br/>"); |
10411 | 383 #endif |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
384 |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
385 |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
386 g_string_append(str, "<br/> <b>Library Support</b><br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
387 |
12511
d0bafd22f056
[gaim-migrate @ 14823]
Richard Laager <rlaager@wiktel.com>
parents:
12504
diff
changeset
|
388 #ifdef HAVE_CYRUS_SASL |
d0bafd22f056
[gaim-migrate @ 14823]
Richard Laager <rlaager@wiktel.com>
parents:
12504
diff
changeset
|
389 g_string_append_printf(str, " <b>Cyrus SASL:</b> Enabled<br/>"); |
d0bafd22f056
[gaim-migrate @ 14823]
Richard Laager <rlaager@wiktel.com>
parents:
12504
diff
changeset
|
390 #else |
d0bafd22f056
[gaim-migrate @ 14823]
Richard Laager <rlaager@wiktel.com>
parents:
12504
diff
changeset
|
391 g_string_append_printf(str, " <b>Cyrus SASL:</b> Disabled<br/>"); |
d0bafd22f056
[gaim-migrate @ 14823]
Richard Laager <rlaager@wiktel.com>
parents:
12504
diff
changeset
|
392 #endif |
d0bafd22f056
[gaim-migrate @ 14823]
Richard Laager <rlaager@wiktel.com>
parents:
12504
diff
changeset
|
393 |
12534
bed2ca758451
[gaim-migrate @ 14847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12511
diff
changeset
|
394 #ifndef _WIN32 |
10835 | 395 #ifdef HAVE_EVOLUTION_ADDRESSBOOK |
396 g_string_append_printf(str, " <b>Evolution Addressbook:</b> Enabled<br/>"); | |
10411 | 397 #else |
10835 | 398 g_string_append_printf(str, " <b>Evolution Addressbook:</b> Disabled<br/>"); |
10411 | 399 #endif |
12534
bed2ca758451
[gaim-migrate @ 14847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12511
diff
changeset
|
400 #endif |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
401 |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
402 #ifdef USE_GTKSPELL |
12067
e859c1663a27
[gaim-migrate @ 14362]
Richard Laager <rlaager@wiktel.com>
parents:
12065
diff
changeset
|
403 g_string_append(str, " <b>GtkSpell:</b> Enabled<br/>"); |
10411 | 404 #else |
12067
e859c1663a27
[gaim-migrate @ 14362]
Richard Laager <rlaager@wiktel.com>
parents:
12065
diff
changeset
|
405 g_string_append(str, " <b>GtkSpell:</b> Disabled<br/>"); |
10411 | 406 #endif |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
407 |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
408 #ifdef HAVE_GNUTLS |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
409 g_string_append(str, " <b>GnuTLS:</b> Enabled<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
410 #else |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
411 g_string_append(str, " <b>GnuTLS:</b> Disabled<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
412 #endif |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
413 |
12534
bed2ca758451
[gaim-migrate @ 14847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12511
diff
changeset
|
414 #ifndef _WIN32 |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
415 #ifdef USE_AO |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
416 g_string_append(str, " <b>libao:</b> Enabled<br/>"); |
10411 | 417 #else |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
418 g_string_append(str, " <b>libao:</b> Disabled<br/>"); |
10411 | 419 #endif |
12534
bed2ca758451
[gaim-migrate @ 14847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12511
diff
changeset
|
420 #endif |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
421 |
12122
9b06c216e362
[gaim-migrate @ 14422]
Richard Laager <rlaager@wiktel.com>
parents:
12120
diff
changeset
|
422 #ifdef ENABLE_MONO |
9b06c216e362
[gaim-migrate @ 14422]
Richard Laager <rlaager@wiktel.com>
parents:
12120
diff
changeset
|
423 g_string_append(str, " <b>Mono:</b> Enabled<br/>"); |
9b06c216e362
[gaim-migrate @ 14422]
Richard Laager <rlaager@wiktel.com>
parents:
12120
diff
changeset
|
424 #else |
9b06c216e362
[gaim-migrate @ 14422]
Richard Laager <rlaager@wiktel.com>
parents:
12120
diff
changeset
|
425 g_string_append(str, " <b>Mono:</b> Disabled<br/>"); |
9b06c216e362
[gaim-migrate @ 14422]
Richard Laager <rlaager@wiktel.com>
parents:
12120
diff
changeset
|
426 #endif |
9b06c216e362
[gaim-migrate @ 14422]
Richard Laager <rlaager@wiktel.com>
parents:
12120
diff
changeset
|
427 |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
428 #ifdef HAVE_NSS |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
429 g_string_append(str, " <b>Network Security Services (NSS):</b> Enabled<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
430 #else |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
431 g_string_append(str, " <b>Network Security Services (NSS):</b> Disabled<br/>"); |
10411 | 432 #endif |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
433 |
12122
9b06c216e362
[gaim-migrate @ 14422]
Richard Laager <rlaager@wiktel.com>
parents:
12120
diff
changeset
|
434 #ifdef HAVE_PERL |
9b06c216e362
[gaim-migrate @ 14422]
Richard Laager <rlaager@wiktel.com>
parents:
12120
diff
changeset
|
435 g_string_append(str, " <b>Perl:</b> Enabled<br/>"); |
9b06c216e362
[gaim-migrate @ 14422]
Richard Laager <rlaager@wiktel.com>
parents:
12120
diff
changeset
|
436 #else |
9b06c216e362
[gaim-migrate @ 14422]
Richard Laager <rlaager@wiktel.com>
parents:
12120
diff
changeset
|
437 g_string_append(str, " <b>Perl:</b> Disabled<br/>"); |
9b06c216e362
[gaim-migrate @ 14422]
Richard Laager <rlaager@wiktel.com>
parents:
12120
diff
changeset
|
438 #endif |
9b06c216e362
[gaim-migrate @ 14422]
Richard Laager <rlaager@wiktel.com>
parents:
12120
diff
changeset
|
439 |
12534
bed2ca758451
[gaim-migrate @ 14847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12511
diff
changeset
|
440 #ifndef _WIN32 |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
441 #ifdef HAVE_STARTUP_NOTIFICATION |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
442 g_string_append(str, " <b>Startup Notification:</b> Enabled<br/>"); |
10411 | 443 #else |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
444 g_string_append(str, " <b>Startup Notification:</b> Disabled<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
445 #endif |
12534
bed2ca758451
[gaim-migrate @ 14847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12511
diff
changeset
|
446 #endif |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
447 |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
448 #ifdef HAVE_TCL |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
449 g_string_append(str, " <b>Tcl:</b> Enabled<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
450 #else |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
451 g_string_append(str, " <b>Tcl:</b> Disabled<br/>"); |
10411 | 452 #endif |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
453 |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
454 #ifdef HAVE_TK |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
455 g_string_append(str, " <b>Tk:</b> Enabled<br/>"); |
10411 | 456 #else |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
457 g_string_append(str, " <b>Tk:</b> Disabled<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
458 #endif |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
459 |
12534
bed2ca758451
[gaim-migrate @ 14847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12511
diff
changeset
|
460 #ifndef _WIN32 |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
461 #ifdef USE_SM |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
462 g_string_append(str, " <b>X Session Management:</b> Enabled<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
463 #else |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
464 g_string_append(str, " <b>X Session Management:</b> Disabled<br/>"); |
10411 | 465 #endif |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
466 |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
467 #ifdef USE_SCREENSAVER |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
468 g_string_append(str, " <b>XScreenSaver:</b> Enabled<br/>"); |
10411 | 469 #else |
10813
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
470 g_string_append(str, " <b>XScreenSaver:</b> Disabled<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
471 #endif |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
472 |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
473 #ifdef LIBZEPHYR_EXT |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
474 g_string_append(str, " <b>Zephyr library (libzephyr):</b> External<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
475 #else |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
476 g_string_append(str, " <b>Zephyr library (libzephyr):</b> Not External<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
477 #endif |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
478 |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
479 #ifdef ZEPHYR_USES_KERBEROS |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
480 g_string_append(str, " <b>Zephyr uses Kerberos:</b> Yes<br/>"); |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
481 #else |
290131d5f626
[gaim-migrate @ 12466]
Luke Schierer <lschiere@pidgin.im>
parents:
10812
diff
changeset
|
482 g_string_append(str, " <b>Zephyr uses Kerberos:</b> No<br/>"); |
10411 | 483 #endif |
12534
bed2ca758451
[gaim-migrate @ 14847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12511
diff
changeset
|
484 #endif |
10411 | 485 |
486 /* End of not to be translated section */ | |
487 | |
9758 | 488 gtk_imhtml_append_text(GTK_IMHTML(text), str->str, GTK_IMHTML_NO_SCROLL); |
489 g_string_free(str, TRUE); | |
9753 | 490 |
491 gtk_text_buffer_get_start_iter(gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)), &iter); | |
492 gtk_text_buffer_place_cursor(gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)), &iter); | |
10153 | 493 |
9753 | 494 /* Close Button */ |
495 bbox = gtk_hbutton_box_new(); | |
496 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); | |
497 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 0); | |
498 | |
499 button = gtk_button_new_from_stock(GTK_STOCK_CLOSE); | |
500 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); | |
501 | |
502 g_signal_connect_swapped(G_OBJECT(button), "clicked", | |
503 G_CALLBACK(destroy_about), G_OBJECT(about)); | |
504 g_signal_connect(G_OBJECT(about), "destroy", | |
505 G_CALLBACK(destroy_about), G_OBJECT(about)); | |
506 | |
507 /* this makes the sizes not work? */ | |
508 GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); | |
509 gtk_widget_grab_default(button); | |
510 | |
511 /* Let's give'em something to talk about -- woah woah woah */ | |
512 gtk_widget_show_all(about); | |
513 gtk_window_present(GTK_WINDOW(about)); | |
9709 | 514 } |
515 | |
9730 | 516 static void |
517 gaim_gtkdialogs_im_cb(gpointer data, GaimRequestFields *fields) | |
9709 | 518 { |
9730 | 519 GaimAccount *account; |
520 const char *username; | |
9709 | 521 |
9730 | 522 account = gaim_request_fields_get_account(fields, "account"); |
523 username = gaim_request_fields_get_string(fields, "screenname"); | |
9709 | 524 |
9730 | 525 gaim_gtkdialogs_im_with_user(account, username); |
9709 | 526 } |
527 | |
9730 | 528 void |
529 gaim_gtkdialogs_im(void) | |
9709 | 530 { |
9730 | 531 GaimRequestFields *fields; |
532 GaimRequestFieldGroup *group; | |
533 GaimRequestField *field; | |
9709 | 534 |
9730 | 535 fields = gaim_request_fields_new(); |
9709 | 536 |
9730 | 537 group = gaim_request_field_group_new(NULL); |
538 gaim_request_fields_add_group(fields, group); | |
9709 | 539 |
10668 | 540 field = gaim_request_field_string_new("screenname", _("_Name"), NULL, FALSE); |
541 gaim_request_field_set_type_hint(field, "screenname"); | |
9730 | 542 gaim_request_field_set_required(field, TRUE); |
543 gaim_request_field_group_add_field(group, field); | |
9709 | 544 |
9730 | 545 field = gaim_request_field_account_new("account", _("_Account"), NULL); |
10791
2ab4b5acc8d1
[gaim-migrate @ 12433]
Luke Schierer <lschiere@pidgin.im>
parents:
10774
diff
changeset
|
546 gaim_request_field_set_type_hint(field, "account"); |
9730 | 547 gaim_request_field_set_visible(field, |
548 (gaim_connections_get_all() != NULL && | |
549 gaim_connections_get_all()->next != NULL)); | |
550 gaim_request_field_set_required(field, TRUE); | |
551 gaim_request_field_group_add_field(group, field); | |
552 | |
553 gaim_request_fields(gaim_get_blist(), _("New Instant Message"), | |
554 NULL, | |
10668 | 555 _("Please enter the screen name or alias of the person " |
556 "you would like to IM."), | |
9730 | 557 fields, |
558 _("OK"), G_CALLBACK(gaim_gtkdialogs_im_cb), | |
559 _("Cancel"), NULL, | |
560 NULL); | |
9709 | 561 } |
562 | |
9730 | 563 void |
564 gaim_gtkdialogs_im_with_user(GaimAccount *account, const char *username) | |
9709 | 565 { |
9730 | 566 GaimConversation *conv; |
9709 | 567 |
9753 | 568 g_return_if_fail(account != NULL); |
569 g_return_if_fail(username != NULL); | |
570 | |
11338 | 571 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, username, account); |
9709 | 572 |
9730 | 573 if (conv == NULL) |
11338 | 574 conv = gaim_conversation_new(GAIM_CONV_TYPE_IM, account, username); |
12295
fc42c0d41482
[gaim-migrate @ 14599]
Luke Schierer <lschiere@pidgin.im>
parents:
12288
diff
changeset
|
575 |
fc42c0d41482
[gaim-migrate @ 14599]
Luke Schierer <lschiere@pidgin.im>
parents:
12288
diff
changeset
|
576 gaim_gtkconv_present_conversation(conv); |
9709 | 577 } |
578 | |
9730 | 579 static gboolean |
580 gaim_gtkdialogs_ee(const char *ee) | |
9709 | 581 { |
582 GtkWidget *window; | |
583 GtkWidget *hbox; | |
584 GtkWidget *label; | |
10219 | 585 GtkWidget *img; |
9709 | 586 gchar *norm = gaim_strreplace(ee, "rocksmyworld", ""); |
587 | |
588 label = gtk_label_new(NULL); | |
589 if (!strcmp(norm, "zilding")) | |
590 gtk_label_set_markup(GTK_LABEL(label), | |
591 "<span weight=\"bold\" size=\"large\" foreground=\"purple\">Amazing! Simply Amazing!</span>"); | |
592 else if (!strcmp(norm, "robflynn")) | |
593 gtk_label_set_markup(GTK_LABEL(label), | |
594 "<span weight=\"bold\" size=\"large\" foreground=\"#1f6bad\">Pimpin\' Penguin Style! *Waddle Waddle*</span>"); | |
595 else if (!strcmp(norm, "flynorange")) | |
596 gtk_label_set_markup(GTK_LABEL(label), | |
10816
c94f40ffcafb
[gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents:
10813
diff
changeset
|
597 "<span weight=\"bold\" size=\"large\" foreground=\"blue\">You should be me. I'm so cute!</span>"); |
9709 | 598 else if (!strcmp(norm, "ewarmenhoven")) |
599 gtk_label_set_markup(GTK_LABEL(label), | |
600 "<span weight=\"bold\" size=\"large\" foreground=\"orange\">Now that's what I like!</span>"); | |
601 else if (!strcmp(norm, "markster97")) | |
602 gtk_label_set_markup(GTK_LABEL(label), | |
603 "<span weight=\"bold\" size=\"large\" foreground=\"brown\">Ahh, and excellent choice!</span>"); | |
604 else if (!strcmp(norm, "seanegn")) | |
605 gtk_label_set_markup(GTK_LABEL(label), | |
606 "<span weight=\"bold\" size=\"large\" foreground=\"#009900\">Everytime you click my name, an angel gets its wings.</span>"); | |
607 else if (!strcmp(norm, "chipx86")) | |
608 gtk_label_set_markup(GTK_LABEL(label), | |
609 "<span weight=\"bold\" size=\"large\" foreground=\"red\">This sunflower seed taste like pizza.</span>"); | |
610 else if (!strcmp(norm, "markdoliner")) | |
611 gtk_label_set_markup(GTK_LABEL(label), | |
10816
c94f40ffcafb
[gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents:
10813
diff
changeset
|
612 "<span weight=\"bold\" size=\"large\" foreground=\"#6364B1\">Hey! I was in that tumbleweed!</span>"); |
9709 | 613 else if (!strcmp(norm, "lschiere")) |
614 gtk_label_set_markup(GTK_LABEL(label), | |
615 "<span weight=\"bold\" size=\"large\" foreground=\"gray\">I'm not anything.</span>"); | |
616 g_free(norm); | |
617 | |
618 if (strlen(gtk_label_get_label(GTK_LABEL(label))) <= 0) | |
619 return FALSE; | |
620 | |
621 window = gtk_dialog_new_with_buttons(GAIM_ALERT_TITLE, NULL, 0, GTK_STOCK_CLOSE, GTK_RESPONSE_OK, NULL); | |
622 gtk_dialog_set_default_response (GTK_DIALOG(window), GTK_RESPONSE_OK); | |
623 g_signal_connect(G_OBJECT(window), "response", G_CALLBACK(gtk_widget_destroy), NULL); | |
624 | |
11243 | 625 gtk_container_set_border_width (GTK_CONTAINER(window), GAIM_HIG_BOX_SPACE); |
9709 | 626 gtk_window_set_resizable(GTK_WINDOW(window), FALSE); |
627 gtk_dialog_set_has_separator(GTK_DIALOG(window), FALSE); | |
11243 | 628 gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(window)->vbox), GAIM_HIG_BORDER); |
629 gtk_container_set_border_width (GTK_CONTAINER(GTK_DIALOG(window)->vbox), GAIM_HIG_BOX_SPACE); | |
9709 | 630 |
11243 | 631 hbox = gtk_hbox_new(FALSE, GAIM_HIG_BORDER); |
9709 | 632 gtk_container_add(GTK_CONTAINER(GTK_DIALOG(window)->vbox), hbox); |
10219 | 633 img = gtk_image_new_from_stock(GAIM_STOCK_DIALOG_COOL, gtk_icon_size_from_name(GAIM_ICON_SIZE_DIALOG_COOL)); |
9709 | 634 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); |
635 | |
636 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); | |
637 gtk_misc_set_alignment(GTK_MISC(label), 0, 0); | |
638 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | |
639 | |
640 gtk_widget_show_all(window); | |
641 return TRUE; | |
642 } | |
643 | |
644 static void | |
9730 | 645 gaim_gtkdialogs_info_cb(gpointer data, GaimRequestFields *fields) |
9709 | 646 { |
647 char *username; | |
648 gboolean found = FALSE; | |
649 GaimAccount *account; | |
650 | |
651 account = gaim_request_fields_get_account(fields, "account"); | |
652 | |
653 username = g_strdup(gaim_normalize(account, | |
654 gaim_request_fields_get_string(fields, "screenname"))); | |
655 | |
656 if (username != NULL && gaim_str_has_suffix(username, "rocksmyworld")) | |
9730 | 657 found = gaim_gtkdialogs_ee(username); |
9709 | 658 |
659 if (!found && username != NULL && *username != '\0' && account != NULL) | |
660 serv_get_info(gaim_account_get_connection(account), username); | |
661 | |
662 g_free(username); | |
663 } | |
664 | |
665 void | |
9714 | 666 gaim_gtkdialogs_info(void) |
9709 | 667 { |
668 GaimRequestFields *fields; | |
669 GaimRequestFieldGroup *group; | |
670 GaimRequestField *field; | |
671 | |
672 fields = gaim_request_fields_new(); | |
673 | |
674 group = gaim_request_field_group_new(NULL); | |
675 gaim_request_fields_add_group(fields, group); | |
676 | |
10668 | 677 field = gaim_request_field_string_new("screenname", _("_Name"), NULL, FALSE); |
9709 | 678 gaim_request_field_set_type_hint(field, "screenname"); |
679 gaim_request_field_set_required(field, TRUE); | |
680 gaim_request_field_group_add_field(group, field); | |
681 | |
682 field = gaim_request_field_account_new("account", _("_Account"), NULL); | |
10791
2ab4b5acc8d1
[gaim-migrate @ 12433]
Luke Schierer <lschiere@pidgin.im>
parents:
10774
diff
changeset
|
683 gaim_request_field_set_type_hint(field, "account"); |
9709 | 684 gaim_request_field_set_visible(field, |
685 (gaim_connections_get_all() != NULL && | |
686 gaim_connections_get_all()->next != NULL)); | |
687 gaim_request_field_set_required(field, TRUE); | |
688 gaim_request_field_group_add_field(group, field); | |
689 | |
690 gaim_request_fields(gaim_get_blist(), _("Get User Info"), | |
691 NULL, | |
10668 | 692 _("Please enter the screen name or alias of the person " |
693 "whose info you would like to view."), | |
9709 | 694 fields, |
9730 | 695 _("OK"), G_CALLBACK(gaim_gtkdialogs_info_cb), |
9709 | 696 _("Cancel"), NULL, |
697 NULL); | |
698 } | |
699 | |
700 static void | |
9730 | 701 gaim_gtkdialogs_log_cb(gpointer data, GaimRequestFields *fields) |
9709 | 702 { |
703 char *username; | |
704 GaimAccount *account; | |
705 | |
706 account = gaim_request_fields_get_account(fields, "account"); | |
707 | |
708 username = g_strdup(gaim_normalize(account, | |
709 gaim_request_fields_get_string(fields, "screenname"))); | |
710 | |
12232
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
711 if (username != NULL && *username != '\0' && account != NULL) |
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
712 { |
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
713 GaimGtkBuddyList *gtkblist = gaim_gtk_blist_get_default_gtk_blist(); |
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
714 GdkCursor *cursor = gdk_cursor_new(GDK_WATCH); |
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
715 |
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
716 gdk_window_set_cursor(gtkblist->window->window, cursor); |
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
717 gdk_cursor_unref(cursor); |
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
718 while (gtk_events_pending()) |
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
719 gtk_main_iteration(); |
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
720 |
9917 | 721 gaim_gtk_log_show(GAIM_LOG_IM, username, account); |
9709 | 722 |
12232
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
723 gdk_window_set_cursor(gtkblist->window->window, NULL); |
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
724 } |
375f1f3817a8
[gaim-migrate @ 14534]
Richard Laager <rlaager@wiktel.com>
parents:
12122
diff
changeset
|
725 |
9709 | 726 g_free(username); |
727 } | |
728 | |
9991 | 729 /* |
730 * TODO - This needs to deal with logs of all types, not just IM logs. | |
731 */ | |
9709 | 732 void |
9714 | 733 gaim_gtkdialogs_log(void) |
9709 | 734 { |
735 GaimRequestFields *fields; | |
736 GaimRequestFieldGroup *group; | |
737 GaimRequestField *field; | |
738 | |
739 fields = gaim_request_fields_new(); | |
740 | |
741 group = gaim_request_field_group_new(NULL); | |
742 gaim_request_fields_add_group(fields, group); | |
743 | |
10668 | 744 field = gaim_request_field_string_new("screenname", _("_Name"), NULL, FALSE); |
11025 | 745 gaim_request_field_set_type_hint(field, "screenname-all"); |
9709 | 746 gaim_request_field_set_required(field, TRUE); |
747 gaim_request_field_group_add_field(group, field); | |
748 | |
749 field = gaim_request_field_account_new("account", _("_Account"), NULL); | |
10791
2ab4b5acc8d1
[gaim-migrate @ 12433]
Luke Schierer <lschiere@pidgin.im>
parents:
10774
diff
changeset
|
750 gaim_request_field_set_type_hint(field, "account"); |
9709 | 751 gaim_request_field_account_set_show_all(field, TRUE); |
752 gaim_request_field_set_visible(field, | |
753 (gaim_accounts_get_all() != NULL && | |
754 gaim_accounts_get_all()->next != NULL)); | |
755 gaim_request_field_set_required(field, TRUE); | |
756 gaim_request_field_group_add_field(group, field); | |
757 | |
11025 | 758 gaim_request_fields(gaim_get_blist(), _("View User Log"), |
9709 | 759 NULL, |
10668 | 760 _("Please enter the screen name or alias of the person " |
761 "whose log you would like to view."), | |
9709 | 762 fields, |
9730 | 763 _("OK"), G_CALLBACK(gaim_gtkdialogs_log_cb), |
9709 | 764 _("Cancel"), NULL, |
765 NULL); | |
766 } | |
767 | |
9730 | 768 static void |
769 gaim_gtkdialogs_alias_contact_cb(GaimContact *contact, const char *new_alias) | |
770 { | |
771 gaim_contact_set_alias(contact, new_alias); | |
772 } | |
773 | |
774 void | |
775 gaim_gtkdialogs_alias_contact(GaimContact *contact) | |
776 { | |
9753 | 777 g_return_if_fail(contact != NULL); |
778 | |
9730 | 779 gaim_request_input(NULL, _("Alias Contact"), NULL, |
780 _("Enter an alias for this contact."), | |
781 contact->alias, FALSE, FALSE, NULL, | |
782 _("Alias"), G_CALLBACK(gaim_gtkdialogs_alias_contact_cb), | |
783 _("Cancel"), NULL, contact); | |
784 } | |
785 | |
786 static void | |
787 gaim_gtkdialogs_alias_buddy_cb(GaimBuddy *buddy, const char *new_alias) | |
788 { | |
789 gaim_blist_alias_buddy(buddy, new_alias); | |
790 serv_alias_buddy(buddy); | |
791 } | |
792 | |
793 void | |
9753 | 794 gaim_gtkdialogs_alias_buddy(GaimBuddy *buddy) |
9730 | 795 { |
9753 | 796 gchar *secondary; |
797 | |
798 g_return_if_fail(buddy != NULL); | |
799 | |
800 secondary = g_strdup_printf(_("Enter an alias for %s."), buddy->name); | |
9730 | 801 |
802 gaim_request_input(NULL, _("Alias Buddy"), NULL, | |
9753 | 803 secondary, buddy->alias, FALSE, FALSE, NULL, |
9730 | 804 _("Alias"), G_CALLBACK(gaim_gtkdialogs_alias_buddy_cb), |
9753 | 805 _("Cancel"), NULL, buddy); |
9730 | 806 |
807 g_free(secondary); | |
808 } | |
809 | |
810 static void | |
811 gaim_gtkdialogs_alias_chat_cb(GaimChat *chat, const char *new_alias) | |
9709 | 812 { |
813 gaim_blist_alias_chat(chat, new_alias); | |
814 } | |
815 | |
816 void | |
9730 | 817 gaim_gtkdialogs_alias_chat(GaimChat *chat) |
9709 | 818 { |
9753 | 819 g_return_if_fail(chat != NULL); |
820 | |
9709 | 821 gaim_request_input(NULL, _("Alias Chat"), NULL, |
822 _("Enter an alias for this chat."), | |
823 chat->alias, FALSE, FALSE, NULL, | |
9730 | 824 _("Alias"), G_CALLBACK(gaim_gtkdialogs_alias_chat_cb), |
9709 | 825 _("Cancel"), NULL, chat); |
826 } | |
827 | |
828 static void | |
9753 | 829 gaim_gtkdialogs_remove_contact_cb(GaimContact *contact) |
9709 | 830 { |
9730 | 831 GaimBlistNode *bnode, *cnode; |
832 GaimGroup *group; | |
833 | |
834 cnode = (GaimBlistNode *)contact; | |
835 group = (GaimGroup*)cnode->parent; | |
836 for (bnode = cnode->child; bnode; bnode = bnode->next) { | |
837 GaimBuddy *buddy = (GaimBuddy*)bnode; | |
838 if (gaim_account_is_connected(buddy->account)) | |
11643 | 839 gaim_account_remove_buddy(buddy->account, buddy, group); |
9730 | 840 } |
841 gaim_blist_remove_contact(contact); | |
842 } | |
843 | |
844 void | |
845 gaim_gtkdialogs_remove_contact(GaimContact *contact) | |
846 { | |
847 GaimBuddy *buddy = gaim_contact_get_priority_buddy(contact); | |
848 | |
9753 | 849 g_return_if_fail(contact != NULL); |
850 g_return_if_fail(buddy != NULL); | |
9730 | 851 |
852 if (((GaimBlistNode*)contact)->child == (GaimBlistNode*)buddy && | |
853 !((GaimBlistNode*)buddy)->next) { | |
854 gaim_gtkdialogs_remove_buddy(buddy); | |
855 } else { | |
10324 | 856 gchar *text; |
857 text = g_strdup_printf( | |
858 ngettext( | |
859 "You are about to remove the contact containing %s " | |
10816
c94f40ffcafb
[gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents:
10813
diff
changeset
|
860 "and %d other buddy from your buddy list. Do you " |
10324 | 861 "want to continue?", |
862 "You are about to remove the contact containing %s " | |
10816
c94f40ffcafb
[gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents:
10813
diff
changeset
|
863 "and %d other buddies from your buddy list. Do you " |
10324 | 864 "want to continue?", contact->totalsize - 1), |
865 buddy->name, contact->totalsize - 1); | |
9730 | 866 |
10222 | 867 gaim_request_action(contact, NULL, _("Remove Contact"), text, 0, contact, 2, |
12603
e4e47871c373
[gaim-migrate @ 14938]
Richard Laager <rlaager@wiktel.com>
parents:
12582
diff
changeset
|
868 _("_Remove Contact"), G_CALLBACK(gaim_gtkdialogs_remove_contact_cb), |
9730 | 869 _("Cancel"), NULL); |
870 | |
871 g_free(text); | |
872 } | |
9709 | 873 } |
874 | |
12406
bc45ab9756b5
[gaim-migrate @ 14713]
Richard Laager <rlaager@wiktel.com>
parents:
12374
diff
changeset
|
875 static void |
9753 | 876 gaim_gtkdialogs_remove_group_cb(GaimGroup *group) |
9709 | 877 { |
9730 | 878 GaimBlistNode *cnode, *bnode; |
879 | |
880 cnode = ((GaimBlistNode*)group)->child; | |
881 | |
882 while (cnode) { | |
883 if (GAIM_BLIST_NODE_IS_CONTACT(cnode)) { | |
884 bnode = cnode->child; | |
885 cnode = cnode->next; | |
886 while (bnode) { | |
887 GaimBuddy *buddy; | |
888 if (GAIM_BLIST_NODE_IS_BUDDY(bnode)) { | |
889 GaimConversation *conv; | |
890 buddy = (GaimBuddy*)bnode; | |
891 bnode = bnode->next; | |
11338 | 892 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, |
10246 | 893 buddy->name, |
894 buddy->account); | |
9730 | 895 if (gaim_account_is_connected(buddy->account)) { |
11643 | 896 gaim_account_remove_buddy(buddy->account, buddy, group); |
9730 | 897 gaim_blist_remove_buddy(buddy); |
898 if (conv) | |
899 gaim_conversation_update(conv, | |
900 GAIM_CONV_UPDATE_REMOVE); | |
901 } | |
902 } else { | |
903 bnode = bnode->next; | |
904 } | |
905 } | |
906 } else if (GAIM_BLIST_NODE_IS_CHAT(cnode)) { | |
907 GaimChat *chat = (GaimChat *)cnode; | |
908 cnode = cnode->next; | |
909 if (gaim_account_is_connected(chat->account)) | |
910 gaim_blist_remove_chat(chat); | |
911 } else { | |
912 cnode = cnode->next; | |
913 } | |
914 } | |
915 | |
916 gaim_blist_remove_group(group); | |
917 } | |
918 | |
919 void | |
920 gaim_gtkdialogs_remove_group(GaimGroup *group) | |
921 { | |
9753 | 922 gchar *text; |
923 | |
924 g_return_if_fail(group != NULL); | |
925 | |
10816
c94f40ffcafb
[gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents:
10813
diff
changeset
|
926 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 | 927 group->name); |
9730 | 928 |
10222 | 929 gaim_request_action(group, NULL, _("Remove Group"), text, 0, group, 2, |
12603
e4e47871c373
[gaim-migrate @ 14938]
Richard Laager <rlaager@wiktel.com>
parents:
12582
diff
changeset
|
930 _("_Remove Group"), G_CALLBACK(gaim_gtkdialogs_remove_group_cb), |
9730 | 931 _("Cancel"), NULL); |
932 | |
933 g_free(text); | |
9709 | 934 } |
935 | |
10246 | 936 /* XXX - Some of this should be moved into the core, methinks. */ |
9709 | 937 static void |
9753 | 938 gaim_gtkdialogs_remove_buddy_cb(GaimBuddy *buddy) |
9709 | 939 { |
9730 | 940 GaimGroup *group; |
941 GaimConversation *conv; | |
942 gchar *name; | |
943 GaimAccount *account; | |
944 | |
12088 | 945 group = gaim_buddy_get_group(buddy); |
9730 | 946 name = g_strdup(buddy->name); /* b->name is a crasher after remove_buddy */ |
947 account = buddy->account; | |
948 | |
9753 | 949 gaim_debug_info("blist", "Removing '%s' from buddy list.\n", buddy->name); |
11643 | 950 /* TODO - Should remove from blist first... then call gaim_account_remove_buddy()? */ |
951 gaim_account_remove_buddy(buddy->account, buddy, group); | |
9730 | 952 gaim_blist_remove_buddy(buddy); |
953 | |
11338 | 954 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, name, account); |
9730 | 955 if (conv != NULL) |
956 gaim_conversation_update(conv, GAIM_CONV_UPDATE_REMOVE); | |
957 | |
958 g_free(name); | |
9709 | 959 } |
960 | |
961 void | |
9730 | 962 gaim_gtkdialogs_remove_buddy(GaimBuddy *buddy) |
9709 | 963 { |
9753 | 964 gchar *text; |
9730 | 965 |
9753 | 966 g_return_if_fail(buddy != NULL); |
9730 | 967 |
10816
c94f40ffcafb
[gaim-migrate @ 12471]
Luke Schierer <lschiere@pidgin.im>
parents:
10813
diff
changeset
|
968 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), |
9753 | 969 buddy->name); |
9730 | 970 |
10222 | 971 gaim_request_action(buddy, NULL, _("Remove Buddy"), text, 0, buddy, 2, |
12603
e4e47871c373
[gaim-migrate @ 14938]
Richard Laager <rlaager@wiktel.com>
parents:
12582
diff
changeset
|
972 _("_Remove Buddy"), G_CALLBACK(gaim_gtkdialogs_remove_buddy_cb), |
9730 | 973 _("Cancel"), NULL); |
974 | |
975 g_free(text); | |
976 } | |
9709 | 977 |
9730 | 978 static void |
9753 | 979 gaim_gtkdialogs_remove_chat_cb(GaimChat *chat) |
9730 | 980 { |
9918 | 981 char *name = NULL; |
10167 | 982 GaimAccount *account; |
9918 | 983 GaimConversation *conv = NULL; |
984 | |
10167 | 985 account = chat->account; |
986 | |
987 if (GAIM_PLUGIN_PROTOCOL_INFO(account->gc->prpl)->get_chat_name != NULL) | |
988 name = GAIM_PLUGIN_PROTOCOL_INFO(account->gc->prpl)->get_chat_name(chat->components); | |
9918 | 989 |
9730 | 990 gaim_blist_remove_chat(chat); |
9918 | 991 |
992 if (name != NULL) { | |
11338 | 993 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_CHAT, name, account); |
9918 | 994 g_free(name); |
995 } | |
996 | |
997 if (conv != NULL) | |
998 gaim_conversation_update(conv, GAIM_CONV_UPDATE_REMOVE); | |
9730 | 999 } |
9709 | 1000 |
9730 | 1001 void |
1002 gaim_gtkdialogs_remove_chat(GaimChat *chat) | |
1003 { | |
10877
99c1fb67b7bb
[gaim-migrate @ 12569]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10874
diff
changeset
|
1004 const gchar *name; |
99c1fb67b7bb
[gaim-migrate @ 12569]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10874
diff
changeset
|
1005 gchar *text; |
9753 | 1006 |
1007 g_return_if_fail(chat != NULL); | |
9730 | 1008 |
10877
99c1fb67b7bb
[gaim-migrate @ 12569]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10874
diff
changeset
|
1009 name = gaim_chat_get_name(chat); |
99c1fb67b7bb
[gaim-migrate @ 12569]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10874
diff
changeset
|
1010 text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), |
99c1fb67b7bb
[gaim-migrate @ 12569]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10874
diff
changeset
|
1011 name ? name : ""); |
99c1fb67b7bb
[gaim-migrate @ 12569]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10874
diff
changeset
|
1012 |
10222 | 1013 gaim_request_action(chat, NULL, _("Remove Chat"), text, 0, chat, 2, |
12603
e4e47871c373
[gaim-migrate @ 14938]
Richard Laager <rlaager@wiktel.com>
parents:
12582
diff
changeset
|
1014 _("_Remove Chat"), G_CALLBACK(gaim_gtkdialogs_remove_chat_cb), |
9730 | 1015 _("Cancel"), NULL); |
1016 | |
1017 g_free(text); | |
9709 | 1018 } |