- 07 Oct, 2018 1 commit
-
-
The gtk_stack_snapshot_slide() function dereferences the last_visible_child pointer without proper != NULL ckeck. This might result in NULL pointer dereference and crash if last_visible_child is invalid. Add a != NULL check before dereferencing the pointer. cherry-picked from !361
-
- 19 Apr, 2018 1 commit
-
-
Marco Trevisan authored
Return with error if gtk_stack_set_visible_child_name is called with NULL parameter
-
- 14 Nov, 2016 1 commit
-
-
Olivier Fourdan authored
Unlike other container widgets, GtkStack would allocate its children prior to moving its windows, which might prevent further valid size allocation signals to be emitted. Re-order the size allocation of child widgets to be performed after moving the GtkStack windows. Thanks to Owen for spotting the real issue here. https://bugzilla.gnome.org/show_bug.cgi?id=767713
-
- 30 May, 2016 1 commit
-
-
Timm Bäder authored
Show only the currently visible child to a11y.
-
- 20 May, 2016 1 commit
-
-
Florian Müllner authored
gtk_widget_set_parent() will map the widget if the parent is mapped and the widget is both visible and child-visible. As we currently only set the child visibility after adding the child, we immediately map all children that are added to a mapped stack, even when they are not actually shown. Avoid this by setting the child visibility before adding the child, so widgets are only mapped when shown. https://bugzilla.gnome.org/show_bug.cgi?id=766737
-
- 16 May, 2016 1 commit
-
-
Matt Watson authored
Sometimes on wayland we're seeing a frame draw before the first tick callback, where the window position has not yet been updated. With this change, the window is properly positioned as soon as gtk_stack_start_transition returns. https://bugzilla.gnome.org/show_bug.cgi?id=766405
-
- 12 May, 2016 2 commits
-
-
Timm Bäder authored
-
Timm Bäder authored
-
- 01 May, 2016 1 commit
-
-
Matthias Clasen authored
-
- 08 Apr, 2016 2 commits
-
-
Matt Watson authored
Not the ideal solution for this problem, but in practice leads to much better performance on lower end hardware. Stack does a double draw on the first frame of its animation, of both the old contents (into a cairo surface) and the new contents. Homogeneous stacks only need to reallocate contents on the first frame. On lower powered hardware where our frames will be a good deal slower than the refresh rate anyway, we can assure a smother experience by waiting a frame to start tweening where frame duration will be more consistent.
-
Matt Watson authored
-
- 21 Mar, 2016 1 commit
-
-
When animating, we might be changing the size allocation of the previous stack child. However, we were not querying the size in the process meaning you would often see warnings about allocating the size without knowing what it should be. This simply adds an innocuous size request, since responding to last_child sizing requests is not all that critical in the transition. https://bugzilla.gnome.org/show_bug.cgi?id=763900
-
- 28 Feb, 2016 1 commit
-
-
Matthias Clasen authored
g_logv adds one for us already.
-
- 08 Feb, 2016 1 commit
-
-
Timm Bäder authored
Always have Since: annotations at the very bottom, use the correct ClassName::signal-name/ClassName:property-name syntax, fix a few typos in type names, wrong function names, non-existing type names, etc.
-
- 26 Jan, 2016 2 commits
-
-
Benjamin Otte authored
-
Benjamin Otte authored
Having priv->view_window be the same as widget->window does not make sense. And because we need to clip the content area, we need the view window.
-
- 22 Jan, 2016 1 commit
-
-
Benjamin Otte authored
We use cairo_paint() when doing that and we don't want to overdraw the content area.
-
- 19 Jan, 2016 1 commit
-
-
Marek Černocký authored
-
- 15 Dec, 2015 2 commits
-
-
Matthias Clasen authored
-
Matthias Clasen authored
-
- 11 Dec, 2015 1 commit
-
-
In gtk_stack_set_transition_position we should only need to queue_resize if we are non-homogeneous, which is already done earlier in the function.
-
- 30 Nov, 2015 1 commit
-
-
Matthias Clasen authored
Doing things the other way around seems to cause problems in some cases where children want to do different things depending on the window position. https://bugzilla.gnome.org/show_bug.cgi?id=758563
-
- 24 Nov, 2015 1 commit
-
-
Timm Bäder authored
-
- 19 Nov, 2015 1 commit
-
-
Currently GtkStack has some G_PARAM_CONSTRUCT properties. That means, the properties are set with its default value after the initializacion of the object. When using GtkBuilder to build objects, GtkBuilder creates them and after that sets the properties found on the xml definition. However, this is not true for templates because the template is initialized in the init() function of the actual object, and after that, the construct properties will be set. This is a problem when someone wants to use templates with GtkStack and set those properties, since they will be set on the tempalt initialization and set again to its default values afterwards. To fix this, make those properties not G_PARAM_CONSTRUCT. https://bugzilla.gnome.org/show_bug.cgi?id=758086
-
- 09 Nov, 2015 1 commit
-
-
Matthias Clasen authored
make check checks this for writable properties, and fails now that we've made this property writable.
-
- 05 Nov, 2015 1 commit
-
-
Benjamin Otte authored
This is just a cleanup commit, no actual bug.
-
- 04 Nov, 2015 2 commits
-
-
Benjamin Otte authored
We only allocate a size to the currently visible child, so we obviously need to rerun allocation when the visible child changes. In the case where the stack is not homogenous, we also need to queue a resize because our size request just changed.
-
Matthias Clasen authored
And it is...stack.
-
- 03 Nov, 2015 1 commit
-
-
Christian Hergert authored
It looks like the param spec for interpolate-size was copied from the line above it, which is a read only property. There is a setter for interpolate-size, and it is implemented in set_property().
-
- 14 Sep, 2015 1 commit
-
-
Alexander Larsson authored
These days exposure happens only on the native windows (generally the toplevel window) and is propagated down recursively. The expose event is only useful for backwards compat, and in fact, for double buffered widgets we totally ignore the event (and non-double buffering breaks on wayland). So, by not setting the mask we avoid emitting these events and then later ignoring them. We still keep it on eventbox, fixed and layout as these are used in weird ways that want backwards compat.
-
- 08 Sep, 2015 1 commit
-
-
Matthias Clasen authored
-
- 09 Aug, 2015 1 commit
-
-
Matthias Clasen authored
-
- 05 Aug, 2015 1 commit
-
-
Matthias Clasen authored
-
- 20 Jul, 2015 2 commits
-
-
Ting-Wei Lan authored
-
Timm Bäder authored
And use it to determine whether we should actually interpolate between stack sizes or not.
-
- 23 Jun, 2015 1 commit
-
-
Matthias Clasen authored
We already have an in-destruction flag, so use it.
-
- 21 Jun, 2015 1 commit
-
-
When the stack is destroyed we do not want to waste time running animations and notifying listeners about which is our current visible child. This is not only an optimization, but it is important for the stack switcher widgets: since they are in another branch of the hieratchy we do not want to get notifications while the stack is being destroyed. Based on a patch by Paolo Borelli https://bugzilla.gnome.org/show_bug.cgi?id=724506
-
- 30 May, 2015 1 commit
-
-
Matthias Clasen authored
-
- 29 May, 2015 2 commits
-
-
Timm Bäder authored
-
Timm Bäder authored
We will call gtk_widget_queue_resize anyway later when finishing the (maybe non-running) transition, which will also cause the stack to be repainted.
-