Mercurial > dwindows
comparison gtk3/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 |
---|---|
11776 | 11776 |
11777 /* | 11777 /* |
11778 * Sets the application ID used by this Dynamic Windows application instance. | 11778 * Sets the application ID used by this Dynamic Windows application instance. |
11779 * Parameters: | 11779 * Parameters: |
11780 * appid: A string typically in the form: com.company.division.application | 11780 * appid: A string typically in the form: com.company.division.application |
11781 * appguid: A globally unique identifier required on Windows or NULL. | 11781 * appname: The application name used on Windows or NULL. |
11782 * Returns: | 11782 * Returns: |
11783 * DW_ERROR_NONE after successfully setting the application ID. | 11783 * DW_ERROR_NONE after successfully setting the application ID. |
11784 * DW_ERROR_UNKNOWN if unsupported on this system. | 11784 * DW_ERROR_UNKNOWN if unsupported on this system. |
11785 * DW_ERROR_GENERAL if the application ID is not allowed. | 11785 * DW_ERROR_GENERAL if the application ID is not allowed. |
11786 * Remarks: | 11786 * Remarks: |
11787 * This must be called before dw_init(). If dw_init() is called first | 11787 * This must be called before dw_init(). If dw_init() is called first |
11788 * it will create a unique ID in the form: org.dbsoft.dwindows.application | 11788 * it will create a unique ID in the form: org.dbsoft.dwindows.application |
11789 * or if the application name cannot be detected: org.dbsoft.dwindows.pid.# | 11789 * or if the application name cannot be detected: org.dbsoft.dwindows.pid.# |
11790 * The GUID is only required on Windows, NULL can be passed on other platforms. | 11790 * The appname is only required on Windows. If NULL is passed the detected |
11791 */ | 11791 * application name will be used, but a prettier name may be desired. |
11792 int dw_app_id_set(const char *appid, const char *appguid) | 11792 */ |
11793 int dw_app_id_set(const char *appid, const char *appname) | |
11793 { | 11794 { |
11794 #if GLIB_CHECK_VERSION(2,28,0) | 11795 #if GLIB_CHECK_VERSION(2,28,0) |
11795 if(g_application_id_is_valid(appid)) | 11796 if(g_application_id_is_valid(appid)) |
11796 { | 11797 { |
11797 strncpy(_dw_app_id, appid, 100); | 11798 strncpy(_dw_app_id, appid, 100); |