annotate src/about.c @ 1492:638b57b1801d

[gaim-migrate @ 1502] bah. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 17 Feb 2001 00:08:45 +0000
parents 3456fd563e75
children 8c1861a8daa1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
1 /*
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
2 * gaim
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
3 *
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
4 * Copyright (C) 1998-1999, Mark Spencer <markster@marko.net>
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
5 *
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
6 * This program is free software; you can redistribute it and/or modify
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
9 * (at your option) any later version.
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
10 *
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
11 * This program is distributed in the hope that it will be useful,
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
14 * GNU General Public License for more details.
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
15 *
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
17 * along with this program; if not, write to the Free Software
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
19 *
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
20 */
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
21
349
b402a23f35df [gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 338
diff changeset
22 #ifdef HAVE_CONFIG_H
b402a23f35df [gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 338
diff changeset
23 #include "../config.h"
b402a23f35df [gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 338
diff changeset
24 #endif
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
25 #include <string.h>
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
26 #include <stdio.h>
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
27 #include <stdlib.h>
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
28 #include <time.h>
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
29
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
30 #include <gtk/gtk.h>
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
31 #include "gaim.h"
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
32 #include "pixmaps/logo.xpm"
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
33 #include "pixmaps/cancel.xpm"
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
34 #include "pixmaps/about_small.xpm"
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
35
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
36 static GtkWidget *about = NULL;
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
37
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
38 static void destroy_about()
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
39 {
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
40 if (about)
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
41 gtk_widget_destroy(about);
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
42 about = NULL;
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
43 }
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
44
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
45
546
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
46 static void version_exit()
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
47 {
1117
f3e0f41beddb [gaim-migrate @ 1127]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1009
diff changeset
48 gtk_main_quit();
546
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
49 }
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
50
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
51
523
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
52 static void about_click(GtkWidget *w, gpointer m)
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
53 {
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
54 open_url_nw(NULL, "http://www.marko.net/gaim/");
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
55 }
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
56
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
57 void show_about(GtkWidget *w, void *null)
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
58 {
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
59 GtkWidget *vbox;
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
60 GtkWidget *frame;
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
61 GtkWidget *fbox;
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
62 GtkWidget *a_table;
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
63 GtkWidget *label;
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
64 GtkWidget *pixmap;
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
65 GtkStyle *style;
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
66 GdkPixmap *pm;
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
67 GdkBitmap *bm;
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
68 GtkWidget *hbox;
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
69 GtkWidget *button;
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
70
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
71 char abouttitle[45];
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
72
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
73 if (!about) {
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
74
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
75 about = gtk_window_new(GTK_WINDOW_DIALOG);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
76
349
b402a23f35df [gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 338
diff changeset
77 g_snprintf(abouttitle, sizeof(abouttitle), _("About GAIM v%s"), VERSION);
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
78 gtk_window_set_title(GTK_WINDOW(about), abouttitle);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
79 gtk_window_set_wmclass(GTK_WINDOW(about), "about", "Gaim");
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
80 gtk_window_set_policy(GTK_WINDOW(about), FALSE, TRUE, TRUE);
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
81
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
82 gtk_widget_realize(about);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
83 aol_icon(about->window);
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
84
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
85 vbox = gtk_vbox_new(FALSE, 5);
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
86 gtk_container_set_border_width(GTK_CONTAINER(vbox), 5);
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
87 gtk_container_add(GTK_CONTAINER(about), vbox);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
88
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
89 frame = gtk_frame_new("Gaim " VERSION);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
90 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0);
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
91
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
92 fbox = gtk_hbox_new(FALSE, 5);
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
93 gtk_container_set_border_width(GTK_CONTAINER(fbox), 5);
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
94 gtk_container_add(GTK_CONTAINER(frame), fbox);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
95
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
96 /* Left side, TOP */
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
97 style = gtk_widget_get_style(about);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
98 pm = gdk_pixmap_create_from_xpm_d(about->window, &bm,
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
99 &style->bg[GTK_STATE_NORMAL], (gchar **) aol_logo);
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
100 pixmap = gtk_pixmap_new(pm, bm);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
101
644
b3900e312d8e [gaim-migrate @ 654]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 622
diff changeset
102 gdk_pixmap_unref(pm);
804
17def2bb9720 [gaim-migrate @ 814]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 644
diff changeset
103 gdk_bitmap_unref(bm);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
104
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
105 gtk_box_pack_start(GTK_BOX(fbox), pixmap, FALSE, FALSE, 0);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
106
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
107 /* Set up the author table */
1452
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
108 a_table = gtk_table_new(8, 2, TRUE);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
109 gtk_table_set_row_spacings(GTK_TABLE(a_table), 5);
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
110 gtk_table_set_col_spacings(GTK_TABLE(a_table), 5);
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
111
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
112 label =
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
113 gtk_label_new(_
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
114 ("GAIM is a client that supports AOL's Instant Messenger protocol. "
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
115 "It is written using Gtk+ and is licensed under the GPL.\n"
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
116 "URL: http://www.marko.net/gaim/"));
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
117 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
118 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 2, 0, 2);
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
119
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
120 /* Rob */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
121 label = gtk_label_new("Rob Flynn (Maintainer)");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
122 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
123 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 2, 3);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
124
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
125 label = gtk_label_new("rob@tgflinux.com");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
126 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
127 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 1, 2, 2, 3);
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
128
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
129 /* Eric */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
130 label = gtk_label_new("Eric Warmenhoven");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
131 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
132 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 3, 4);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
133
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
134 label = gtk_label_new("warmenhoven@yahoo.com");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
135 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
136 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 1, 2, 3, 4);
1452
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
137
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
138 /* Bmiller */
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
139 label = gtk_label_new("Benjamin Miller");
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
140 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
141 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 4, 5);
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
142
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
143 /* Decklin */
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
144 label = gtk_label_new("Decklin Foster");
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
145 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
146 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 5, 6);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
147
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
148 /* Jim */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
149 label = gtk_label_new("Jim Duchek");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
150 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
1452
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
151 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 6, 7);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
152
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
153 /* Mark */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
154 label = gtk_label_new("Mark Spencer");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
155 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
1452
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
156 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 7, 8);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
157
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
158 label = gtk_label_new("markster@marko.net");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
159 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
1452
3456fd563e75 [gaim-migrate @ 1462]
Rob Flynn <gaim@robflynn.com>
parents: 1250
diff changeset
160 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 1, 2, 7, 8);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
161
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
162 gtk_box_pack_start(GTK_BOX(fbox), a_table, TRUE, TRUE, 0);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
163
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
164 /* Close Button */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
165
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
166 hbox = gtk_hbox_new(FALSE, 5);
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
167 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
168
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
169 button = picture_button(about, _("Close"), cancel_xpm);
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
170 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0);
622
7f8b85e2e894 [gaim-migrate @ 632]
Rob Flynn <gaim@robflynn.com>
parents: 619
diff changeset
171
1142
4593153a956c [gaim-migrate @ 1152]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1117
diff changeset
172 if (null != (void *)2) {
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
173 /* 2 can be as sad as 1, it's the loneliest number since the number 1 */
546
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
174 gtk_signal_connect_object(GTK_OBJECT(button), "clicked",
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
175 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about));
1009
d496fe2614a6 [gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 960
diff changeset
176 gtk_signal_connect(GTK_OBJECT(about), "destroy",
d496fe2614a6 [gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 960
diff changeset
177 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about));
d496fe2614a6 [gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 960
diff changeset
178 } else {
546
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
179 gtk_signal_connect(GTK_OBJECT(button), "clicked",
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
180 GTK_SIGNAL_FUNC(version_exit), NULL);
1009
d496fe2614a6 [gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 960
diff changeset
181 gtk_signal_connect(GTK_OBJECT(about), "destroy",
d496fe2614a6 [gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 960
diff changeset
182 GTK_SIGNAL_FUNC(version_exit), NULL);
d496fe2614a6 [gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 960
diff changeset
183 }
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
184
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
185 /* this makes the sizes not work. */
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
186 //GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
187 //gtk_widget_grab_default(button);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
188
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
189 button = picture_button(about, _("Web Site"), about_small_xpm);
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
190 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
191 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(about_click), NULL);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
192
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
193 if (display_options & OPT_DISP_COOL_LOOK)
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
194 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
195 }
1210
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
196
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
197 /* Let's give'em something to talk about -- woah woah woah */
265abea9db72 [gaim-migrate @ 1220]
Rob Flynn <gaim@robflynn.com>
parents: 1207
diff changeset
198 gtk_widget_show_all(about);
1250
b5783215b245 [gaim-migrate @ 1260]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1233
diff changeset
199
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
200 }