Commit graph

28 commits

Author SHA1 Message Date
Guillaume Desmottes
360e782ad9 add get_child_at_y () public method 2012-06-04 13:49:51 +02:00
Guillaume Desmottes
6b6963465e add option to activate on double click 2012-06-01 12:14:24 +02:00
Guillaume Desmottes
f548c9de99 fix style in button_{press,release}_event
I hate mixing tabs and spaces...
2012-06-01 11:31:00 +02:00
Guillaume Desmottes
117d9e3c9e cache the iter while iterating over the children
The iter may be destroyed in the callback.
2012-05-29 16:04:45 +02:00
Alexander Larsson
6e5b00715c Update separators when visibility changes. 2012-05-25 14:15:04 +02:00
Alexander Larsson
7ece2dfcb5 Fix child_changed update_separator code
When we move a child, three childrens separators may be affected.
The moved child, the one after the new position, and the one
*after* the previous position (as it got a new before).

However, we were looking at the one before the previous location => bug.
2012-05-25 14:15:00 +02:00
Alexander Larsson
4f369213e3 Remove useless update_separator call on add
When we add a child the only separators affected are the new
child, and the one after that.
2012-05-25 14:14:54 +02:00
Alexander Larsson
eb56153b25 Test scrolled listbox not at top 2012-05-21 14:40:57 +02:00
Alexander Larsson
fbf0e16483 Support adjustments where the ListBox is not at top 2012-05-21 14:39:57 +02:00
Alexander Larsson
e713145454 Fix coordinates in size_allocate
We should not add allocation.x/y to the child, as we are a
window widget.
2012-05-21 14:34:49 +02:00
Alexander Larsson
a2d1672bf1 Set background of GdkWindow 2012-05-21 14:15:37 +02:00
Alexander Larsson
3747eb152d Track and properly remove separator widget children
We need to handle a separator child being destroyed any time, and we
need to properly unparent them when the main child for it is removed.
2012-05-21 11:00:49 +02:00
Alexander Larsson
046b399904 Clean up all .c files created from .vala files 2012-05-21 11:00:21 +02:00
Alexander Larsson
b4ce5aa07f Fix up test-scrolled build 2012-05-21 10:58:54 +02:00
Guillaume Desmottes
2f3e856f91 use GObject constructor
Needed to be able to subclass to object in C.
2012-05-21 09:50:33 +02:00
Guillaume Desmottes
df38a057af upadte .gitignore 2012-05-17 09:49:08 +02:00
Guillaume Desmottes
b8c72df8ff generate egg-list-box-uninstalled 2012-05-17 09:37:20 +02:00
Guillaume Desmottes
f6cae2e8b4 Build a static library
Easier to be use from C code.
2012-05-17 09:27:14 +02:00
Guillaume Desmottes
c25487f7c7 autogen.sh: add --no-configure option
Needed when hooking autogen in the autogen of a super project.
2012-05-16 17:27:07 +02:00
Alexander Larsson
736f1c9e3c Add set_adjustment to the API instead of relying on focus_vadjustment
Also, add a helper for adding to a GtkScrolledWindow
2012-05-16 14:44:05 +02:00
Alexander Larsson
09135fbb8f Avoid updating separators while not visible
This helps avoiding an O(n^2) add() loop where all child widgets
are non-visible during child addition, so we its quite expensive
to find the previous visible child.
2012-05-16 14:35:27 +02:00
Alexander Larsson
2e300a837a Initial version of test with scrolledwindow 2012-05-16 14:05:18 +02:00
Alexander Larsson
8d7860761c Make ChildInfo a class so we get rid of the by-value semantics
We were comparing equality by value, etc, and we had to use "?" everywhere to
work around value copying. Better just use a class.
2012-05-16 12:14:28 +02:00
Alexander Larsson
1c1809f01c Draw active child
Also, make sure we only draw each child once, even if its in multiple
states.
2012-05-16 11:22:24 +02:00
Alexander Larsson
cb626d6da8 Add tracking of active child 2012-05-16 11:22:13 +02:00
Alexander Larsson
3eba7f363e list-test: Add css to test prelight and active 2012-05-16 11:21:10 +02:00
Alexander Larsson
35e07a8fc3 (split) Add ListBox.select_child method 2012-05-15 14:11:57 +02:00
Alexander Larsson
744851ea2d Initial import
This is the inital version of the code from the gnome-contacts wip/sorted
branch, just renamed and restructured to work standalone
2012-05-15 12:22:24 +02:00