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