# HG changeset patch # User Matti Hamalainen # Date 1056073144 0 # Node ID ffb606e17becbe936e4f96d2ca4f0b131305371f # Parent 84214a409d19b9bd03c3c62f3dc316d7519a1f65 Re-added xs_about.c diff -r 84214a409d19 -r ffb606e17bec src/xs_about.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/xs_about.c Fri Jun 20 01:39:04 2003 +0000 @@ -0,0 +1,54 @@ +/* + xmms-sid - SIDPlay input plugin for X MultiMedia System (XMMS) + + Aboutbox dialog + + Written by Matti "ccr" Hamalainen + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ + +#include "xmms-sid.h" +#include +/* #include "xmms-sid-logo.xpm" */ + + +static GtkWidget *xs_aboutwin = NULL; + +int xs_about_ok(void) +{ + gtk_widget_destroy(xs_aboutwin); + xs_aboutwin = NULL; + return 0; +} + + +/* + * Execute the aboutbox + */ +void xs_about(void) +{ + /* Check if there already is an open about window */ + if (xs_aboutwin != NULL) + { + gdk_window_raise(xs_aboutwin->window); + return; + } + + /* No, create one ... */ + xs_aboutwin = create_xs_aboutwin(); + gtk_widget_show(xs_aboutwin); +} +