Mercurial > pidgin.yaz
changeset 2072:e105da353872
[gaim-migrate @ 2082]
I think this is prettier.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Tue, 17 Jul 2001 05:18:23 +0000 |
parents | 0fd338304759 |
children | 306070a69380 |
files | src/about.c |
diffstat | 1 files changed, 14 insertions(+), 53 deletions(-) [+] |
line wrap: on
line diff
--- a/src/about.c Tue Jul 17 04:25:41 2001 +0000 +++ b/src/about.c Tue Jul 17 05:18:23 2001 +0000 @@ -69,7 +69,6 @@ GtkWidget *vbox; GtkWidget *frame; GtkWidget *fbox; - GtkWidget *a_table; GtkWidget *label; GtkWidget *pixmap; GtkStyle *style; @@ -77,6 +76,7 @@ GdkBitmap *bm; GtkWidget *hbox; GtkWidget *button; + GtkWidget *text; char abouttitle[45]; @@ -84,6 +84,8 @@ about = gtk_window_new(GTK_WINDOW_DIALOG); + gtk_widget_set_usize(GTK_WIDGET(about), 450, 450); + g_snprintf(abouttitle, sizeof(abouttitle), _("About GAIM v%s"), VERSION); gtk_window_set_title(GTK_WINDOW(about), abouttitle); gtk_window_set_wmclass(GTK_WINDOW(about), "about", "Gaim"); @@ -99,7 +101,7 @@ frame = gtk_frame_new("Gaim " VERSION); gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); - fbox = gtk_hbox_new(FALSE, 5); + fbox = gtk_vbox_new(FALSE, 5); gtk_container_set_border_width(GTK_CONTAINER(fbox), 5); gtk_container_add(GTK_CONTAINER(frame), fbox); @@ -114,62 +116,21 @@ gtk_box_pack_start(GTK_BOX(fbox), pixmap, FALSE, FALSE, 0); - /* Set up the author table */ - a_table = gtk_table_new(8, 2, TRUE); - gtk_table_set_row_spacings(GTK_TABLE(a_table), 5); - gtk_table_set_col_spacings(GTK_TABLE(a_table), 5); - - label = - gtk_label_new(_ - ("GAIM is a client that supports AOL's Instant Messenger protocol. " - "It is written using Gtk+ and is licensed under the GPL.\n" - "URL: " WEBSITE)); - gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); - gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 2, 0, 2); + label = gtk_label_new(_("GAIM is a client that supports AOL's Instant Messenger protocol. It is written\n" + "using Gtk+ and is licensed under the GPL.\n\n" + "URL: " WEBSITE)); - /* Rob */ - label = gtk_label_new("Rob Flynn (Maintainer)"); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); - gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 2, 3); + gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); - label = gtk_label_new("rob@marko.net"); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); - gtk_table_attach_defaults(GTK_TABLE(a_table), label, 1, 2, 2, 3); - - /* Eric */ - label = gtk_label_new("Eric Warmenhoven"); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); - gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 3, 4); + gtk_box_pack_start(GTK_BOX(fbox), label, TRUE, TRUE, 0); - label = gtk_label_new("warmenhoven@yahoo.com"); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); - gtk_table_attach_defaults(GTK_TABLE(a_table), label, 1, 2, 3, 4); - - /* Bmiller */ - label = gtk_label_new("Benjamin Miller"); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); - gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 4, 5); - - /* Decklin */ - label = gtk_label_new("Decklin Foster"); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); - gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 5, 6); + text = gtk_text_new(NULL, NULL); - /* Jim */ - label = gtk_label_new("Jim Duchek"); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); - gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 6, 7); + gtk_text_insert(GTK_TEXT(text), NULL, NULL, NULL, _("Rob Flynn (maintainer) rob@marko.net\nEric Warmenhoven (lead coder) warmenhoven@yahoo.com\n\nBenjamin Miller\nDecklin Foster\nJim Duchek\nMark Spencer (original author) markster@marko.net"), 199); + + gtk_widget_show(text); - /* Mark */ - label = gtk_label_new("Mark Spencer"); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); - gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 7, 8); - - label = gtk_label_new("markster@marko.net"); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); - gtk_table_attach_defaults(GTK_TABLE(a_table), label, 1, 2, 7, 8); - - gtk_box_pack_start(GTK_BOX(fbox), a_table, TRUE, TRUE, 0); + gtk_box_pack_start(GTK_BOX(fbox), text, TRUE, TRUE, 0); /* Close Button */