dmenu.c (161060) | dmenu.c (161099) |
---|---|
1/* | 1/* |
2 * $FreeBSD: head/usr.sbin/sade/dmenu.c 161060 2006-08-07 23:35:49Z netchild $ | 2 * $FreeBSD: head/usr.sbin/sade/dmenu.c 161099 2006-08-08 13:45:46Z delphij $ |
3 * 4 * Copyright (c) 1995 5 * Jordan Hubbard. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 224 unchanged lines hidden (view full) --- 235 } 236 free(copy); 237 return res && init; 238} 239 240int 241dmenuRadioCheck(dialogMenuItem *item) 242{ | 3 * 4 * Copyright (c) 1995 5 * Jordan Hubbard. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 224 unchanged lines hidden (view full) --- 235 } 236 free(copy); 237 return res && init; 238} 239 240int 241dmenuRadioCheck(dialogMenuItem *item) 242{ |
243 return (*((unsigned int *)item->data) == item->aux); | 243 return (*((long *)item->data) == item->aux); |
244} 245 246static int 247menu_height(DMenu *menu, int n) 248{ 249 int max; 250 char *t; 251 --- 63 unchanged lines hidden --- | 244} 245 246static int 247menu_height(DMenu *menu, int n) 248{ 249 int max; 250 char *t; 251 --- 63 unchanged lines hidden --- |