annotate src/gtkdialogs.c @ 13734:760528340ee3

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