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