Mercurial > hg > xemacs-beta
comparison src/dialog-msw.c @ 290:c9fe270a4101 r21-0b43
Import from CVS: tag r21-0b43
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:36:47 +0200 |
parents | e11d67e05968 |
children | a4f53d9b3154 |
comparison
equal
deleted
inserted
replaced
289:6e6992ccc4b6 | 290:c9fe270a4101 |
---|---|
172 uni_string, sizeof(WCHAR) * (length + 1)); | 172 uni_string, sizeof(WCHAR) * (length + 1)); |
173 Dynarr_add_many (dynarr, uni_string, sizeof(WCHAR) * length); | 173 Dynarr_add_many (dynarr, uni_string, sizeof(WCHAR) * length); |
174 } | 174 } |
175 | 175 |
176 /* Given button TEXT, return button width in DLU */ | 176 /* Given button TEXT, return button width in DLU */ |
177 static inline unsigned int | 177 static unsigned int |
178 button_width (Lisp_Object text) | 178 button_width (Lisp_Object text) |
179 { | 179 { |
180 unsigned int width = X_DLU_PER_CHAR * XSTRING_CHAR_LENGTH (text); | 180 unsigned int width = X_DLU_PER_CHAR * XSTRING_CHAR_LENGTH (text); |
181 return max (X_MIN_BUTTON, width); | 181 return max (X_MIN_BUTTON, width); |
182 } | 182 } |