Re: GtkTreeView in VBox
- From: Stefan Kost <ensonic hora-obscura de>
- To: amolgkulkarni gmail com
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkTreeView in VBox
- Date: Sun, 17 Jan 2010 01:15:28 +0200
Am 07.01.2010 14:24, schrieb Amol Kulkarni:
Hi All,
Is it possible to add GtkTreeView inside VBox and then add that VBox to
ScrolledWindow using gtk_scrolled_window_add_with_viewport(sw,vbox).
GtkTreeView has inbuilt scrolling support hence it is expected to add it
directely to scrolledwindow using gtk_container_add but in some weird
case i want to pack treeview in vbox which will eventually be placed in
scrolledwindow.
It works fine for most of the cases but if i am having long list of
elements packed inside it then it behaves very randomly when my
scrolledwindow adjustment value is between some range [17000 - 27000] it
again works fine once adjustment moves beyond that.
Since i am not adding treeview directely to scrolledwindow treeview
adjustments and scrolledwindow adjustments may not be in sync but if i
manually set treeview adjustments then i get double scrolling [scrolled
window + treeview] which i don't want.
Is this expected/supported use case or am i doing something wrong here?
Thanks for your time.
What are the other things you put into the vbox? Maybe there is a better
solution. e.g. if you want two widgets side by side you an use:
vbox
scrolled window 1
treeview
scrolled window 2
your other widget
- then share the gtkadjustment of scrolled window 1 with scrolled window 2
- set scrollbar policies so that you see them just once
I have a short standalone example if thsi is what you want.
Stefan
--
Thanks and Regards,
Amol
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]