GtkStack: Avoid compiler warnings

gcc warns about unhandled enum values in these switch statements,
so add an empty default: case to placate the compiler.
This commit is contained in:
Matthias Clasen 2014-05-02 17:15:49 -04:00
parent 5b5813fcdc
commit 3957ce4898

View File

@ -754,6 +754,7 @@ get_simple_transition_type (gboolean new_child_first,
return new_child_first ? GTK_STACK_TRANSITION_TYPE_UNDER_RIGHT : GTK_STACK_TRANSITION_TYPE_OVER_LEFT;
case GTK_STACK_TRANSITION_TYPE_OVER_RIGHT_LEFT:
return new_child_first ? GTK_STACK_TRANSITION_TYPE_UNDER_LEFT : GTK_STACK_TRANSITION_TYPE_OVER_RIGHT;
default: ;
}
return transition_type;
}
@ -916,6 +917,7 @@ effective_transition_type (GtkStack *stack,
return GTK_STACK_TRANSITION_TYPE_UNDER_RIGHT;
case GTK_STACK_TRANSITION_TYPE_UNDER_RIGHT:
return GTK_STACK_TRANSITION_TYPE_UNDER_LEFT;
default: ;
}
}