scroll window not able to scroll down automatically



hello,

I am using C language and code is as follows:

     GtkAdjustment *vadjust;
     vadjust = gtk_scrolled_window_get_vadjustment(scrolled_window_log);
     gtk_adjustment_set_value(vadjust,gtk_adjustment_get_upper(vadjust)-gtk_adjustment_get_page_size(vadjust));
     gtk_scrolled_window_set_vadjustment(scrolled_window_log,vadjust);

I am using tree view for maintaining logs. After new iters are being added to the tree view, I am calling the above code. I am not seeing the window getting scrolled down automatically.

can some body please help me in tracing the problem in above lines of code ?

Thanks & Regards
--
Lokesh.


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