view src/scrobbler/gtkstuff.c @ 611:3f7a52adfe0e trunk

[svn] merge recent changes from yaz's branch. - stable shoutcast playback. - tag handling improvement. - view track detail on streaming won't crash. (disabled.) - filepopup for streaming is partially supported. filepopup displays track name and stream name, but not updated automatically.
author yaz
date Tue, 06 Feb 2007 12:11:42 -0800
parents d124034ebea3
children 90d9d4cf619c
line wrap: on
line source

#include "audacious/util.h"
#include "audacious/configdb.h"

#include <glib.h>
#include <audacious/i18n.h>

#include <stdio.h>
#include <string.h>
#include "settings.h"
#include "config.h"
#include "md5.h"

void about_show(void)
{
	static GtkWidget *aboutbox;
	gchar *tmp;
	if (aboutbox)
		return;

	tmp = g_strdup_printf("Audacious AudioScrobbler Plugin\n\n"
				"Originally created by Audun Hove <audun@nlc.no> and Pipian <pipian@pipian.com>\n");
	aboutbox = xmms_show_message(_("About Scrobbler Plugin"),
			_(tmp),
			_("Ok"), FALSE, NULL, NULL);

	g_free(tmp);
	gtk_signal_connect(GTK_OBJECT(aboutbox), "destroy",
			GTK_SIGNAL_FUNC(gtk_widget_destroyed), &aboutbox);
}

void errorbox_show(char *errortxt)
{
	gchar *tmp;

	tmp = g_strdup_printf("There has been an error"
			" that may require your attention.\n\n"
			"Contents of server error:\n\n"
			"%s\n",
			errortxt);

	xmms_show_message("Scrobbler Error",
			tmp,
			"OK", FALSE, NULL, NULL);
	g_free(tmp);
}