comparison os2/dw.c @ 2114:251d050d306b

Change dw_notification_new() to take an image path instead of an in-memory HPIXMAP. After examining all the platforms, several require the image to be on disk. It is easier to specify the path and load it on platforms requiring it in memory than to save it to disk on platforms that require it on disk. Currently it does not automatically pick an extension like some other functions, may need to add that feature here too soon. Only tested on Windows in this commit.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 23 Jun 2020 07:48:29 +0000
parents a3e176450077
children 663467f6eee4
comparison
equal deleted inserted replaced
2113:aaea278c2356 2114:251d050d306b
12394 12394
12395 /* 12395 /*
12396 * Creates a new system notification if possible. 12396 * Creates a new system notification if possible.
12397 * Parameters: 12397 * Parameters:
12398 * title: The short title of the notification. 12398 * title: The short title of the notification.
12399 * pixmap: Handle to an image to display or NULL if none. 12399 * imagepath: Path to an image to display or NULL if none.
12400 * description: A longer description of the notification, 12400 * description: A longer description of the notification,
12401 * or NULL if none is necessary. 12401 * or NULL if none is necessary.
12402 * Returns: 12402 * Returns:
12403 * A handle to the notification which can be used to attach a "clicked" event if desired, 12403 * A handle to the notification which can be used to attach a "clicked" event if desired,
12404 * or NULL if it fails or notifications are not supported by the system. 12404 * or NULL if it fails or notifications are not supported by the system.
12405 * Remarks: 12405 * Remarks:
12406 * This will create a system notification that will show in the notifaction panel 12406 * This will create a system notification that will show in the notifaction panel
12407 * on supported systems, which may be clicked to perform another task. 12407 * on supported systems, which may be clicked to perform another task.
12408 */ 12408 */
12409 HWND API dw_notification_new(const char *title, HPIXMAP pixmap, const char *description, ...) 12409 HWND API dw_notification_new(const char *title, const char *imagepath, const char *description, ...)
12410 { 12410 {
12411 return 0; 12411 return 0;
12412 } 12412 }
12413 12413
12414 /* 12414 /*