finch/libgnt/gntcheckbox.c

changeset 19235
a6b00192295b
parent 19234
8d049f26f06a
child 19859
71d37b57eff2
equal deleted inserted replaced
19234:8d049f26f06a 19235:a6b00192295b
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"
25 24
26 enum 25 enum
27 { 26 {
28 SIG_TOGGLED = 1, 27 SIG_TOGGLED = 1,
29 SIGS, 28 SIGS,
153 152
154 GntWidget *gnt_check_box_new(const char *text) 153 GntWidget *gnt_check_box_new(const char *text)
155 { 154 {
156 GntWidget *widget = g_object_new(GNT_TYPE_CHECK_BOX, NULL); 155 GntWidget *widget = g_object_new(GNT_TYPE_CHECK_BOX, NULL);
157 156
158 text = gnt_util_localize_string(text);
159 GNT_BUTTON(widget)->priv->text = g_strdup(text); 157 GNT_BUTTON(widget)->priv->text = g_strdup(text);
160 gnt_widget_set_take_focus(widget, TRUE); 158 gnt_widget_set_take_focus(widget, TRUE);
161 159
162 return widget; 160 return widget;
163 } 161 }

mercurial