comparison dwtest.c @ 2031:c4fc33d70a8e

Mac: Removed delayed setNeedsDisplay:YES to fix the incorrect dwtest file rendering. This is working without proble on Catalina... need to retest on Mojave and perhaps reimplement the delay only for Mojave.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 15 Nov 2019 03:31:17 +0000
parents a9809db1ddbf
children 466cf00f409f
comparison
equal deleted inserted replaced
2030:2cbbbc850b8d 2031:c4fc33d70a8e
1745 HWND hwndstatus = (HWND)data; 1745 HWND hwndstatus = (HWND)data;
1746 char *statusnames[] = { "none", "started", "redirect", "loading", "complete", NULL }; 1746 char *statusnames[] = { "none", "started", "redirect", "loading", "complete", NULL };
1747 1747
1748 if(hwndstatus && url && status < 5) 1748 if(hwndstatus && url && status < 5)
1749 { 1749 {
1750 int length = strlen(url) + strlen(statusnames[status]) + 10; 1750 int length = (int)strlen(url) + (int)strlen(statusnames[status]) + 10;
1751 char *text = calloc(1, length+1); 1751 char *text = calloc(1, length+1);
1752 1752
1753 snprintf(text, length, "Status %s: %s", statusnames[status], url); 1753 snprintf(text, length, "Status %s: %s", statusnames[status], url);
1754 dw_window_set_text(hwndstatus, text); 1754 dw_window_set_text(hwndstatus, text);
1755 free(text); 1755 free(text);
1908 dw_window_default(mainwindow, copypastefield); 1908 dw_window_default(mainwindow, copypastefield);
1909 1909
1910 dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), DW_POINTER(mainwindow)); 1910 dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), DW_POINTER(mainwindow));
1911 /* 1911 /*
1912 * The following is a special case handler for the Mac and other platforms which contain 1912 * The following is a special case handler for the Mac and other platforms which contain
1913 * an application object which can be closed. It function identically to a window delete/close 1913 * an application object which can be closed. It functions identically to a window delete/close
1914 * request except it applies to the entire application not an individual window. If it is not 1914 * request except it applies to the entire application not an individual window. If it is not
1915 * handled or you allow the default handler to take place the entire application will close. 1915 * handled or you allow the default handler to take place the entire application will close.
1916 * On platforms which do not have an application object this line will be ignored. 1916 * On platforms which do not have an application object this line will be ignored.
1917 */ 1917 */
1918 dw_signal_connect(DW_DESKTOP, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), DW_POINTER(mainwindow)); 1918 dw_signal_connect(DW_DESKTOP, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), DW_POINTER(mainwindow));