summary refs log tree commit diff stats
path: root/src/fe-gtk/notifications/notification-windows.c
diff options
context:
space:
mode:
authorMark Jansen <learn0more@gmail.com>2017-04-06 00:10:53 +0200
committerTingPing <tingping@tingping.se>2017-04-28 07:33:36 -0400
commitec94565cb90134dfedd585a45c8266cc2e21ef4c (patch)
tree35d5a821b92fbd6d5c646881d369578975e3a069 /src/fe-gtk/notifications/notification-windows.c
parent552b2b1315b45286b063e99510d6d6cb1b6f7575 (diff)
winrt: Show some exceptions
Diffstat (limited to 'src/fe-gtk/notifications/notification-windows.c')
-rw-r--r--src/fe-gtk/notifications/notification-windows.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fe-gtk/notifications/notification-windows.c b/src/fe-gtk/notifications/notification-windows.c
index 3fade306..9033f36a 100644
--- a/src/fe-gtk/notifications/notification-windows.c
+++ b/src/fe-gtk/notifications/notification-windows.c
@@ -24,7 +24,7 @@
 #include <Windows.h>
 
 void (*winrt_notification_backend_show) (const char *title, const char *text) = NULL;
-int (*winrt_notification_backend_init) (void) = NULL;
+int (*winrt_notification_backend_init) (const char **error) = NULL;
 void (*winrt_notification_backend_deinit) (void) = NULL;
 int (*winrt_notification_backend_supported) (void) = NULL;
 
@@ -40,7 +40,7 @@ notification_backend_show (const char *title, const char *text)
 }
 
 int
-notification_backend_init (void)
+notification_backend_init (const char **error)
 {
 	UINT original_error_mode;
 	GModule *module;
@@ -53,6 +53,7 @@ notification_backend_init (void)
 
 	if (module == NULL)
 	{
+		*error = "hcnotifications-winrt not found.";
 		return 0;
 	}
 
@@ -61,7 +62,7 @@ notification_backend_init (void)
 	g_module_symbol (module, "notification_backend_deinit", (gpointer *) &winrt_notification_backend_deinit);
 	g_module_symbol (module, "notification_backend_supported", (gpointer *) &winrt_notification_backend_supported);
 
-	return winrt_notification_backend_init ();
+	return winrt_notification_backend_init (error);
 }
 
 void