From: <kr_...@us...> - 2003-03-26 15:40:22
|
Update of /cvsroot/htoolkit/port/src/cbits/GTK In directory sc8-pr-cvs1:/tmp/cvs-serv16051/port/src/cbits/GTK Modified Files: Window.c Log Message: This commit implements instances for Able type class for all kinds of windows and controls. Index: Window.c =================================================================== RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Window.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Window.c 3 Mar 2003 19:03:24 -0000 1.8 --- Window.c 26 Mar 2003 15:39:48 -0000 1.9 *************** *** 149,153 **** break; } ! return gtk_true(); } --- 149,153 ---- break; } ! return gtk_true(); } *************** *** 637,640 **** --- 637,650 ---- } + void osSetWindowEnabled(WindowHandle ctrl, BOOL enabled) + { + gtk_widget_set_sensitive(ctrl,enabled); + } + + BOOL osGetWindowEnabled(WindowHandle ctrl) + { + return GTK_WIDGET_SENSITIVE(ctrl); + } + CanvasHandle osGetWindowCanvas(WindowHandle window) { *************** *** 711,714 **** --- 721,734 ---- res[2] = requisition.width; res[3] = requisition.height; + } + + void osSetControlEnabled(WindowHandle ctrl, BOOL enabled) + { + gtk_widget_set_sensitive(ctrl,enabled); + } + + BOOL osGetControlEnabled(WindowHandle ctrl) + { + return GTK_WIDGET_SENSITIVE(ctrl); } |