Mercurial > pidgin.yaz
comparison finch/libgnt/gntcombobox.c @ 28984:a18f421696dc
Fix showing umlauts etc. on non-utf8 locales.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 20 Nov 2009 21:45:44 +0000 |
parents | c67d43408daa |
children | 6943aec8cf61 |
comparison
equal
deleted
inserted
replaced
28983:8356e2f2486a | 28984:a18f421696dc |
---|---|
18 * You should have received a copy of the GNU General Public License | 18 * You should have received a copy of the GNU General Public License |
19 * along with this program; if not, write to the Free Software | 19 * along with this program; if not, write to the Free Software |
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA | 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
21 */ | 21 */ |
22 | 22 |
23 #include "gntinternal.h" | |
23 #include "gntbox.h" | 24 #include "gntbox.h" |
24 #include "gntcombobox.h" | 25 #include "gntcombobox.h" |
25 #include "gnttree.h" | 26 #include "gnttree.h" |
26 #include "gntmarshal.h" | 27 #include "gntmarshal.h" |
27 #include "gntutils.h" | 28 #include "gntutils.h" |
88 wbkgdset(widget->window, '\0' | gnt_color_pair(type)); | 89 wbkgdset(widget->window, '\0' | gnt_color_pair(type)); |
89 | 90 |
90 s = (char*)gnt_util_onscreen_width_to_pointer(text, widget->priv.width - 4, &len); | 91 s = (char*)gnt_util_onscreen_width_to_pointer(text, widget->priv.width - 4, &len); |
91 *s = '\0'; | 92 *s = '\0'; |
92 | 93 |
93 mvwaddstr(widget->window, 1, 1, text); | 94 mvwaddstr(widget->window, 1, 1, C_(text)); |
94 whline(widget->window, ' ' | gnt_color_pair(type), widget->priv.width - 4 - len); | 95 whline(widget->window, ' ' | gnt_color_pair(type), widget->priv.width - 4 - len); |
95 mvwaddch(widget->window, 1, widget->priv.width - 3, ACS_VLINE | gnt_color_pair(GNT_COLOR_NORMAL)); | 96 mvwaddch(widget->window, 1, widget->priv.width - 3, ACS_VLINE | gnt_color_pair(GNT_COLOR_NORMAL)); |
96 mvwaddch(widget->window, 1, widget->priv.width - 2, ACS_DARROW | gnt_color_pair(GNT_COLOR_NORMAL)); | 97 mvwaddch(widget->window, 1, widget->priv.width - 2, ACS_DARROW | gnt_color_pair(GNT_COLOR_NORMAL)); |
97 wmove(widget->window, 1, 1); | 98 wmove(widget->window, 1, 1); |
98 | 99 |