comparison gtk3/dw.c @ 2133:2090d7f46de5

GTK: Fix warnings on OpenSolaris using the new macros.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 04 Jul 2020 20:47:27 +0000
parents 42f8ad7a89e8
children df3ee6273557
comparison
equal deleted inserted replaced
2132:42f8ad7a89e8 2133:2090d7f46de5
1969 snprintf(textbuf, 100, "dw-notification-%llu-data", DW_POINTER_TO_ULONGLONG(g_variant_get_uint64(param))); 1969 snprintf(textbuf, 100, "dw-notification-%llu-data", DW_POINTER_TO_ULONGLONG(g_variant_get_uint64(param)));
1970 data = g_object_get_data(G_OBJECT(_DWApp), textbuf); 1970 data = g_object_get_data(G_OBJECT(_DWApp), textbuf);
1971 g_object_set_data(G_OBJECT(_DWApp), textbuf, NULL); 1971 g_object_set_data(G_OBJECT(_DWApp), textbuf, NULL);
1972 1972
1973 if(func) 1973 if(func)
1974 func((HWND)g_variant_get_uint64(param), data); 1974 func((HWND)DW_ULONGLONG_TO_POINTER(g_variant_get_uint64(param)), data);
1975 } 1975 }
1976 #endif 1976 #endif
1977 1977
1978 /* 1978 /*
1979 * Initializes the Dynamic Windows engine. 1979 * Initializes the Dynamic Windows engine.
2055 2055
2056 #if GLIB_CHECK_VERSION(2,28,0) 2056 #if GLIB_CHECK_VERSION(2,28,0)
2057 if(!_dw_app_id[0]) 2057 if(!_dw_app_id[0])
2058 { 2058 {
2059 /* Generate an Application ID based on the PID if all else fails. */ 2059 /* Generate an Application ID based on the PID if all else fails. */
2060 snprintf(_dw_app_id, _DW_APP_ID_SIZE, "%s.pid.%d", DW_APP_DOMAIN_DEFAULT, getpid()); 2060 snprintf(_dw_app_id, _DW_APP_ID_SIZE, "%s.pid.%d", DW_APP_DOMAIN_DEFAULT, (int)getpid());
2061 } 2061 }
2062 2062
2063 /* Initialize the application subsystem on supported versions... 2063 /* Initialize the application subsystem on supported versions...
2064 * we generate an application ID based on the binary name or PID 2064 * we generate an application ID based on the binary name or PID
2065 * instead of passing NULL to enable full application support. 2065 * instead of passing NULL to enable full application support.
11101 11101
11102 if(icon) 11102 if(icon)
11103 g_notification_set_icon(notification, G_ICON(icon)); 11103 g_notification_set_icon(notification, G_ICON(icon));
11104 } 11104 }
11105 } 11105 }
11106 g_notification_set_default_action_and_target(notification, "app.notification", "t", (guint64)notification); 11106 g_notification_set_default_action_and_target(notification, "app.notification", "t",
11107 (guint64)DW_POINTER_TO_ULONGLONG(notification));
11107 } 11108 }
11108 return (HWND)notification; 11109 return (HWND)notification;
11109 #else 11110 #else
11110 return NULL; 11111 return NULL;
11111 #endif 11112 #endif