wide characters in label




int main(int   argc, char *argv[] ){
	
	gtk_init (&argc, &argv);
	
    setlocale(LC_CTYPE, "UTF-8");
    GtkWidget *window=gtk_window_new (GTK_WINDOW_TOPLEVEL);
    GtkWidget *hbox=gtk_hbox_new (FALSE, 1);
	wchar_t wide[]=L"this is wide";
    GtkWidget *label=gtk_label_new(wide);
	gtk_container_add (GTK_CONTAINER (window), hbox);
	gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
	
	gtk_widget_show(label);
	gtk_widget_show_all (window);

	gtk_main ();
    
    
    return 0;
}
-- 
View this message in context: http://old.nabble.com/wide-characters-in-label-tp33926204p33926204.html
Sent from the Gtk+ - Dev - General mailing list archive at Nabble.com.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]