Mercurial > pidgin
comparison console/libgnt/gntutils.c @ 14417:64e28f46c695
[gaim-migrate @ 17125]
This should fix the problem where multi-column characters would screw up
a window-title.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 02 Sep 2006 06:24:50 +0000 |
parents | 71666c137a07 |
children | 010d8433db81 |
comparison
equal
deleted
inserted
replaced
14416:eeca8be382a5 | 14417:64e28f46c695 |
---|---|
2 | 2 |
3 #include <stdlib.h> | 3 #include <stdlib.h> |
4 #include <string.h> | 4 #include <string.h> |
5 #include <wchar.h> | 5 #include <wchar.h> |
6 | 6 |
7 #ifndef __USE_XOPEN | 7 #include "config.h" |
8 | |
9 #ifndef HAVE_WCWIDTH | |
8 #define wcwidth(X) 1 | 10 #define wcwidth(X) 1 |
9 #endif | 11 #endif |
10 | 12 |
11 void gnt_util_get_text_bound(const char *text, int *width, int *height) | 13 void gnt_util_get_text_bound(const char *text, int *width, int *height) |
12 { | 14 { |