]> Pileus Git - ~andy/gtk/commit
notebook: allow using different padding values for the active tab state
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 27 Sep 2011 16:55:05 +0000 (12:55 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 27 Sep 2011 17:43:21 +0000 (13:43 -0400)
commit2500a95fada7a238bcb831a826650bb1ddd0b07b
tree897763b98911eb24b9c7f7ddc913fc3f201f4d83
parentd4f83cdfb61a6d781d91557c54be398b9dcbe300
notebook: allow using different padding values for the active tab state

The code before was basically adding and removing the same padding value
in two different places during the allocation cycle.
Instead, what we want to do is to offset the inactive tab allocation by
the difference with the active tab padding, to ensure the tab content is
always drawn centered and in the right position.

https://bugzilla.gnome.org/show_bug.cgi?id=659777
gtk/gtknotebook.c