~vish/ubuntu/maverick/pidgin/bug25979

« back to all changes in this revision

Viewing changes to pidgin/gtkdialogs.c

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-10-09 19:40:26 UTC
  • mfrom: (1.4.1 upstream) (46.1.10 karmic)
  • Revision ID: james.westby@ubuntu.com-20091009194026-wbqqh0bsbz19nx5q
Tags: 1:2.6.2-1ubuntu7
* Don't stick the buddy list window to all desktops as some
  window managers have trouble to properly unstick it (LP: #346840)
  - debian/patches/11_buddy_list_really_show.patch
* Always use default tray icon size on KDE (LP: #209440)
  - debian/patches/62_tray_icon_size_kde.patch
* Use scrollbars in the preferences dialog if the screen height is
  below 700 px instead of 600 px
  - debian/patches/60_1024x600_gtkprefs.c.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
#include "internal.h"
29
29
#include "pidgin.h"
 
30
#include "package_revision.h"
30
31
 
31
32
#include "debug.h"
32
33
#include "notify.h"
73
74
/* Order: Alphabetical by Last Name */
74
75
static const struct developer developers[] = {
75
76
        {"Daniel 'datallah' Atallah",   NULL, NULL},
76
 
        {"John 'rekkanoryo' Bailey",    N_("bug master"), "rekkanoryo@pidgin.im"},
 
77
        {"Paul 'darkrain42' Aurich",    NULL, NULL },
 
78
        {"John 'rekkanoryo' Bailey",    N_("bug master"), NULL},
77
79
        {"Ethan 'Paco-Paco' Blanton",   NULL, NULL},
78
 
        {"Hylke Bons",                  N_("artist"), "h.bons@student.rug.nl"},
 
80
        {"Hylke Bons",                  N_("artist"), "hylkebons@gmail.com"},
79
81
        {"Thomas Butter",                               NULL, NULL},
80
82
        /* feel free to not translate this */
81
83
        {N_("Ka-Hing Cheung"),                  NULL, NULL},
90
92
        {"Bartosz Oler",                NULL, NULL},
91
93
        {"Etan 'deryni' Reisner",       NULL, NULL},
92
94
        {"Tim 'marv' Ringenbach",               NULL, NULL},
 
95
        {"Michael 'Maiku' Ruprecht",    N_("voice and video"), NULL},
93
96
        {"Elliott 'QuLogic' Sales de Andrade",  NULL,   NULL},
94
97
        {"Luke 'LSchiere' Schierer",    N_("support"), "lschiere@users.sf.net"},
95
98
        {"Evan Schoenberg",             NULL, NULL},
101
104
 
102
105
/* Order: Alphabetical by Last Name */
103
106
static const struct developer patch_writers[] = {
104
 
        {"Paul 'darkrain42' Aurich", NULL, NULL },
105
107
        {"Marcus 'malu' Lundblad", NULL, NULL},
106
108
        {"Dennis 'EvilDennisR' Ristuccia",      N_("Senior Contributor/QA"),    NULL},
107
109
        {"Peter 'Fmoo' Ruibal",         NULL,   NULL},
146
148
        {N_("Bulgarian"),           "bg", "Vladimira Girginova", "missing@here.is"},
147
149
        {N_("Bulgarian"),           "bg", "Vladimir (Kaladan) Petkov", "vpetkov@i-space.org"},
148
150
        {N_("Bengali"),             "bn", "Israt Jahan", "israt@ankur.org.bd"},
149
 
        {N_("Bengali"),             "bn", "INDRANIL DAS GUPTA", "indradg@l2c2.org"},
150
151
        {N_("Bengali"),             "bn", "Jamil Ahmed", "jamil@bengalinux.org"},
151
152
        {N_("Bengali"),             "bn", "Samia Nimatullah", "mailsamia2001@yahoo.com"},
152
 
        {N_("Bengali"),             "bn", "Tisa Nafisa", "tisa_nafisa@yahoo.com"},
153
153
        {N_("Bosnian"),             "bs", "Lejla Hadzialic", "lejlah@gmail.com"},
154
154
        {N_("Catalan"),             "ca", "Josep Puigdemont", "josep.puigdemont@gmail.com"},
155
155
        {N_("Valencian-Catalan"),   "ca@valencia", "Toni Hermoso", "toniher@softcatala.org"},
170
170
        {N_("Esperanto"),           "eo", "Stéphane Fillod", "fillods@users.sourceforge.net"},
171
171
        {N_("Spanish"),             "es", "Javier Fernández-Sanguino Peña", "jfs@debian.org"},
172
172
        {N_("Estonian"),            "et", "Ivar Smolin", "okul@linux.ee"},
173
 
        {N_("Euskera(Basque)"),     "eu", "Hizkuntza Politikarako Sailburuordetza", "hizkpol@ej-gv.es"},
174
 
        {N_("Euskera(Basque)"),     "eu", "Iñaki Larrañaga Murgoitio", "dooteo@zundan.com"},
 
173
        {N_("Basque"),              "eu", "Mikel Pascual Aldabaldetreku", "mikel.paskual@gmail.com"},
175
174
        {N_("Persian"),             "fa", "Elnaz Sarbar", "elnaz@farsiweb.info"},
176
175
        {N_("Persian"),             "fa", "Meelad Zakaria", "meelad@farsiweb.info"},
177
176
        {N_("Persian"),             "fa", "Roozbeh Pournader ", "roozbeh@farsiweb.info"},
185
184
        {N_("Hebrew"),              "he", "Shalom Craimer", "scraimer@gmail.com"},
186
185
        {N_("Hindi"),               "hi", "Ravishankar Shrivastava", "raviratlami@yahoo.com"},
187
186
        {N_("Hungarian"),           "hu", "Kelemen Gábor", "kelemeng@gnome.hu"},
 
187
        {N_("Armenian"),            "hy", "David Avsharyan", "avsharyan@gmail.com"},
188
188
        {N_("Indonesian"),          "id", "Rai S. Regawa", "raireg@yahoo.com"},
189
189
        {N_("Italian"),             "it", "Claudio Satriano", "satriano@na.infn.it"},
190
190
        {N_("Japanese"),            "ja", "Takashi Aihana", "aihana@gnome.gr.jp"},
191
191
        {N_("Georgian"),            "ka", N_("Ubuntu Georgian Translators"), "alexander.didebulidze@stusta.mhn.de"},
192
 
        {"Khmer",                   "km", "Khoem Sokhem", "khoemsokhem@khmeros.info"},
 
192
        {N_("Khmer"),               "km", "Khoem Sokhem", "khoemsokhem@khmeros.info"},
193
193
        {N_("Kannada"),             "kn", N_("Kannada Translation team"), "translation@sampada.info"},
194
194
        {N_("Korean"),              "ko", "Sushizang", "sushizang@empal.com"},
195
195
        {N_("Kurdish"),             "ku", "Erdal Ronahi", "erdal.ronahi@gmail.com"},
212
212
        {N_("Portuguese-Brazil"),   "pt_BR", "Rodrigo Luiz Marques Flores", "rodrigomarquesflores@gmail.com"},
213
213
        {N_("Pashto"),              "ps", "Kashif Masood", "masudmails@yahoo.com"},
214
214
        {N_("Romanian"),            "ro", "Mişu Moldovan", "dumol@gnome.ro"},
 
215
        {N_("Romanian"),            "ro", "Andrei Popescu", "andreimpopescu@gmail.com"},
215
216
        {N_("Russian"),             "ru", "Антон Самохвалов", "samant.ua@mail.ru"},
216
217
        {N_("Slovak"),              "sk", "Jozef Káčer", "quickparser@gmail.com"},
217
218
        {N_("Slovak"),              "sk", "loptosko", "loptosko@gmail.com"},
222
223
        {N_("Sinhala"),             "si", "Danishka Navin", "snavin@redhat.com"},
223
224
        {N_("Sinhala"),             "si", "Yajith Ajantha Dayarathna", "yajith@gmail.com"},
224
225
        {N_("Swedish"),             "sv", "Peter Hjalmarsson", "xake@telia.com"},
 
226
        {N_("Swahili"),             "sw", "Paul Msegeya", "msegeya@gmail.com"},
225
227
        {N_("Tamil"),               "ta", "Viveka Nathan K", "vivekanathan@users.sourceforge.net"},
226
228
        {N_("Telugu"),              "te", "Mr. Subbaramaih", "info.gist@cdac.in"},
227
229
        {N_("Thai"),                "th", "Isriya Paireepairit", "markpeak@gmail.com"},
228
230
        {N_("Turkish"),             "tr", "Serdar Soytetir", "tulliana@gmail.com"},
229
231
        {N_("Urdu"),                "ur", "RKVS Raman", "rkvsraman@gmail.com"},
230
232
        {N_("Vietnamese"),          "vi", N_("T.M.Thanh and the Gnome-Vi Team"), "gnomevi-list@lists.sf.net"},
231
 
        {N_("Simplified Chinese"),  "zh_CN", "Funda Wang", "fundawang@linux.net.cn"},
 
233
        {N_("Simplified Chinese"),  "zh_CN", "Aron Xu", "happyaron.xu@gmail.com"},
232
234
        {N_("Hong Kong Chinese"),   "zh_HK", "Abel Cheung", "abelindsay@gmail.com"},
233
235
        {N_("Hong Kong Chinese"),   "zh_HK", "Ambrose C. Li", "acli@ada.dhs.org"},
234
236
        {N_("Hong Kong Chinese"),   "zh_HK", "Paladin R. Liu", "paladin@ms1.hinet.net"},
242
244
        {N_("Amharic"),             "am", "Daniel Yacob", NULL},
243
245
        {N_("Arabic"),              "ar", "Mohamed Magdy", "alnokta@yahoo.com"},
244
246
        {N_("Bulgarian"),           "bg", "Hristo Todorov", NULL},
 
247
        {N_("Bengali"),             "bn", "INDRANIL DAS GUPTA", "indradg@l2c2.org"},
 
248
        {N_("Bengali"),             "bn", "Tisa Nafisa", "tisa_nafisa@yahoo.com"},
245
249
        {N_("Catalan"),             "ca", "JM Pérez Cáncer", NULL},
246
250
        {N_("Catalan"),             "ca", "Robert Millan", NULL},
247
251
        {N_("Czech"),               "cs", "Honza Král", NULL},
251
255
        {N_("Spanish"),             "es", "Nicolás Lichtmaier", NULL},
252
256
        {N_("Spanish"),             "es", "Amaya Rodrigo", NULL},
253
257
        {N_("Spanish"),             "es", "Alejandro G Villar", NULL},
 
258
        {N_("Basque"),              "eu", "Iñaki Larrañaga Murgoitio", "dooteo@zundan.com"},
 
259
        {N_("Basque"),              "eu", "Hizkuntza Politikarako Sailburuordetza", "hizkpol@ej-gv.es"},
254
260
        {N_("Finnish"),             "fi", "Arto Alakulju", NULL},
255
261
        {N_("Finnish"),             "fi", "Tero Kuusela", NULL},
256
262
        {N_("French"),              "fr", "Sébastien François", NULL},
291
297
        {N_("Swedish"),             "sv", "Christian Rose", NULL},
292
298
        {N_("Turkish"),             "tr", "Ahmet Alp BALKAN", NULL},
293
299
        {N_("Simplified Chinese"),  "zh_CN", "Hashao, Rocky S. Lee", NULL},
 
300
        {N_("Simplified Chinese"),  "zh_CN", "Funda Wang", "fundawang@linux.net.cn"},
294
301
        {N_("Traditional Chinese"), "zh_TW", "Hashao, Rocky S. Lee", NULL},
295
302
        {NULL, NULL, NULL, NULL}
296
303
};
351
358
}
352
359
 
353
360
#if 0
354
 
/* This function puts the version number onto the pixmap we use in the 'about' 
 
361
/* This function puts the version number onto the pixmap we use in the 'about'
355
362
 * screen in Pidgin. */
356
363
static void
357
364
pidgin_logo_versionize(GdkPixbuf **original, GtkWidget *widget) {
427
434
#endif
428
435
        gtk_widget_destroy(logo);
429
436
        logo = gtk_image_new_from_pixbuf(pixbuf);
430
 
        gdk_pixbuf_unref(pixbuf);
 
437
        g_object_unref(G_OBJECT(pixbuf));
431
438
        /* Insert the logo */
432
439
        obj = gtk_widget_get_accessible(logo);
433
440
        tmp = g_strconcat(PIDGIN_NAME, " " DISPLAY_VERSION, NULL);
442
449
        str = g_string_sized_new(4096);
443
450
 
444
451
        g_string_append_printf(str,
445
 
                "<CENTER><FONT SIZE=\"4\"><B>%s %s</B></FONT></CENTER><BR>(libpurple %s)<BR><BR>", PIDGIN_NAME, DISPLAY_VERSION, purple_core_get_version());
 
452
                "<CENTER><FONT SIZE=\"4\"><B>%s %s</B></FONT></CENTER><BR>(libpurple %s)<BR>%s<BR><BR>", PIDGIN_NAME, DISPLAY_VERSION, purple_core_get_version(), REVISION);
446
453
 
447
454
        g_string_append_printf(str,
448
455
                _("%s is a graphical modular messaging client based on "
463
470
        g_string_append_printf(str, _("<FONT SIZE=\"4\">FAQ:</FONT> <A HREF=\""
464
471
                                "http://developer.pidgin.im/wiki/FAQ\">"
465
472
                                "http://developer.pidgin.im/wiki/FAQ</A><BR/><BR/>"));
466
 
        g_string_append_printf(str, _("<FONT SIZE=\"4\">Help via e-mail:</FONT>"
467
 
                                " <A HREF=\"mailto:support@pidgin.im\">support@pidgin.im</A>"
468
 
                                "<BR/><BR/>"));
 
473
        g_string_append_printf(str,
 
474
                        _("<font size=\"4\">Help from other Pidgin users:</font> "
 
475
                        "<a href=\"mailto:support@pidgin.im\">support@pidgin.im</a><br/>"
 
476
                        "This is a <b>public</b> mailing list! "
 
477
                        "(<a href=\"http://pidgin.im/pipermail/support/\">archive</a>)<br/>"
 
478
                        "We can't help with 3rd party protocols or plugins!<br/>"
 
479
                        "This list's primary language is <b>English</b>.  You are "
 
480
                        "welcome to post in another language, but the responses may "
 
481
                        "be less helpful.<br/><br/>"));
469
482
        g_string_append_printf(str, _("<FONT SIZE=\"4\">IRC Channel:</FONT> "
470
483
                                "#pidgin on irc.freenode.net<BR><BR>"));
471
484
        g_string_append_printf(str, _("<FONT SIZE=\"4\">XMPP MUC:</FONT> "
494
507
                                                   _("Retired Crazy Patch Writers"));
495
508
        add_developers(str, retired_patch_writers);
496
509
        g_string_append(str, "<BR/>");
497
 
                        
 
510
 
498
511
        /* Current Translators */
499
512
        g_string_append_printf(str, "<FONT SIZE=\"4\">%s:</FONT><BR/>",
500
513
                                                   _("Current Translators"));
644
657
        g_string_append(str, "    <b>Tk:</b> Disabled<br/>");
645
658
}
646
659
 
 
660
#ifdef USE_VV
 
661
        g_string_append(str, "    <b>Voice and Video:</b> Enabled<br/>");
 
662
#else
 
663
        g_string_append(str, "    <b>Voice and Video:</b> Disabled<br/>");
 
664
#endif
 
665
 
647
666
#ifndef _WIN32
648
667
#ifdef USE_SM
649
668
        g_string_append(str, "    <b>X Session Management:</b> Enabled<br/>");
1068
1087
        g_return_if_fail(contact != NULL);
1069
1088
        g_return_if_fail(buddy != NULL);
1070
1089
 
1071
 
        if (((PurpleBlistNode*)contact)->child == (PurpleBlistNode*)buddy &&
1072
 
                        !((PurpleBlistNode*)buddy)->next) {
 
1090
        if (PURPLE_BLIST_NODE(contact)->child == PURPLE_BLIST_NODE(buddy) &&
 
1091
            PURPLE_BLIST_NODE(buddy)->next == NULL) {
1073
1092
                pidgin_dialogs_remove_buddy(buddy);
1074
1093
        } else {
1075
1094
                gchar *text;
1123
1142
        ggp = g_new(struct _PidginGroupMergeObject, 1);
1124
1143
        ggp->parent = source;
1125
1144
        ggp->new_name = g_strdup(new_name);
1126
 
        
 
1145
 
1127
1146
        purple_request_action(source, NULL, _("Merge Groups"), text, 0,
1128
1147
                        NULL, NULL, NULL,
1129
1148
                        ggp, 2,