Mercurial > pidgin
comparison src/about.c @ 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 | 24aed1c31342 |
children | b66aca8e8dce |
comparison
equal
deleted
inserted
replaced
2071:0fd338304759 | 2072:e105da353872 |
---|---|
67 void show_about(GtkWidget *w, void *null) | 67 void show_about(GtkWidget *w, void *null) |
68 { | 68 { |
69 GtkWidget *vbox; | 69 GtkWidget *vbox; |
70 GtkWidget *frame; | 70 GtkWidget *frame; |
71 GtkWidget *fbox; | 71 GtkWidget *fbox; |
72 GtkWidget *a_table; | |
73 GtkWidget *label; | 72 GtkWidget *label; |
74 GtkWidget *pixmap; | 73 GtkWidget *pixmap; |
75 GtkStyle *style; | 74 GtkStyle *style; |
76 GdkPixmap *pm; | 75 GdkPixmap *pm; |
77 GdkBitmap *bm; | 76 GdkBitmap *bm; |
78 GtkWidget *hbox; | 77 GtkWidget *hbox; |
79 GtkWidget *button; | 78 GtkWidget *button; |
79 GtkWidget *text; | |
80 | 80 |
81 char abouttitle[45]; | 81 char abouttitle[45]; |
82 | 82 |
83 if (!about) { | 83 if (!about) { |
84 | 84 |
85 about = gtk_window_new(GTK_WINDOW_DIALOG); | 85 about = gtk_window_new(GTK_WINDOW_DIALOG); |
86 | |
87 gtk_widget_set_usize(GTK_WIDGET(about), 450, 450); | |
86 | 88 |
87 g_snprintf(abouttitle, sizeof(abouttitle), _("About GAIM v%s"), VERSION); | 89 g_snprintf(abouttitle, sizeof(abouttitle), _("About GAIM v%s"), VERSION); |
88 gtk_window_set_title(GTK_WINDOW(about), abouttitle); | 90 gtk_window_set_title(GTK_WINDOW(about), abouttitle); |
89 gtk_window_set_wmclass(GTK_WINDOW(about), "about", "Gaim"); | 91 gtk_window_set_wmclass(GTK_WINDOW(about), "about", "Gaim"); |
90 gtk_window_set_policy(GTK_WINDOW(about), FALSE, TRUE, TRUE); | 92 gtk_window_set_policy(GTK_WINDOW(about), FALSE, TRUE, TRUE); |
97 gtk_container_add(GTK_CONTAINER(about), vbox); | 99 gtk_container_add(GTK_CONTAINER(about), vbox); |
98 | 100 |
99 frame = gtk_frame_new("Gaim " VERSION); | 101 frame = gtk_frame_new("Gaim " VERSION); |
100 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); | 102 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); |
101 | 103 |
102 fbox = gtk_hbox_new(FALSE, 5); | 104 fbox = gtk_vbox_new(FALSE, 5); |
103 gtk_container_set_border_width(GTK_CONTAINER(fbox), 5); | 105 gtk_container_set_border_width(GTK_CONTAINER(fbox), 5); |
104 gtk_container_add(GTK_CONTAINER(frame), fbox); | 106 gtk_container_add(GTK_CONTAINER(frame), fbox); |
105 | 107 |
106 /* Left side, TOP */ | 108 /* Left side, TOP */ |
107 style = gtk_widget_get_style(about); | 109 style = gtk_widget_get_style(about); |
112 gdk_pixmap_unref(pm); | 114 gdk_pixmap_unref(pm); |
113 gdk_bitmap_unref(bm); | 115 gdk_bitmap_unref(bm); |
114 | 116 |
115 gtk_box_pack_start(GTK_BOX(fbox), pixmap, FALSE, FALSE, 0); | 117 gtk_box_pack_start(GTK_BOX(fbox), pixmap, FALSE, FALSE, 0); |
116 | 118 |
117 /* Set up the author table */ | 119 label = gtk_label_new(_("GAIM is a client that supports AOL's Instant Messenger protocol. It is written\n" |
118 a_table = gtk_table_new(8, 2, TRUE); | 120 "using Gtk+ and is licensed under the GPL.\n\n" |
119 gtk_table_set_row_spacings(GTK_TABLE(a_table), 5); | 121 "URL: " WEBSITE)); |
120 gtk_table_set_col_spacings(GTK_TABLE(a_table), 5); | |
121 | 122 |
122 label = | 123 gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); |
123 gtk_label_new(_ | |
124 ("GAIM is a client that supports AOL's Instant Messenger protocol. " | |
125 "It is written using Gtk+ and is licensed under the GPL.\n" | |
126 "URL: " WEBSITE)); | |
127 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); | |
128 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 2, 0, 2); | |
129 | 124 |
130 /* Rob */ | 125 gtk_box_pack_start(GTK_BOX(fbox), label, TRUE, TRUE, 0); |
131 label = gtk_label_new("Rob Flynn (Maintainer)"); | |
132 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | |
133 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 2, 3); | |
134 | 126 |
135 label = gtk_label_new("rob@marko.net"); | 127 text = gtk_text_new(NULL, NULL); |
136 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | |
137 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 1, 2, 2, 3); | |
138 | 128 |
139 /* Eric */ | 129 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); |
140 label = gtk_label_new("Eric Warmenhoven"); | 130 |
141 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | 131 gtk_widget_show(text); |
142 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 3, 4); | |
143 | 132 |
144 label = gtk_label_new("warmenhoven@yahoo.com"); | 133 gtk_box_pack_start(GTK_BOX(fbox), text, TRUE, TRUE, 0); |
145 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | |
146 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 1, 2, 3, 4); | |
147 | |
148 /* Bmiller */ | |
149 label = gtk_label_new("Benjamin Miller"); | |
150 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | |
151 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 4, 5); | |
152 | |
153 /* Decklin */ | |
154 label = gtk_label_new("Decklin Foster"); | |
155 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | |
156 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 5, 6); | |
157 | |
158 /* Jim */ | |
159 label = gtk_label_new("Jim Duchek"); | |
160 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | |
161 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 6, 7); | |
162 | |
163 /* Mark */ | |
164 label = gtk_label_new("Mark Spencer"); | |
165 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | |
166 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 0, 1, 7, 8); | |
167 | |
168 label = gtk_label_new("markster@marko.net"); | |
169 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | |
170 gtk_table_attach_defaults(GTK_TABLE(a_table), label, 1, 2, 7, 8); | |
171 | |
172 gtk_box_pack_start(GTK_BOX(fbox), a_table, TRUE, TRUE, 0); | |
173 | 134 |
174 /* Close Button */ | 135 /* Close Button */ |
175 | 136 |
176 hbox = gtk_hbox_new(FALSE, 5); | 137 hbox = gtk_hbox_new(FALSE, 5); |
177 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | 138 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |