Mercurial > audlegacy
changeset 696:997aaad077fb trunk
[svn] - Fix error box stuff.
author | nenolod |
---|---|
date | Sat, 25 Feb 2006 19:17:26 -0800 |
parents | f3595214b6b9 |
children | b6d775929ad4 |
files | Plugins/General/scrobbler/gtkstuff.c |
diffstat | 1 files changed, 1 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/General/scrobbler/gtkstuff.c Sat Feb 25 19:14:32 2006 -0800 +++ b/Plugins/General/scrobbler/gtkstuff.c Sat Feb 25 19:17:26 2006 -0800 @@ -9,7 +9,6 @@ #include "config.h" #include "md5.h" -static int errorbox_done; void about_show(void) { static GtkWidget *aboutbox; @@ -28,40 +27,18 @@ GTK_SIGNAL_FUNC(gtk_widget_destroyed), &aboutbox); } -static void set_errorbox_done(GtkWidget *errorbox, GtkWidget **errorboxptr) -{ - errorbox_done = -1; - gtk_widget_destroyed(errorbox, errorboxptr); -} - -void init_errorbox_done(void) -{ - errorbox_done = 1; -} - -int get_errorbox_done(void) -{ - return errorbox_done; -} - void errorbox_show(char *errortxt) { - static GtkWidget *errorbox; gchar *tmp; - if(errorbox_done != 1) - return; - errorbox_done = 0; 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); - errorbox = xmms_show_message("Scrobbler Error", + xmms_show_message("Scrobbler Error", tmp, "OK", FALSE, NULL, NULL); g_free(tmp); - gtk_signal_connect(GTK_OBJECT(errorbox), "destroy", - GTK_SIGNAL_FUNC(set_errorbox_done), &errorbox); }