Hello List,
I am using Gtk2.2 to develop a text editor. In my
editor, I am using scrolled window and GtkTextView object is attached to
scrolled window by following function
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(sw),GTK_WIDGET(text));
scrolled windows has policies as
GTK_POLICY_AUTOMATIC for horizontal scrollbars and GTK_POLICY_ALWAYS for
vertical scrollbars.
when i load small files that have no of lines less
than 30, everything works fine but when I load large files whose no of lines are
greater than 30, vertical scrollbar does not work and I can only see the portion
of file from line 1 to line 30. Whereas in this case also horizontal scrollbars
work pretty fine. I am not able to figure out what is the problem.
Can anyone tell me what additional i should do in t
his case so as to make vertical scrollbars work?
Waiting for response,
Regards,
Vikram
|