diff plugins/notify.c @ 5436:ad445074d239

[gaim-migrate @ 5818] Another big commit. Ugh. I need a very smart regexp. Core/UI split do_error_dialog(), and soon the mail dialogs! Yay! This should work without problems at all, but standard disclaimer.. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 18 May 2003 19:59:02 +0000
parents fefad67de2c7
children 2c4c975620f0
line wrap: on
line diff
--- a/plugins/notify.c	Sun May 18 19:13:21 2003 +0000
+++ b/plugins/notify.c	Sun May 18 19:59:02 2003 +0000
@@ -49,6 +49,8 @@
 #define METHOD_URGENT		0x00000004
 #define METHOD_COUNT		0x00000008
 
+static GaimPlugin *my_plugin = NULL;
+
 void *handle;
 GtkWidget *Entry;
 gchar *title_string;
@@ -436,7 +438,9 @@
 
 	snprintf(buf, 1000, "%s/.gaim/.notify", getenv("HOME"));
 	if (!(fp = fopen(buf, "w"))) {
-		do_error_dialog(_("Unable to write to config file"), _("Notify plugin"), GAIM_ERROR);
+		gaim_notify_error(my_plugin, NULL,
+						  _("Unable to write to config file"),
+						  _("Notify plugin"));
 		return;
 	}
 
@@ -712,6 +716,7 @@
 static void
 __init_plugin(GaimPlugin *plugin)
 {
+	my_plugin = plugin;
 }
 
 GAIM_INIT_PLUGIN(notify, __init_plugin, info);