[gnome-initial-setup] assistant-gtk: Use GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] assistant-gtk: Use GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT
- Date: Thu, 26 Sep 2013 00:05:06 +0000 (UTC)
commit 4df3f0767c5b3fe0bde9c783a8af55238b783203
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Sep 24 16:37:03 2013 -0400
assistant-gtk: Use GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT
gnome-initial-setup/gis-assistant-gtk.c | 20 ++------------------
1 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/gnome-initial-setup/gis-assistant-gtk.c b/gnome-initial-setup/gis-assistant-gtk.c
index cb2da35..b1e488c 100644
--- a/gnome-initial-setup/gis-assistant-gtk.c
+++ b/gnome-initial-setup/gis-assistant-gtk.c
@@ -55,23 +55,7 @@ gis_assistant_gtk_switch_to (GisAssistant *assistant,
GisPage *page)
{
GisAssistantGtkPrivate *priv = gis_assistant_gtk_get_instance_private (GIS_ASSISTANT_GTK (assistant));
- GtkStackTransitionType transition_type;
-
- switch (direction) {
- case GIS_ASSISTANT_NEXT:
- transition_type = GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT;
- break;
- case GIS_ASSISTANT_PREV:
- transition_type = GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT;
- break;
- default:
- g_assert_not_reached ();
- }
-
- gtk_stack_set_transition_type (GTK_STACK (priv->stack), transition_type);
-
- gtk_stack_set_visible_child (GTK_STACK (priv->stack),
- GTK_WIDGET (page));
+ gtk_stack_set_visible_child (GTK_STACK (priv->stack), GTK_WIDGET (page));
}
static void
@@ -92,7 +76,7 @@ gis_assistant_gtk_init (GisAssistantGtk *assistant_gtk)
frame = _gis_assistant_get_frame (assistant);
priv->stack = gtk_stack_new ();
gtk_stack_set_transition_type (GTK_STACK (priv->stack),
- GTK_STACK_TRANSITION_TYPE_CROSSFADE);
+ GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT);
gtk_container_add (GTK_CONTAINER (frame), priv->stack);
gtk_widget_show (priv->stack);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]