annotate src/xs_about.c @ 1005:355bffec44ac

Bump copyright years.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 09 Jan 2014 23:43:17 +0200
parents 1cd7dead1b56
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
46
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 /*
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 xmms-sid - SIDPlay input plugin for X MultiMedia System (XMMS)
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 Aboutbox dialog
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
324
dd201740a720 Changed copyright text.
Matti Hamalainen <ccr@tnsp.org>
parents: 322
diff changeset
6 Programmed and designed by Matti 'ccr' Hamalainen <ccr@tnsp.org>
1005
355bffec44ac Bump copyright years.
Matti Hamalainen <ccr@tnsp.org>
parents: 980
diff changeset
7 (C) Copyright 1999-2014 Tecnic Software productions (TNSP)
46
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 This program is free software; you can redistribute it and/or modify
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 it under the terms of the GNU General Public License as published by
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 the Free Software Foundation; either version 2 of the License, or
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 (at your option) any later version.
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 This program is distributed in the hope that it will be useful,
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 GNU General Public License for more details.
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18
412
7f694e5a1493 Updated GNU GPL (new FSF address) and some cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 388
diff changeset
19 You should have received a copy of the GNU General Public License along
7f694e5a1493 Updated GNU GPL (new FSF address) and some cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 388
diff changeset
20 with this program; if not, write to the Free Software Foundation, Inc.,
7f694e5a1493 Updated GNU GPL (new FSF address) and some cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 388
diff changeset
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
46
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 */
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 #include "xmms-sid.h"
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 #include <gtk/gtk.h>
61
8207e95e0467 Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents: 46
diff changeset
25 #include "xmms-sid-logo.xpm"
46
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 static GtkWidget *xs_aboutwin = NULL;
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29
61
8207e95e0467 Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents: 46
diff changeset
30
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
31 #ifdef HAVE_THEMETUNE
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
32 #include <xmms/xmmsctrl.h>
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
33
329
8fadb3f38445 Comments
Matti Hamalainen <ccr@tnsp.org>
parents: 328
diff changeset
34 /* (Included only if themetune support is enabled)
8fadb3f38445 Comments
Matti Hamalainen <ccr@tnsp.org>
parents: 328
diff changeset
35 * Stop playing, add XMMS-SID themetune to playlist
8fadb3f38445 Comments
Matti Hamalainen <ccr@tnsp.org>
parents: 328
diff changeset
36 * and start playing it.
8fadb3f38445 Comments
Matti Hamalainen <ccr@tnsp.org>
parents: 328
diff changeset
37 */
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
38 gint xs_about_theme(void)
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
39 {
752
64e7e427a436 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 750
diff changeset
40 const gint session = 0; /* Assume session 0 */
64e7e427a436 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 750
diff changeset
41 gint pos;
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
42
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
43 /* Stop current song, add theme to playlist, play. */
752
64e7e427a436 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 750
diff changeset
44 xmms_remote_stop(session);
64e7e427a436 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 750
diff changeset
45 pos = xmms_remote_get_playlist_length(session);
64e7e427a436 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 750
diff changeset
46 xmms_remote_playlist_add_url_string(session, THEMETUNE_FILE);
64e7e427a436 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 750
diff changeset
47 xmms_remote_set_playlist_pos(session, pos);
64e7e427a436 Cosmetics.
Matti Hamalainen <ccr@tnsp.org>
parents: 750
diff changeset
48 xmms_remote_play(session);
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
49 return 0;
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
50 }
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
51 #endif
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
52
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
53
612
32fc27395220 About window wasn't handling delete_event properly, fixed; Cleaned up event handling a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 575
diff changeset
54 XS_DEF_WINDOW_CLOSE(about_ok, aboutwin)
32fc27395220 About window wasn't handling delete_event properly, fixed; Cleaned up event handling a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 575
diff changeset
55 XS_DEF_WINDOW_DELETE(about, aboutwin)
46
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
56
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
57
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
58 /*
329
8fadb3f38445 Comments
Matti Hamalainen <ccr@tnsp.org>
parents: 328
diff changeset
59 * Execute the about dialog
46
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
60 */
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
61 void xs_about(void)
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
62 {
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
63 GtkWidget *about_vbox1;
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
64 GtkWidget *about_frame;
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
65 GtkWidget *about_logo;
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
66 GdkPixmap *about_logo_pixmap = NULL, *about_logo_mask = NULL;
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
67 GtkWidget *about_scrwin;
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
68 GtkWidget *about_text;
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
69 GtkWidget *alignment6;
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
70 GtkWidget *about_close;
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
71 gchar tmpStr[64];
61
8207e95e0467 Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents: 46
diff changeset
72
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
73 /* Check if there already is an open about window */
909
84394ee26545 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 892
diff changeset
74 if (xs_aboutwin != NULL)
84394ee26545 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 892
diff changeset
75 {
665
94186706beed Use macro wrapping for Gtk+ v1 vs v2 differences, yet again.
Matti Hamalainen <ccr@tnsp.org>
parents: 660
diff changeset
76 XS_WINDOW_PRESENT(xs_aboutwin);
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
77 return;
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
78 }
46
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
79
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
80 /* No, create one ... */
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
81 xs_aboutwin = gtk_window_new(GTK_WINDOW_DIALOG);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
82 gtk_widget_set_name(xs_aboutwin, "xs_aboutwin");
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
83 gtk_object_set_data(GTK_OBJECT(xs_aboutwin), "xs_aboutwin", xs_aboutwin);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
84 g_snprintf(tmpStr, sizeof(tmpStr), _("About %s"), XS_PACKAGE_STRING);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
85 gtk_window_set_title(GTK_WINDOW(xs_aboutwin), tmpStr);
857
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
86 gtk_window_set_default_size(GTK_WINDOW(xs_aboutwin), 400, 400);
61
8207e95e0467 Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents: 46
diff changeset
87
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
88 XS_SIGNAL_CONNECT(xs_aboutwin, "delete_event", xs_about_delete, NULL);
612
32fc27395220 About window wasn't handling delete_event properly, fixed; Cleaned up event handling a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 575
diff changeset
89
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
90 about_vbox1 = gtk_vbox_new(FALSE, 0);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
91 gtk_widget_set_name(about_vbox1, "about_vbox1");
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
92 gtk_widget_ref(about_vbox1);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
93 gtk_object_set_data_full(GTK_OBJECT(xs_aboutwin), "about_vbox1", about_vbox1,
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
94 (GtkDestroyNotify) gtk_widget_unref);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
95 gtk_widget_show(about_vbox1);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
96 gtk_container_add(GTK_CONTAINER(xs_aboutwin), about_vbox1);
61
8207e95e0467 Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents: 46
diff changeset
97
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
98 #ifdef HAVE_THEMETUNE
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
99 about_frame = gtk_button_new();
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
100 #else
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
101 about_frame = gtk_frame_new(NULL);
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
102 #endif
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
103 gtk_widget_set_name(about_frame, "about_frame");
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
104 gtk_widget_ref(about_frame);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
105 gtk_object_set_data_full(GTK_OBJECT(xs_aboutwin), "about_frame", about_frame,
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
106 (GtkDestroyNotify) gtk_widget_unref);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
107 gtk_widget_show(about_frame);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
108 gtk_box_pack_start(GTK_BOX(about_vbox1), about_frame, FALSE, FALSE, 0);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
109 gtk_container_set_border_width(GTK_CONTAINER(about_frame), 4);
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
110
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
111 #ifdef HAVE_THEMETUNE
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
112 gtk_signal_connect(GTK_OBJECT(about_frame), "clicked", GTK_SIGNAL_FUNC(xs_about_theme), NULL);
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
113 #else
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
114 gtk_frame_set_shadow_type(GTK_FRAME(about_frame), GTK_SHADOW_OUT);
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
115 #endif
61
8207e95e0467 Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents: 46
diff changeset
116
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
117 /* Create the Gdk data for logo pixmap */
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
118 gtk_widget_realize(xs_aboutwin);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
119 about_logo_pixmap = gdk_pixmap_create_from_xpm_d(
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
120 xs_aboutwin->window, &about_logo_mask,
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
121 NULL, (gchar **) xmms_sid_logo_xpm);
359
b1a858b8cb1a Re-indentation all (non-generated) code.
Matti Hamalainen <ccr@tnsp.org>
parents: 342
diff changeset
122
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
123 about_logo = gtk_pixmap_new(about_logo_pixmap, about_logo_mask);
61
8207e95e0467 Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents: 46
diff changeset
124
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
125 /* Create logo widget */
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
126 gtk_widget_set_name(about_logo, "about_logo");
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
127 gtk_widget_ref(about_logo);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
128 gtk_object_set_data_full(GTK_OBJECT(xs_aboutwin), "about_logo", about_logo,
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
129 (GtkDestroyNotify) gtk_widget_unref);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
130 gtk_widget_show(about_logo);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
131 gtk_container_add(GTK_CONTAINER(about_frame), about_logo);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
132 gtk_misc_set_padding(GTK_MISC(about_logo), 0, 6);
61
8207e95e0467 Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents: 46
diff changeset
133
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
134 about_scrwin = gtk_scrolled_window_new(NULL, NULL);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
135 gtk_widget_set_name(about_scrwin, "about_scrwin");
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
136 gtk_widget_ref(about_scrwin);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
137 gtk_object_set_data_full(GTK_OBJECT(xs_aboutwin), "about_scrwin", about_scrwin,
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
138 (GtkDestroyNotify) gtk_widget_unref);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
139 gtk_widget_show(about_scrwin);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
140 gtk_box_pack_start(GTK_BOX(about_vbox1), about_scrwin, TRUE, TRUE, 0);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
141 gtk_container_set_border_width(GTK_CONTAINER(about_scrwin), 8);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
142 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(about_scrwin),
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
143 GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
61
8207e95e0467 Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents: 46
diff changeset
144
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
145 about_text = gtk_text_new(NULL, NULL);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
146 gtk_widget_set_name(about_text, "about_text");
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
147 gtk_widget_ref(about_text);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
148 gtk_object_set_data_full(GTK_OBJECT(xs_aboutwin), "about_text", about_text,
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
149 (GtkDestroyNotify) gtk_widget_unref);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
150 gtk_widget_show(about_text);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
151 gtk_container_add(GTK_CONTAINER(about_scrwin), about_text);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
152 gtk_widget_set_usize(about_text, -2, 100);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
153 gtk_text_insert(GTK_TEXT(about_text), NULL, NULL, NULL,
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
154 "\n"
857
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
155 " This release of XMMS-SID is dedicated to\n"
830
e3b293c5b8b3 Add Kitania to the list of people remembered. :(
Matti Hamalainen <ccr@tnsp.org>
parents: 803
diff changeset
156 "\n"
857
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
157 " Richard Joseph\n"
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
158 " Lauri Sipilä (aka Xaztur/PWP)\n"
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
159 " Jessica Lanier (aka Kitania Kallisti)\n"
980
1cd7dead1b56 Add dedication to Taneli, as well. :(
Matti Hamalainen <ccr@tnsp.org>
parents: 979
diff changeset
160 " Taneli Lampela (aka Nuane Lahola)\n"
830
e3b293c5b8b3 Add Kitania to the list of people remembered. :(
Matti Hamalainen <ccr@tnsp.org>
parents: 803
diff changeset
161 "\n"
857
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
162 " - Now gone, but forever in our hearts -\n"
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
163 "\n"
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
164 "\n"
1005
355bffec44ac Bump copyright years.
Matti Hamalainen <ccr@tnsp.org>
parents: 980
diff changeset
165 "(C) Copyright 1999-2014\n"
859
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
166 " Tecnic Software productions (TNSP)\n"
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
167 "\n"
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
168 "Programming and design\n"
859
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
169 " Matti 'ccr' Hämäläinen\n"
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
170 "\n"
892
f1b33b5e153d Fix about dialog not showing all the text.
Matti Hamalainen <ccr@tnsp.org>
parents: 859
diff changeset
171
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
172 #ifdef HAVE_SIDPLAY1
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
173 "libSIDPlay1 created by\n"
859
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
174 " Michael Schwendt\n"
857
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
175 "\n"
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
176 #endif
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
177 #ifdef HAVE_SIDPLAY2
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
178 "libSIDPlay2 and reSID created by\n"
859
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
179 " Simon White, Dag Lem, Michael Schwendt et all.\n"
857
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
180 "\n"
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
181 #endif
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
182 #ifdef HAVE_SIDPLAYFP
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
183 "libSIDPlayFP and reSID-FP\n"
859
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
184 " Antti Lankila, Leandro 'drfiemost' Nini\n"
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
185 " .. based on libSIDPlay2.\n"
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
186 "\n"
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
187 #endif
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
188 #ifdef HAVE_THEMETUNE
803
cc290afcb7e2 We are going for 0.9, remove reference to 0.8.
Matti Hamalainen <ccr@tnsp.org>
parents: 752
diff changeset
189 "\"Kummatti City\", theme of XMMS-SID\n"
859
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
190 " by Ari 'Agemixer' Yliaho\n"
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
191 " (C) Copyright 1998 Scallop\n"
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
192 " (Refer to README for license)\n"
857
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
193 "\n"
253
fa463b3ca57b Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
194 #endif
892
f1b33b5e153d Fix about dialog not showing all the text.
Matti Hamalainen <ccr@tnsp.org>
parents: 859
diff changeset
195 , -1);
f1b33b5e153d Fix about dialog not showing all the text.
Matti Hamalainen <ccr@tnsp.org>
parents: 859
diff changeset
196
f1b33b5e153d Fix about dialog not showing all the text.
Matti Hamalainen <ccr@tnsp.org>
parents: 859
diff changeset
197 gtk_text_insert(GTK_TEXT(about_text), NULL, NULL, NULL,
857
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
198 "Original XMMS-SID (v0.4) by\n"
859
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
199 " Willem Monsuwe\n"
857
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
200 "\n"
359
b1a858b8cb1a Re-indentation all (non-generated) code.
Matti Hamalainen <ccr@tnsp.org>
parents: 342
diff changeset
201
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
202 "Greetings fly out to ...\n"
859
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
203 " Everyone at #linux.fi, #fireball, #tnsp,\n"
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
204 " #pwp and #c-64 of IRCNet.\n"
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
205 "\n"
859
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
206 " Dekadence, PWP, Byterapers, mfx, ISO,\n"
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
207 " Unique, Fairlight, Trilobit, Wrath Designs,\n"
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
208 " Padua, Extend, PHn, Creators, Cosine, tAAt,\n"
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
209 " Viruz, Crest and Skalaria.\n"
857
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
210 "\n"
359
b1a858b8cb1a Re-indentation all (non-generated) code.
Matti Hamalainen <ccr@tnsp.org>
parents: 342
diff changeset
211
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
212 "Special thanks\n"
859
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
213 " Gerfried 'Alfie' Fuchs\n"
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
214 " Andreas 'mrsid' Varga\n"
f535c1e274e8 Adjust credits indentation by changing tabs to 4 spaces.
Matti Hamalainen <ccr@tnsp.org>
parents: 857
diff changeset
215 " All the users!\n",
857
6cd884a8fa1d Updated credits in about box.
Matti Hamalainen <ccr@tnsp.org>
parents: 830
diff changeset
216 -1);
65
bf7b647b3239 The fabled 0.8-rewrite now works to some extent
Matti Hamalainen <ccr@tnsp.org>
parents: 63
diff changeset
217
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
218 alignment6 = gtk_alignment_new(0.5, 0.5, 0.18, 1);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
219 gtk_widget_set_name(alignment6, "alignment6");
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
220 gtk_widget_ref(alignment6);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
221 gtk_object_set_data_full(GTK_OBJECT(xs_aboutwin), "alignment6", alignment6,
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
222 (GtkDestroyNotify) gtk_widget_unref);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
223 gtk_widget_show(alignment6);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
224 gtk_box_pack_start(GTK_BOX(about_vbox1), alignment6, FALSE, TRUE, 0);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
225 gtk_container_set_border_width(GTK_CONTAINER(alignment6), 8);
61
8207e95e0467 Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents: 46
diff changeset
226
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
227 about_close = gtk_button_new_with_label(_("Close"));
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
228 gtk_widget_set_name(about_close, "about_close");
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
229 gtk_widget_ref(about_close);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
230 gtk_object_set_data_full(GTK_OBJECT(xs_aboutwin), "about_close", about_close,
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
231 (GtkDestroyNotify) gtk_widget_unref);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
232 gtk_widget_show(about_close);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
233 gtk_container_add(GTK_CONTAINER(alignment6), about_close);
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
234 GTK_WIDGET_SET_FLAGS(about_close, GTK_CAN_DEFAULT);
61
8207e95e0467 Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents: 46
diff changeset
235
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
236 XS_SIGNAL_CONNECT(about_close, "clicked", xs_about_ok, NULL);
61
8207e95e0467 Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents: 46
diff changeset
237
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 656
diff changeset
238 gtk_widget_show(xs_aboutwin);
46
ffb606e17bec Re-added xs_about.c
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
239 }