annotate src/about.c @ 1207:b81213bb5b61

[gaim-migrate @ 1217] It wasn't *quite* the right size. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Tue, 05 Dec 2000 17:46:44 +0000
parents 7bdb54311828
children 265abea9db72
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"
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
34
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
35 static GtkWidget *about=NULL;
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
36
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
37 static void destroy_about()
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
38 {
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
39 if (about)
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
40 gtk_widget_destroy(about);
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
41 about = NULL;
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
42 }
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
546
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
45 static void version_exit()
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
46 {
1117
f3e0f41beddb [gaim-migrate @ 1127]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1009
diff changeset
47 gtk_main_quit();
546
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
48 }
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
523
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
51 static void about_click(GtkWidget *w, gpointer m)
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
52 {
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
53 open_url_nw(NULL, "http://www.marko.net/gaim/");
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
54 }
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
55
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
56 void show_about(GtkWidget *w, void *null)
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
57 {
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
58 GtkWidget *vbox;
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
59 GtkWidget *table;
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
60 GtkWidget *a_table;
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
61 GtkWidget *label;
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
62 GtkWidget *pixmap;
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
63 GtkStyle *style;
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
64 GdkPixmap *pm;
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
65 GdkBitmap *bm;
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
66 GtkWidget *hbox;
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
67 GtkWidget *eventbox;
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
68 GtkWidget *button;
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
69
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
70 char abouttitle[45];
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
71
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
72 if (!about) {
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
73
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
74 about = gtk_window_new(GTK_WINDOW_DIALOG);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
75
349
b402a23f35df [gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 338
diff changeset
76 g_snprintf(abouttitle, sizeof(abouttitle), _("About GAIM v%s"), VERSION);
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
77 gtk_window_set_title(GTK_WINDOW(about), abouttitle);
905
2876c40108cd [gaim-migrate @ 915]
Rob Flynn <gaim@robflynn.com>
parents: 804
diff changeset
78 gtk_window_set_wmclass(GTK_WINDOW(about), "about", "Gaim" );
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
79 gtk_container_border_width(GTK_CONTAINER(about), 2);
1207
b81213bb5b61 [gaim-migrate @ 1217]
Rob Flynn <gaim@robflynn.com>
parents: 1205
diff changeset
80 gtk_widget_set_usize(about, 535, 255);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
81 gtk_window_set_policy(GTK_WINDOW(about), FALSE, FALSE, TRUE);
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
82
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
83 gtk_widget_show(about);
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
84 aol_icon(about->window);
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
85
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
86
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
87 vbox = gtk_vbox_new(FALSE, 5);
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
88
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
89 table = gtk_table_new(3, 2, FALSE);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
90
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
91 /* Left side, TOP */
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
92 style = gtk_widget_get_style(about);
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
93 pm = gdk_pixmap_create_from_xpm_d(about->window, &bm,
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
94 &style->bg[GTK_STATE_NORMAL], (gchar **)aol_logo);
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
95 pixmap = gtk_pixmap_new(pm, bm);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
96
644
b3900e312d8e [gaim-migrate @ 654]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 622
diff changeset
97 gdk_pixmap_unref(pm);
804
17def2bb9720 [gaim-migrate @ 814]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 644
diff changeset
98 gdk_bitmap_unref(bm);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
99
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
100 gtk_table_attach(GTK_TABLE(table), pixmap, 0, 1, 0, 1, 0, 0, 5, 5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
101 gtk_widget_show(pixmap);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
102
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
103
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
104 /* Right side, TOP*/
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
105 hbox = gtk_vbox_new(FALSE, 5);
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 label = gtk_label_new(_("GAIM is a client that supports AOL's Instant Messanger protocol. It is "
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
108 "written using Gtk+ and is licensed under the GPL."));
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
109 gtk_widget_show(label);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
110 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
111 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
112 gtk_box_pack_start(GTK_BOX(hbox), label, GTK_EXPAND, FALSE, 0);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
113
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
114 /* Set up the author table */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
115 a_table = gtk_table_new(2, 5, FALSE);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
116
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
117 /* Rob */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
118 label = gtk_label_new("Rob Flynn (Maintainer)");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
119 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
120 gtk_table_attach(GTK_TABLE(a_table), label, 0, 1, 1, 2, GTK_FILL, 0, 5, 5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
121
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
122 label = gtk_label_new("rob@tgflinux.com");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
123 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
124 gtk_table_attach(GTK_TABLE(a_table), label, 1, 2, 1, 2, GTK_FILL, 0, 5, 5);
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
125
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
126 /* Eric */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
127 label = gtk_label_new("Eric Warmenhoven");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
128 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
129 gtk_table_attach(GTK_TABLE(a_table), label, 0, 1, 2, 3, GTK_FILL, 0, 5, 5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
130
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
131 label = gtk_label_new("warmenhoven@yahoo.com");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
132 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
133 gtk_table_attach(GTK_TABLE(a_table), label, 1, 2, 2, 3, GTK_FILL, 0, 5, 5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
134
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
135 /* Jim */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
136 label = gtk_label_new("Jim Duchek");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
137 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
138 gtk_table_attach(GTK_TABLE(a_table), label, 0, 1, 3, 4, GTK_FILL, 0, 5, 5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
139
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
140 /* Mark */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
141 label = gtk_label_new("Mark Spencer");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
142 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
143 gtk_table_attach(GTK_TABLE(a_table), label, 0, 1, 4, 5, GTK_FILL, 0, 5, 5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
144
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
145 label = gtk_label_new("markster@marko.net");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
146 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
147 gtk_table_attach(GTK_TABLE(a_table), label, 1, 2, 4, 5, GTK_FILL, 0, 5, 5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
148
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
149 gtk_box_pack_start(GTK_BOX(hbox), a_table, TRUE, FALSE, 0);
523
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
150
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
151 gtk_widget_show_all(a_table);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
152
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
153 /* End Author List */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
154
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
155 gtk_table_attach(GTK_TABLE(table), hbox, 1, 3, 0, 1, 0, 0, 5, 5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
156 gtk_widget_show(hbox);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
157
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
158 /* Clickable URL */
523
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
159 eventbox = gtk_event_box_new();
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
160 gtk_table_attach(GTK_TABLE(table), eventbox, 0, 3, 1, 2, GTK_FILL, FALSE, 5, 5);
523
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
161 gtk_widget_show(eventbox);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
162
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
163 label = gtk_label_new("Gaim " VERSION " - http://www.marko.net/gaim/\n");
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
164 gtk_container_add(GTK_CONTAINER(eventbox), label);
523
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
165
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
166 gtk_signal_connect(GTK_OBJECT(eventbox), "button_press_event",
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
167 GTK_SIGNAL_FUNC(about_click), NULL);
023c3851db0a [gaim-migrate @ 533]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 356
diff changeset
168 gdk_window_set_cursor(eventbox->window, gdk_cursor_new(GDK_HAND2));
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
169 gtk_widget_show(label);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
170
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
171 /* End Clickable URL */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
172
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
173 /* Close Button */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
174
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
175 button = picture_button(about, _("Close"), cancel_xpm);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
176
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
177 hbox = gtk_hbox_new(FALSE, 5);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
178 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
179 gtk_widget_show(hbox);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
180
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
181 /* End Button */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
182
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
183 gtk_widget_show(vbox);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
184 gtk_widget_show(table);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
185
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
186
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
187 gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
188 gtk_box_pack_end(GTK_BOX(vbox), hbox, TRUE, TRUE, 0);
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
189
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
190 gtk_container_add(GTK_CONTAINER(about), vbox);
622
7f8b85e2e894 [gaim-migrate @ 632]
Rob Flynn <gaim@robflynn.com>
parents: 619
diff changeset
191
1142
4593153a956c [gaim-migrate @ 1152]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1117
diff changeset
192 if (null != (void *)2) {
4593153a956c [gaim-migrate @ 1152]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 1117
diff changeset
193 /* 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
194 gtk_signal_connect_object(GTK_OBJECT(button), "clicked",
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
195 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about));
1009
d496fe2614a6 [gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 960
diff changeset
196 gtk_signal_connect(GTK_OBJECT(about), "destroy",
d496fe2614a6 [gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 960
diff changeset
197 GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about));
d496fe2614a6 [gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 960
diff changeset
198 } else {
546
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
199 gtk_signal_connect(GTK_OBJECT(button), "clicked",
e312b8b9bee5 [gaim-migrate @ 556]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 541
diff changeset
200 GTK_SIGNAL_FUNC(version_exit), NULL);
1009
d496fe2614a6 [gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 960
diff changeset
201 gtk_signal_connect(GTK_OBJECT(about), "destroy",
d496fe2614a6 [gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 960
diff changeset
202 GTK_SIGNAL_FUNC(version_exit), NULL);
d496fe2614a6 [gaim-migrate @ 1019]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 960
diff changeset
203 }
535
f03f041c1aa9 [gaim-migrate @ 545]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 523
diff changeset
204
f03f041c1aa9 [gaim-migrate @ 545]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 523
diff changeset
205 if (display_options & OPT_DISP_COOL_LOOK)
f03f041c1aa9 [gaim-migrate @ 545]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 523
diff changeset
206 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE);
f03f041c1aa9 [gaim-migrate @ 545]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 523
diff changeset
207
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
208 GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
209 gtk_widget_grab_default(button);
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
210
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
211
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
212 }
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
213 else
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
214 /* Let's give'em something to talk about -- woah woah woah */
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
215 gtk_widget_show(about);
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
216
1205
7bdb54311828 [gaim-migrate @ 1215]
Rob Flynn <gaim@robflynn.com>
parents: 1142
diff changeset
217 }
1
2846a03bda67 [gaim-migrate @ 10]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
218