diff src/notify.c @ 6465:fb64cc87bc96

[gaim-migrate @ 6974] open_url() is gone forever! WOOHOO! Now we have gaim_notify_uri(). Oh, and whitespace changes in some files, because they just really bugged me. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 14 Aug 2003 03:55:13 +0000
parents e006685f75aa
children feb3d21a7794
line wrap: on
line diff
--- a/src/notify.c	Thu Aug 14 03:28:17 2003 +0000
+++ b/src/notify.c	Thu Aug 14 03:55:13 2003 +0000
@@ -5,7 +5,7 @@
  * gaim
  *
  * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org>
- * 
+ *
  * 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
@@ -153,6 +153,31 @@
 	return NULL;
 }
 
+void *
+gaim_notify_uri(void *handle, const char *uri)
+{
+	GaimNotifyUiOps *ops;
+
+	g_return_val_if_fail(uri != NULL, NULL);
+
+	ops = gaim_get_notify_ui_ops();
+
+	if (ops != NULL && ops->notify_uri != NULL) {
+		GaimNotifyInfo *info;
+
+		info            = g_new0(GaimNotifyInfo, 1);
+		info->type      = GAIM_NOTIFY_URI;
+		info->handle    = handle;
+		info->ui_handle = ops->notify_uri(uri);
+
+		handles = g_list_append(handles, info);
+
+		return info->ui_handle;
+	}
+
+	return NULL;
+}
+
 void
 gaim_notify_close(GaimNotifyType type, void *ui_handle)
 {