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 void cb_autoscroll_to_end( GtkWidget* widget, GtkAllocation* allocation, gpointer user_data) { GtkAdjustment*vericalAdjust; GtkAllocation hscrollAlloc; GtkWidget *hscrollBar; /* the h

Re: gtk-directfb-crash

2009-11-12 Thread Roger Cullumber
Thanks Moutusi. It seems that versions of GTK+-Directfb higher than 2.12 are broken or the DirectFB 1.4.2 version is not compatible with GTK 2.18 just yet. I've ended up installing the debian libgtk-directfb package. This has gtk+-2.12.12 and directfb 1.0.1. I was hoping to get working a ne

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 ___ gtk-app-dev

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