Mercurial > pidgin
comparison finch/libgnt/gntcheckbox.c @ 18872:85b155a574a3
libgnt.localize
Start working towards non-utf8 locale support.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 11 Aug 2007 04:18:14 +0000 |
parents | 1cedd520cd18 |
children | 7066896f6628 |
comparison
equal
deleted
inserted
replaced
18871:2e41a68009ba | 18872:85b155a574a3 |
---|---|
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 */ | 21 */ |
22 | 22 |
23 #include "gntcheckbox.h" | 23 #include "gntcheckbox.h" |
24 #include "gntutils.h" | |
24 | 25 |
25 enum | 26 enum |
26 { | 27 { |
27 SIG_TOGGLED = 1, | 28 SIG_TOGGLED = 1, |
28 SIGS, | 29 SIGS, |
152 | 153 |
153 GntWidget *gnt_check_box_new(const char *text) | 154 GntWidget *gnt_check_box_new(const char *text) |
154 { | 155 { |
155 GntWidget *widget = g_object_new(GNT_TYPE_CHECK_BOX, NULL); | 156 GntWidget *widget = g_object_new(GNT_TYPE_CHECK_BOX, NULL); |
156 | 157 |
158 text = gnt_util_localize_string(text); | |
157 GNT_BUTTON(widget)->priv->text = g_strdup(text); | 159 GNT_BUTTON(widget)->priv->text = g_strdup(text); |
158 gnt_widget_set_take_focus(widget, TRUE); | 160 gnt_widget_set_take_focus(widget, TRUE); |
159 | 161 |
160 return widget; | 162 return widget; |
161 } | 163 } |