Mercurial > pidgin.yaz
view console/libgnt/gntutils.h @ 14755:811464ba52de
[gaim-migrate @ 17512]
Rocking patch (#1574228) from Richard Nelson (wabz) to fix the behaviour of the
status-windows for transient statuses. I butchered it a little, and might have
broke something in the process. I take the blames if this causes any problems.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 18 Oct 2006 04:00:27 +0000 |
parents | cfd5bcc06a7e |
children | 8a0cfee11af8 |
line wrap: on
line source
#include <glib.h> #include "gnt.h" #include "gntwidget.h" void gnt_util_get_text_bound(const char *text, int *width, int *height); /* excluding *end */ int gnt_util_onscreen_width(const char *start, const char *end); const char *gnt_util_onscreen_width_to_pointer(const char *str, int len, int *w); /* Inserts newlines in 'string' where necessary so that its onscreen width is * no more than 'maxw'. * 'maxw' can be <= 0, in which case the maximum screen width is considered. * * Returns a newly allocated string. */ char *gnt_util_onscreen_fit_string(const char *string, int maxw);