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