Re: code work wrong when i put it in gtk+ application

2009-11-12 Thread Carlos Pereira
As Tor already said, you can disable locale settings (and then everything will work as 15.00 in every country, not 15,00) with gtk_disable_setlocale (), before starting gtk: gtk_disable_setlocale (); gtk_init (argc, argv); Carlos After i updated my system my previously working gtk+

Re: code work wrong when i put it in gtk+ application

2009-11-12 Thread Tadej Borovšak
Hello. What about using g_ascii_* family of functions to do C locale compliant conversion. g_ascii_strtod seems to be the function you could use. Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com ___

Re: Control what happens when GtkTextView is resized: keep the bottom part visible

2009-11-12 Thread Todor Todorov
Bind a callback to the size-allocate signal of the scrolled window: #include gtk/gtk.h void cb_autoscroll_to_end( GtkWidget* widget, GtkAllocation* allocation, gpointer user_data) { GtkAdjustment*vericalAdjust; GtkAllocation hscrollAlloc; GtkWidget *hscrollBar;