Mercurial > pidgin
view src/about.c @ 7837:d20f729d3f18
[gaim-migrate @ 8490]
i think this fixes the tooltip crashes
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 12 Dec 2003 04:09:15 +0000 |
parents | f118d4b71a00 |
children | 9d4753944c9f |
line wrap: on
line source
/* * gaim * * Copyright (C) 1998-1999, Mark Spencer <markster@marko.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #include "internal.h" #include "gtkimhtml.h" #include "gtkutils.h" #include "stock.h" #include "ui.h" /* XXX For WEBSITE */ #include "gaim.h" static GtkWidget *about = NULL; static void destroy_about() { if (about) gtk_widget_destroy(about); about = NULL; } void show_about(GtkWidget *w, void *data) { GtkWidget *vbox; GtkWidget *frame; GtkWidget *fbox; GtkWidget *hbox; GtkWidget *button; GtkWidget *text; GtkWidget *sw; GtkWidget *logo; char abouttitle[45]; char *str; if (!about) { GAIM_DIALOG(about); gtk_window_set_default_size(GTK_WINDOW(about), 450, -1); g_snprintf(abouttitle, sizeof(abouttitle), _("About Gaim v%s"), VERSION); gtk_window_set_title(GTK_WINDOW(about), abouttitle); gtk_window_set_role(GTK_WINDOW(about), "about"); gtk_window_set_resizable(GTK_WINDOW(about), TRUE); gtk_widget_realize(about); vbox = gtk_vbox_new(FALSE, 5); gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); gtk_container_add(GTK_CONTAINER(about), vbox); frame = gtk_frame_new("Gaim v" VERSION); gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); fbox = gtk_vbox_new(FALSE, 5); gtk_container_set_border_width(GTK_CONTAINER(fbox), 5); gtk_container_add(GTK_CONTAINER(frame), fbox); logo = gtk_image_new_from_stock(GAIM_STOCK_LOGO, gtk_icon_size_from_name(GAIM_ICON_SIZE_LOGO)); gtk_box_pack_start(GTK_BOX(fbox), logo, FALSE, FALSE, 0); sw = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), GTK_SHADOW_IN); gtk_box_pack_start(GTK_BOX(fbox), sw, TRUE, TRUE, 0); text = gtk_imhtml_new(NULL, NULL); gtk_container_add(GTK_CONTAINER(sw), text); gtk_widget_set_size_request(sw, -1, 350); gaim_setup_imhtml(text); gtk_imhtml_append_text(GTK_IMHTML(text), _("Gaim is a modular Instant Messaging client capable of " "using AIM, ICQ, Yahoo!, MSN, IRC, Jabber, Napster, " "Zephyr, and Gadu-Gadu all at once. It is written using " "Gtk+ and is licensed under the GPL.<BR><BR>"), GTK_IMHTML_NO_SCROLL); gtk_imhtml_append_text(GTK_IMHTML(text), "<FONT SIZE=\"3\">URL:</FONT> <A HREF=\"" GAIM_WEBSITE "\">" GAIM_WEBSITE "</A><BR><BR>", GTK_IMHTML_NO_SCROLL); gtk_imhtml_append_text(GTK_IMHTML(text), _("<FONT SIZE=\"3\">IRC:</FONT> #gaim on irc.freenode.net" "<BR><BR>"), GTK_IMHTML_NO_SCROLL); /* Active Developers */ str = g_strconcat( "<FONT SIZE=\"3\">", _("Active Developers"), ":</FONT><BR>" " Rob Flynn (", _("maintainer"), ") " "<<A HREF=\"mailto:rob@marko.net\">rob@marko.net</A>><BR>" " Sean Egan (", _("lead developer"), ") " "<<A HREF=\"mailto:sean.egan@binghamton.edu\">" "bj91704@binghamton.edu</A>><BR>" " Christian 'ChipX86' Hammond (", _("developer & webmaster"), ")<BR>" " Herman Bloggs (", _("win32 port"), ") " "<<A HREF=\"mailto:hermanator12002@yahoo.com\">" "hermanator12002@yahoo.com</A>><BR>" " Nathan 'faceprint' Walp (", _("developer"), ")<BR>" " Mark 'KingAnt' Doliner (", _("developer"), ")<BR>" " Ethan 'Paco-Paco' Blanton (", _("developer"), ")<br>" " Luke 'LSchiere' Schierer (", _("support"), ")<BR>" "<BR>", NULL); gtk_imhtml_append_text(GTK_IMHTML(text), str, GTK_IMHTML_NO_SCROLL); g_free(str); /* Crazy Patch Writers */ str = g_strconcat( "<FONT SIZE=\"3\">", _("Crazy Patch Writers"), ":</FONT><BR>" " Benjamin Miller<BR>" " Decklin Foster<BR>" " Etan 'deryni' Reisner<BR>" " Robert 'Robot101' McQueen<BR>" " Tim 'marv' Ringenbach<br>" " Kevin 'SimGuy' Stange<br>" " Stu 'nosnilmot' Tomlinson<br>" "<BR>", NULL); gtk_imhtml_append_text(GTK_IMHTML(text), str, GTK_IMHTML_NO_SCROLL); g_free(str); /* Just because */ str = g_strconcat( "<FONT SIZE=\"3\">", "Just Because", ":</FONT><BR>" " Rachel Shelton (Vampire & Dark Lord)<br>" "<BR>", NULL); gtk_imhtml_append_text(GTK_IMHTML(text), str, GTK_IMHTML_NO_SCROLL); g_free(str); /* Retired Developers */ str = g_strconcat( "<FONT SIZE=\"3\">", _("Retired Developers"), ":</FONT><BR>" " Adam Fritzler (", _("former libfaim maintainer"), ")<BR>" " Eric Warmenhoven (", _("former lead developer"), ") " "<<A HREF=\"mailto:warmenhoven@yahoo.com\">" "warmenhoven@yahoo.com</A>><BR>" " Jim Duchek (", _("former maintainer"), ")<BR>" " Jim Seymour (", _("former Jabber developer"), ")<BR>" " Mark Spencer (", _("original author"), ") " "<<A HREF=\"mailto:markster@marko.net\">" "markster@marko.net</A>><BR>" " Syd Logan (", _("hacker and designated driver [lazy bum]"), ")<BR>" "<BR>", NULL); gtk_imhtml_append_text(GTK_IMHTML(text), str, GTK_IMHTML_NO_SCROLL); g_free(str); /* Current Translators */ str = g_strconcat( "<FONT SIZE=\"3\">", _("Current Translators"), ":</FONT><BR>" " <b>", _("Catalan"), " (ca)</b> - Robert Millan <<a href=\"mailto: zeratul2@wanadoo.es\">zeratul2@wanadoo.es</a>><br>" " <b>", _("Czech"), " (cs)</b> - Miloslav Trmac <<a href=\"mailto: mitr@volny.cz\">mitr@volny.cz</a>><br>" " <b>", _("Danish"), " (da)</b> - Morten Brix Pedersen <<a href=\"mailto: morten@wtf.dk\">morten@wtf.dk</a>><br>" " <b>", _("Esperanto"), "(eo)</b> - Anthony Ehrhardt <<a href=\"pastorant@minister.com\">pastorant@minister.com</a>><br>" " <b>", _("German"), " (de)</b> - Björn Voigt <<a href=\"mailto: bjoern@cs.tu-berlin.de\">bjoern@cs.tu-berlin.de</a>><br>" " <b>", _("Spanish"), " (es)</b> - Javier Fernández-Sanguino Peña <<a href=\"mailto: jfs@debian.org\">jfs@debian.org</a>><br>" " <b>", _("Finnish"), " (fi)</b> - Arto Alakulju <<a href=\"mailto: arto@alakulju.net\">arto@alakulju.net</a>><br>" " <b>", _("French"), " (fr)</b> - Éric Boumaour <<a href=\"mailto: zongo_fr@users.sourceforge.net\">zongo_fr@users.sourceforge.net</a>><br>" " <b>", _("Hindi"), " (hi)</b> - Ravishankar Shrivastava <<a href=\"mailto: raviratlami@yahoo.com\">raviratlami@yahoo.com</a>><br>" " <b>", _("Hungarian"), " (hu)</b> - Zoltan Sutto <<a href=\"mailto: suttozoltan@chello.hu\">suttozoltan@chello.hu</a>><br>" " <b>", _("Italian"), " (it)</b> - Claudio Satriano <<a href=\"mailto: satriano@na.infn.it\">satriano@na.infn.it</a>><br>" " <b>", _("Korean"), " (ko)</b> - Kyung-uk Son <<a href=\"mailto: vvs740@chol.com\">vvs740@chol.com</a>><br>" " <b>", _("Dutch; Flemish"), " (nl)</b> - Vincent van Adrighem <<a href=\"mailto: V.vanAdrighem@dirck.mine.nu\">V.vanAdrighem@dirck.mine.nu</a>><br>" " <b>", _("Norwegian"), " (no)</b> - Petter Johan Olsen<br>" " <b>", _("Polish"), " (pl)</b> - Krzysztof <<a href=\"krzysztof@foltman.com\">krzysztof@foltman.com</a>>, Emil <<a href=\"emil5@go2.pl\">emil5@go2.pl</a>><br>" " <b>", _("Portuguese"), " (pt)</b> - Duarte Henriques <<a href=\"mailto:duarte_henriques@myrealbox.com\">duarte_henriques@myrealbox.com</a>><br>" " <b>", _("Portuguese-Brazil"), " (pt_BR)</b> - Maurício de Lemos Rodrigues Collares Neto <<a href=\"mailto: mauricioc@myrealbox.com\">mauricioc@myrealbox.com</a>><br>" " <b>", _("Romanian"), " (ro)</b> - Mişu Moldovan <<a href=\"mailto: dumol@go.ro\">dumol@go.ro</a>><br>" " <b>", _("Russian"), "(ru)</b> = Alexandre Prokoudine <<a href=\"mailto: avp@altlinux.ru\">avp@altlinux.ru</a>><br>" " <b>", _("Serbian"), " (sr)</b> - Danilo Šegan <<a href=\"mailto: dsegan@gmx.net\">dsegan@gmx.net</a>>, Aleksandar Urosevic <<a href=\"mailto: urke@users.sourceforge.net\">urke@users.sourceforge.net</a>><br>" " <b>", _("Swedish"), " (sv)</b> - Tore Lundqvist <<a href=\"mailto: tlt@mima.x.se\">tlt@mima.x.se</a>><br>" " <b>", _("Vietnamese"), "(vi)</b> - T.M.Thanh, ", _("Gnome Vi Team"), ". <<a href=\"mailto: gnomevi-list@lists.sf.net\">gnomevi-list@lists.sf.net</a>><br>" " <b>", _("Simplified Chinese"), " (zh_CN)</b> - Funda Wang <<a href=\"mailto: fundawang@linux.net.cn\">fundawang@linux.net.cn</a>><br>" " <b>", _("Traditional Chinese"), " (zh_TW)</b> - Ambrose C. Li <<a href=\"mailto: acli@ada.dhs.org\">acli@ada.dhs.org</a>>, Paladin R. Liu <<a href=\"mailto: paladin@ms1.hinet.net\">paladin@ms1.hinet.net</a>><br>" "<BR>", NULL); gtk_imhtml_append_text(GTK_IMHTML(text), str, GTK_IMHTML_NO_SCROLL); g_free(str); /* Past Translators */ str = g_strconcat( "<FONT SIZE=\"3\">", _("Past Translators"), ":</FONT><BR>" " <b>", _("Amharic"), " (am)</b> - Daniel Yacob<br>" " <b>", _("Bulgarian"), " (bg)</b> - Hristo Todorov<br>" " <b>", _("Catalan"), " (ca)</b> - JM Pérez Cáncer<br>" " <b>", _("Czech"), " (cs)</b> - Honza Král<br>" " <b>", _("German"), " (de)</b> - Daniel Seifert, Karsten Weiss<br>" " <b>", _("Spanish"), " (es)</b> - Amaya Rodrigo, Alejandro G Villar, Nicolás Lichtmaier, JM Pérez Cáncer<br>" " <b>", _("Finnish"), " (fi)</b> - Tero Kuusela<br>" " <b>", _("French"), " (fr)</b> - sebfrance, Stéphane Pontier, Stéphane Wirtel, Loïc Jeannin<br>" " <b>", _("Hebrew"), " (he)</b> - Pavel Bibergal<br>" " <b>", _("Italian"), " (it)</b> - Salvatore di Maggio<br>" " <b>", _("Japanese"), " (ja)</b> - Ryosuke Kutsuna, Taku Yasui, Junichi Uekawa<br>" " <b>", _("Korean"), " (ko)</b> - Sang-hyun S, A Ho-seok Lee<br>" " <b>", _("Polish"), " (pl)</b> - Przemysław Sułek<br>" " <b>", _("Russian"), " (ru)</b> - Sergey Volozhanin<br>" " <b>", _("Slovak"), " (sk)</b> - Daniel Režný<br>" " <b>", _("Swedish"), " (sv)</b> - Christian Rose<br>" " <b>", _("Chinese"), " (zh_CN, zh_TW)</b> - Hashao, Rocky S. Lee<br>" "<BR>", NULL); gtk_imhtml_append_text(GTK_IMHTML(text), str, GTK_IMHTML_NO_SCROLL); g_free(str); gtk_adjustment_set_value(gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(sw)), 0); /* Close Button */ hbox = gtk_hbox_new(FALSE, 5); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_widget_show(hbox); button = gaim_pixbuf_button_from_stock(_("Close"), GTK_STOCK_CLOSE, GAIM_BUTTON_HORIZONTAL); gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(destroy_about), G_OBJECT(about)); g_signal_connect(G_OBJECT(about), "destroy", G_CALLBACK(destroy_about), G_OBJECT(about)); /* this makes the sizes not work. */ /* GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); */ /* gtk_widget_grab_default(button); */ } /* Let's give'em something to talk about -- woah woah woah */ gtk_widget_show_all(about); gtk_window_present(GTK_WINDOW(about)); }