688
|
1 #include "libaudacious/util.h"
|
|
2 #include "libaudacious/configdb.h"
|
|
3
|
|
4 #include <glib.h>
|
|
5 #include <glib/gi18n.h>
|
|
6
|
|
7 #include <stdio.h>
|
|
8 #include <string.h>
|
|
9 #include "config.h"
|
|
10 #include "md5.h"
|
|
11
|
|
12 void about_show(void)
|
|
13 {
|
|
14 static GtkWidget *aboutbox;
|
|
15 gchar *tmp;
|
|
16 if (aboutbox)
|
|
17 return;
|
|
18
|
|
19 tmp = g_strdup_printf("Audacious AudioScrobbler Plugin\n\n"
|
|
20 "Originally created by Audun Hove <audun@nlc.no> and Pipian <pipian@pipian.com>\n");
|
|
21 aboutbox = xmms_show_message(_("About Scrobbler Plugin"),
|
|
22 _(tmp),
|
|
23 _("Ok"), FALSE, NULL, NULL);
|
|
24
|
|
25 g_free(tmp);
|
|
26 gtk_signal_connect(GTK_OBJECT(aboutbox), "destroy",
|
|
27 GTK_SIGNAL_FUNC(gtk_widget_destroyed), &aboutbox);
|
|
28 }
|
|
29
|
|
30 void errorbox_show(char *errortxt)
|
|
31 {
|
|
32 gchar *tmp;
|
|
33
|
|
34 tmp = g_strdup_printf("There has been an error"
|
|
35 " that may require your attention.\n\n"
|
|
36 "Contents of server error:\n\n"
|
|
37 "%s\n",
|
|
38 errortxt);
|
|
39
|
696
|
40 xmms_show_message("Scrobbler Error",
|
688
|
41 tmp,
|
|
42 "OK", FALSE, NULL, NULL);
|
|
43 g_free(tmp);
|
|
44 }
|