1 |
|
/* |
2 |
|
* prefs_editor_gtk.cpp - Preferences editor, Unix implementation using GTK+ |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2000 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2001 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
227 |
|
{ |
228 |
|
GtkWidget *dialog, *label, *button; |
229 |
|
|
230 |
< |
char str[256]; |
231 |
< |
sprintf(str, GetString(STR_ABOUT_TEXT1), VERSION_MAJOR, VERSION_MINOR); |
232 |
< |
strncat(str, "\n", 255); |
233 |
< |
strncat(str, GetString(STR_ABOUT_TEXT2), 255); |
230 |
> |
char str[512]; |
231 |
> |
sprintf(str, |
232 |
> |
"Basilisk II\nVersion %d.%d\n\n" |
233 |
> |
"Copyright (C) 1997-2001 Christian Bauer et al.\n" |
234 |
> |
"E-mail: Christian.Bauer@uni-mainz.de\n" |
235 |
> |
"http://www.uni-mainz.de/~bauec002/B2Main.html\n\n" |
236 |
> |
"Basilisk II comes with ABSOLUTELY NO\n" |
237 |
> |
"WARRANTY. This is free software, and\n" |
238 |
> |
"you are welcome to redistribute it\n" |
239 |
> |
"under the terms of the GNU General\n" |
240 |
> |
"Public License.\n", |
241 |
> |
VERSION_MAJOR, VERSION_MINOR |
242 |
> |
); |
243 |
|
|
244 |
|
dialog = gtk_dialog_new(); |
236 |
– |
gtk_widget_set_usize(GTK_WIDGET(dialog), strlen(GetString(STR_ABOUT_TEXT2)) + 200, 120); |
245 |
|
gtk_window_set_title(GTK_WINDOW(dialog), GetString(STR_ABOUT_TITLE)); |
246 |
|
gtk_container_border_width(GTK_CONTAINER(dialog), 5); |
247 |
|
gtk_widget_set_uposition(GTK_WIDGET(dialog), 100, 150); |