[gnome-initial-setup] assistant-gtk: Use GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT



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]