Re: hooking spinner to GtkSidebar page transition
- From: Emmanuele Bassi <ebassi gmail com>
- To: Daiki Ueno <ueno gnu org>
- Cc: GTK Devel List <gtk-devel-list gnome org>
- Subject: Re: hooking spinner to GtkSidebar page transition
- Date: Sat, 20 Dec 2014 14:48:04 +0000
hi;
this is more of a question for gtk-app-devel-list than for
gtk-devel-list. nevertheless…
On 18 December 2014 at 09:31, Daiki Ueno <ueno gnu org> wrote:
To reduce the startup time, the application delays populating a page
widget in GtkStack until the first time it is displayed, and it
sometimes takes time. So, until the page widget becomes ready, the
application shows a placeholder page with a spinner.
So, my question is, is there any easy way to inject the phase 2 into the
page transition of GtkSidebar?
there's no real need to "inject" a second transition. since you're
already using a GtkStack, you can use an unnamed page holding the
GtkSpinner, and show it by default while loading the other pages in
the background.
alternatively, you can place the whole sidebar + stack into another
stack, and have a separate page with the spinner inside that.
ciao,
Emmanuele.
--
http://www.bassi.io
[ ] ebassi [ gmail com]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]