Mercurial > audlegacy-plugins
comparison src/OSS/OSS.c @ 2861:bc0f157aeb86
Indentation.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 30 Jul 2008 17:28:41 +0300 |
parents | 77439faa1934 |
children | 3134a0987162 |
comparison
equal
deleted
inserted
replaced
2851:7a000caead28 | 2861:bc0f157aeb86 |
---|---|
25 #include <audacious/i18n.h> | 25 #include <audacious/i18n.h> |
26 #include <stdlib.h> | 26 #include <stdlib.h> |
27 | 27 |
28 OSSConfig oss_cfg; | 28 OSSConfig oss_cfg; |
29 | 29 |
30 static GtkWidget *about_dialog = NULL; | |
31 | |
30 static void oss_about(void) | 32 static void oss_about(void) |
31 { | 33 { |
32 static GtkWidget *dialog; | 34 if (about_dialog != NULL) |
33 | |
34 if (dialog != NULL) | |
35 return; | 35 return; |
36 | 36 |
37 dialog = audacious_info_dialog(_("About OSS Driver"), | 37 about_dialog = audacious_info_dialog(_("About OSS Driver"), |
38 _("Audacious OSS Driver\n\n " | 38 _("Audacious OSS Driver\n\n " |
39 "This program is free software; you can redistribute it and/or modify\n" | 39 "This program is free software; you can redistribute it and/or modify\n" |
40 "it under the terms of the GNU General Public License as published by\n" | 40 "it under the terms of the GNU General Public License as published by\n" |
41 "the Free Software Foundation; either version 2 of the License, or\n" | 41 "the Free Software Foundation; either version 2 of the License, or\n" |
42 "(at your option) any later version.\n" | 42 "(at your option) any later version.\n" |
43 "\n" | 43 "\n" |
44 "This program is distributed in the hope that it will be useful,\n" | 44 "This program is distributed in the hope that it will be useful,\n" |
45 "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" | 45 "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" |
46 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" | 46 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" |
47 "GNU General Public License for more details.\n" | 47 "GNU General Public License for more details.\n" |
48 "\n" | 48 "\n" |
49 "You should have received a copy of the GNU General Public License\n" | 49 "You should have received a copy of the GNU General Public License\n" |
50 "along with this program; if not, write to the Free Software\n" | 50 "along with this program; if not, write to the Free Software\n" |
51 "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,\n" | 51 "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,\n" |
52 "USA."), _("Ok"), FALSE, NULL, NULL); | 52 "USA."), _("Ok"), FALSE, NULL, NULL); |
53 g_signal_connect(G_OBJECT(dialog), "destroy", | 53 g_signal_connect(G_OBJECT(about_dialog), "destroy", |
54 G_CALLBACK(gtk_widget_destroyed), &dialog); | 54 G_CALLBACK(gtk_widget_destroyed), &about_dialog); |
55 } | 55 } |
56 | 56 |
57 static void oss_init(void) | 57 static void oss_init(void) |
58 { | 58 { |
59 mcs_handle_t *db; | 59 mcs_handle_t *db; |