Mercurial > dwindows
comparison gtk/dw.c @ 2088:94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
Update readme regarding WinToast support and in-source comments regarding the API.
Fix missing "API" calling conventions on OS/2 and Windows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 05 Jun 2020 16:27:00 +0000 |
parents | 24875681eec5 |
children | cdb94c6fd611 |
comparison
equal
deleted
inserted
replaced
2087:082d743f3214 | 2088:94ea915bd917 |
---|---|
13279 | 13279 |
13280 /* | 13280 /* |
13281 * Sets the application ID used by this Dynamic Windows application instance. | 13281 * Sets the application ID used by this Dynamic Windows application instance. |
13282 * Parameters: | 13282 * Parameters: |
13283 * appid: A string typically in the form: com.company.division.application | 13283 * appid: A string typically in the form: com.company.division.application |
13284 * appguid: A globally unique identifier required on Windows or NULL. | 13284 * appname: The application name used on Windows or NULL. |
13285 * Returns: | 13285 * Returns: |
13286 * DW_ERROR_NONE after successfully setting the application ID. | 13286 * DW_ERROR_NONE after successfully setting the application ID. |
13287 * DW_ERROR_UNKNOWN if unsupported on this system. | 13287 * DW_ERROR_UNKNOWN if unsupported on this system. |
13288 * DW_ERROR_GENERAL if the application ID is not allowed. | 13288 * DW_ERROR_GENERAL if the application ID is not allowed. |
13289 * Remarks: | 13289 * Remarks: |
13290 * This must be called before dw_init(). If dw_init() is called first | 13290 * This must be called before dw_init(). If dw_init() is called first |
13291 * it will create a unique ID in the form: org.dbsoft.dwindows.application | 13291 * it will create a unique ID in the form: org.dbsoft.dwindows.application |
13292 * or if the application name cannot be detected: org.dbsoft.dwindows.pid.# | 13292 * or if the application name cannot be detected: org.dbsoft.dwindows.pid.# |
13293 * The GUID is only required on Windows, NULL can be passed on other platforms. | 13293 * The appname is only required on Windows. If NULL is passed the detected |
13294 */ | 13294 * application name will be used, but a prettier name may be desired. |
13295 int dw_app_id_set(const char *appid, const char *appguid) | 13295 */ |
13296 int dw_app_id_set(const char *appid, const char *appname) | |
13296 { | 13297 { |
13297 #if GLIB_CHECK_VERSION(2,28,0) | 13298 #if GLIB_CHECK_VERSION(2,28,0) |
13298 if(g_application_id_is_valid(appid)) | 13299 if(g_application_id_is_valid(appid)) |
13299 { | 13300 { |
13300 strncpy(_dw_app_id, appid, 100); | 13301 strncpy(_dw_app_id, appid, 100); |