Mercurial > dwindows
comparison gtk/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 | 48172881415c |
comparison
equal
deleted
inserted
replaced
2132:42f8ad7a89e8 | 2133:2090d7f46de5 |
---|---|
1994 snprintf(textbuf, 100, "dw-notification-%llu-data", DW_POINTER_TO_ULONGLONG(g_variant_get_uint64(param))); | 1994 snprintf(textbuf, 100, "dw-notification-%llu-data", DW_POINTER_TO_ULONGLONG(g_variant_get_uint64(param))); |
1995 data = g_object_get_data(G_OBJECT(_DWApp), textbuf); | 1995 data = g_object_get_data(G_OBJECT(_DWApp), textbuf); |
1996 g_object_set_data(G_OBJECT(_DWApp), textbuf, NULL); | 1996 g_object_set_data(G_OBJECT(_DWApp), textbuf, NULL); |
1997 | 1997 |
1998 if(func) | 1998 if(func) |
1999 func((HWND)g_variant_get_uint64(param), data); | 1999 func((HWND)DW_ULONGLONG_TO_POINTER(g_variant_get_uint64(param)), data); |
2000 } | 2000 } |
2001 #endif | 2001 #endif |
2002 | 2002 |
2003 /* | 2003 /* |
2004 * Initializes the Dynamic Windows engine. | 2004 * Initializes the Dynamic Windows engine. |
2127 | 2127 |
2128 #if GLIB_CHECK_VERSION(2,28,0) | 2128 #if GLIB_CHECK_VERSION(2,28,0) |
2129 if(!_dw_app_id[0]) | 2129 if(!_dw_app_id[0]) |
2130 { | 2130 { |
2131 /* Generate an Application ID based on the PID if all else fails. */ | 2131 /* Generate an Application ID based on the PID if all else fails. */ |
2132 snprintf(_dw_app_id, _DW_APP_ID_SIZE, "%s.pid.%d", DW_APP_DOMAIN_DEFAULT, getpid()); | 2132 snprintf(_dw_app_id, _DW_APP_ID_SIZE, "%s.pid.%d", DW_APP_DOMAIN_DEFAULT, (int)getpid()); |
2133 } | 2133 } |
2134 | 2134 |
2135 /* Initialize the application subsystem on supported versions... | 2135 /* Initialize the application subsystem on supported versions... |
2136 * we generate an application ID based on the binary name or PID | 2136 * we generate an application ID based on the binary name or PID |
2137 * instead of passing NULL to enable full application support. | 2137 * instead of passing NULL to enable full application support. |
12396 | 12396 |
12397 if(icon) | 12397 if(icon) |
12398 g_notification_set_icon(notification, G_ICON(icon)); | 12398 g_notification_set_icon(notification, G_ICON(icon)); |
12399 } | 12399 } |
12400 } | 12400 } |
12401 g_notification_set_default_action_and_target(notification, "app.notification", "t", (guint64)notification); | 12401 g_notification_set_default_action_and_target(notification, "app.notification", "t", |
12402 (guint64)DW_POINTER_TO_ULONGLONG(notification)); | |
12402 } | 12403 } |
12403 return (HWND)notification; | 12404 return (HWND)notification; |
12404 #else | 12405 #else |
12405 return NULL; | 12406 return NULL; |
12406 #endif | 12407 #endif |