David King
2454522b26
stack: Use g_object_class_install_properties()
...
https://bugzilla.gnome.org/show_bug.cgi?id=711611
2013-11-09 10:45:06 -05:00
Jasper St. Pierre
4f7170fd56
stack: Fix the slide animation if the child has a non-zero allocation position
...
This can happen if the child has a margin, for instance.
2013-11-01 01:53:20 -04:00
Jasper St. Pierre
3e836dd9fc
stack: Scope some variables so that the code is clearer
...
... that the allocation magic here is for the transition of the
last visible child that's sliding out.
2013-11-01 01:53:20 -04:00
Jasper St. Pierre
ee8b3efbcf
stack: Remove some confusing whitespace
2013-10-09 18:29:41 -04:00
David King
5f61183158
stack: Warn when setting a visible child which is not in the stack
...
https://bugzilla.gnome.org/show_bug.cgi?id=709613
2013-10-08 10:55:29 +01:00
Matthias Clasen
98b78ed5da
GtkStack: Add more transition types
...
This adds new 'over' and 'under' transitions which work by moving
the new page over the previous one, or moving the previous page off
to reveal the new one. We also add an over/under combination that
is going to be used in GtkAboutDialog.
https://bugzilla.gnome.org/show_bug.cgi?id=707187
2013-09-25 23:54:12 -04:00
Paolo Borelli
e59c28743a
Add a needs-attention child property to GtkStack
...
The child property is watched by the StackSwicther which in turns sets a
needs-attention css class on the corresponding button, so that the theme
can for instance show a throbbing animation if one of the hidden pages
needs the user attention.
https://bugzilla.gnome.org/show_bug.cgi?id=707153
2013-09-25 22:34:22 -04:00
Emmanuele Bassi
0899ef7cc9
gtk: Use new macros for defining private data
...
https://bugzilla.gnome.org/show_bug.cgi?id=702996
2013-07-09 09:30:02 +01:00
Alexander Larsson
e12d3cea47
stack: Use normal opacity groups rather than weird ones in GtkWidget
...
Since we now do all drawing propagation on the cairo_t (rather than
exposing multiple independent times on the GdkWindows) we no longer
need the opacity 0.999 hack.
2013-07-04 13:30:51 +02:00
Alexander Larsson
06a808cf2a
stack: Use new private model, remove priv pointer
2013-07-02 13:43:20 +02:00
Alexander Larsson
264cbc9e35
GtkStack: Switch order on left/right up/down transitions.
...
When the new child is on the left, scroll right. This makes the
thing look physically "real".
2013-06-13 20:55:05 +02:00
Alexander Larsson
418ac673a3
GtkStack: Fix drawing of sliding
...
We were not drawing the view window, so the old widget
was clipped for the sliding transitions.
2013-06-13 20:50:41 +02:00
Erick Pérez Castellanos
33a1c4d6e0
GtkStack: Add position-dependent slide transitions
...
These go left/right or up/down depending on the relative
order of the children being switched between.
2013-06-13 20:33:42 +02:00
Alexander Larsson
e2c8a95af6
GtkStack: Fix double-draw in crossfade
...
We should only draw the cross-fade on the bin window, not doing this
was causing us to draw it multiple times using ADD which resulted
in weird colors.
2013-05-07 16:40:24 +02:00
Matthias Clasen
8dc090b9b1
GtkStack: improve docs
2013-04-24 22:07:09 -04:00
Cosimo Cecchi
d82257e1c8
stack: fix a typo in docs
2013-04-22 11:20:06 -04:00
Matthias Clasen
b88c0d7387
Typo fix in GtkStack docs
2013-04-22 10:25:30 -04:00
Matthias Clasen
6186429f5f
GtkStack: shorten a few parameter names
...
Looks better in the docs.
2013-04-21 23:13:16 -04:00
Matthias Clasen
a8123bf95e
Forgot one place
...
Also change the property definition for transition-duration
to be uint instead of int.
2013-04-21 22:24:54 -04:00
Matthias Clasen
b0cf4d057d
Make transition-duration unsigned
...
The code doesn't deal with negative durations, so better
don't allow them.
2013-04-21 21:51:28 -04:00
Matthias Clasen
71f1f768cc
Change transition-type property type
...
This is an enum, so declare the property as such.
2013-04-21 21:51:27 -04:00
Matthias Clasen
85ccb93b9f
GtkStack: warn if child names are not unique
2013-04-21 21:51:27 -04:00
Matthias Clasen
c37b30f317
GtkStack: add vertical slide transitions
...
We allow transitions that slide up or down.
2013-04-21 21:51:26 -04:00
Matthias Clasen
88cd26575d
GtkStack: rtl flipping for animation
...
We switch slide-right and slight-left when in rtl.
2013-04-21 21:51:25 -04:00
Matthias Clasen
e72a78c4e6
Add a way to specify transition types on the fly
...
Add a gtk_stack_set_visible_child_full that takes a
transition type.
2013-04-21 21:51:25 -04:00
Matthias Clasen
06f5b1e572
Add docs for GtkStack
2013-04-21 21:51:24 -04:00
Matthias Clasen
2e39c4bab8
Add GtkStack
...
Add separate GtkStack and GtkStackSwitcher widgets that are an
alternative to GtkNotebook. Additionally, GtkStack supports
animated transitions when changing pages.
These widgets were initially developed in libgd.
2013-04-21 21:51:24 -04:00