From: <kr_...@us...> - 2003-03-26 12:59:28
|
Update of /cvsroot/htoolkit/port/src/cbits/GTK In directory sc8-pr-cvs1:/tmp/cvs-serv30647/port/src/cbits/GTK Modified Files: Menu.c Log Message: Additional functions for menu item state Index: Menu.c =================================================================== RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Menu.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Menu.c 30 Jan 2003 23:09:46 -0000 1.3 --- Menu.c 26 Mar 2003 12:59:24 -0000 1.4 *************** *** 75,88 **** } ! void osSetMenuItemSelectState(MenuHandle parent, MenuHandle item, BOOL bState) { gtk_widget_set_sensitive(item,bState); }; ! void osSetCheckMenuItemState(MenuHandle parent, MenuHandle item, BOOL bState) { in_handler_flag++; gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(item), bState); in_handler_flag--; }; --- 75,98 ---- } ! void osSetMenuItemEnabled(MenuHandle parent, MenuHandle item, BOOL bState) { gtk_widget_set_sensitive(item,bState); }; ! BOOL osGetMenuItemEnabled(MenuHandle parent, MenuHandle item) ! { ! return GTK_WIDGET_SENSITIVE(item); ! }; ! ! void osSetMenuItemChecked(MenuHandle parent, MenuHandle item, BOOL bState) { in_handler_flag++; gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(item), bState); in_handler_flag--; + }; + + BOOL osGetMenuItemChecked(MenuHandle parent, MenuHandle item) + { + return gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(item)); }; |