comparison dwtest.c @ 1795:9304241b7b33

Added new dw_window_set_focus() function and attempted to fix... Intial focus after a subsequent dw_window_show() on Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 24 Sep 2012 23:24:25 +0000
parents ed8851658015
children 9fb8339ae458
comparison
equal deleted inserted replaced
1794:97b1edb41d44 1795:9304241b7b33
1764 notebookpage9 = dw_notebook_page_new( notebook, 1, FALSE ); 1764 notebookpage9 = dw_notebook_page_new( notebook, 1, FALSE );
1765 dw_notebook_pack( notebook, notebookpage9, notebookbox9 ); 1765 dw_notebook_pack( notebook, notebookpage9, notebookbox9 );
1766 dw_notebook_page_set_text( notebook, notebookpage9, "thread/event"); 1766 dw_notebook_page_set_text( notebook, notebookpage9, "thread/event");
1767 thread_add(); 1767 thread_add();
1768 1768
1769 /* Set the default field */
1770 dw_window_default(mainwindow, copypastefield);
1771
1769 dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), DW_POINTER(mainwindow)); 1772 dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), DW_POINTER(mainwindow));
1770 timerid = dw_timer_connect(2000, DW_SIGNAL_FUNC(timer_callback), 0); 1773 timerid = dw_timer_connect(2000, DW_SIGNAL_FUNC(timer_callback), 0);
1771 dw_window_set_size(mainwindow, 640, 550); 1774 dw_window_set_size(mainwindow, 640, 550);
1772 dw_window_show(mainwindow); 1775 dw_window_show(mainwindow);
1773 1776